From: Bart Van Assche Date: Tue, 3 Jun 2008 11:41:19 +0000 (+0000) Subject: Made script more robusts. Ratio is now always computed relative to the non-Valgrind... X-Git-Tag: svn/VALGRIND_3_4_0~526 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f4c35f80b2b3e7636b3bc36a23834c46e914283;p=thirdparty%2Fvalgrind.git Made script more robusts. Ratio is now always computed relative to the non-Valgrind single-CPU run. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8174 --- diff --git a/exp-drd/scripts/run-splash2 b/exp-drd/scripts/run-splash2 index 2992c3ca32..e1b1a929f4 100755 --- a/exp-drd/scripts/run-splash2 +++ b/exp-drd/scripts/run-splash2 @@ -22,15 +22,17 @@ function run_test { read avg1 stddev1 < "$tmp" echo "Average time: ${avg1} +/- ${stddev1} seconds" - echo "$VG --tool=exp-drd $@" - for ((i=0;i<3;i++)) + for ((p=1; p<=4; p++)) do - /usr/bin/time --format="%e" $VG --tool=exp-drd "$@" 2>&1 | tail -n 1 - done | avgstddev > "$tmp" - read avg2 stddev2 < "$tmp" - echo "Average time: ${avg2} +/- ${stddev2} seconds" - - awk "END{print "'"'"Ratio ="'"'", ${avg2}/${avg1}, "'"'"+/-"'"'", ${avg2}/${avg1}*(${stddev1}/${avg1}+${stddev2}/${avg2})}" &1 | tail -n 1 + done | avgstddev > "$tmp" + read avg2 stddev2 < "$tmp" + echo "Average time: ${avg2} +/- ${stddev2} seconds" + awk "END{print "'"'"Ratio ="'"'", ${avg2}/${avg1}, "'"'"+/-"'"'", ${avg2}/${avg1}*(${stddev1}/${avg1}+${stddev2}/${avg2})}"