]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
First two arguments of print_runtime_ratio are now avg1 and stddev1. These are no...
authorBart Van Assche <bvanassche@acm.org>
Wed, 18 Jun 2008 08:56:04 +0000 (08:56 +0000)
committerBart Van Assche <bvanassche@acm.org>
Wed, 18 Jun 2008 08:56:04 +0000 (08:56 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8250

exp-drd/scripts/measurement-functions
exp-drd/scripts/run-matinv

index 0264da6ca980849dfca4218eb4eafd4e2192773d..59536b784b6a9c7af746f1a3aba449ac07361fc8 100644 (file)
@@ -56,7 +56,10 @@ function measure_runtime {
 ## 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}"
index a95d6912a41533e1190ed5fd0b79bf34d13e5be1..0f80c4ba318a11e9d1855a40902ed27a6cb88207 100755 (executable)
@@ -30,7 +30,9 @@ do
 
   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