7 BENCHDIR
=/usr
/local
/benchmarks
9 basebenchmarks
=`echo *bench*`
12 then packagebenchmarks
=`(cd $BENCHDIR && echo *bench*)`
17 out
="Results/$bench.`date +%Y%m%d.%H%M%S`"
21 if [ -d $BENCHDIR/$bench ]
22 then dir
=$BENCHDIR/$bench
26 echo "Saving output to $out."
28 ( cd $dir && sh run.sh
2>&1 ) |
tee $out
33 for b
in $basebenchmarks $packagebenchmarks
39 echo -n "Run which benchmark or 'all'? "
43 then for b
in $basebenchmarks $packagebenchmarks
46 else if [ -d "$var" -o -d "$BENCHDIR/$var" ]
48 else echo "Unknown benchmark $var."