summaryrefslogtreecommitdiff
path: root/test.sh
blob: 78dbf4ce4b39dcae48be67ce101b4906f72f6dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

for x in $@ ; do
	echo -en `expr match "$x" '\(.*\)_'`,`expr match "$x" '.*_\(.*\)'`,

	# warm up the cache
	for i in 1 2 3 ; do
		./$x &> /dev/null ;
	done

	# real benchmarking
	for i in `seq 1 10`; do
		./$x ;
	done 
	echo;
done