|
From: <sv...@va...> - 2008-06-18 08:55:59
|
Author: bart
Date: 2008-06-18 09:56:04 +0100 (Wed, 18 Jun 2008)
New Revision: 8250
Log:
First two arguments of print_runtime_ratio are now avg1 and stddev1. These are no longer taken from the environment.
Modified:
trunk/exp-drd/scripts/measurement-functions
trunk/exp-drd/scripts/run-matinv
Modified: trunk/exp-drd/scripts/measurement-functions
===================================================================
--- trunk/exp-drd/scripts/measurement-functions 2008-06-18 08:47:06 UTC (rev 8249)
+++ trunk/exp-drd/scripts/measurement-functions 2008-06-18 08:56:04 UTC (rev 8250)
@@ -56,8 +56,11 @@
## 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}"
Modified: trunk/exp-drd/scripts/run-matinv
===================================================================
--- trunk/exp-drd/scripts/run-matinv 2008-06-18 08:47:06 UTC (rev 8249)
+++ trunk/exp-drd/scripts/run-matinv 2008-06-18 08:56:04 UTC (rev 8250)
@@ -30,7 +30,9 @@
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
|