git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8250
## Print the average runtime of the command passed in $1 .. ${$#} and the ratio
# of the runtime to ${avg1} +/- ${stddev1}.
function print_runtime_ratio {
- local tmp
+ local tmp avg1="$1" avg2="$2"
+
+ shift
+ shift
tmp="/tmp/test-timing.$$"
rm -f "${tmp}"
for i in 1 10
do
- print_runtime_ratio ${VG} --tool=none ${MATINV} $n -t$i
- print_runtime_ratio ${VG} --tool=exp-drd ${MATINV} $n -t$i
+ print_runtime_ratio ${avg1} ${stddev1} \
+ ${VG} --tool=none ${MATINV} $n -t$i
+ print_runtime_ratio ${avg1} ${stddev1} \
+ ${VG} --tool=exp-drd ${MATINV} $n -t$i
done
done