Date: Thu, 16 Jul 2009 11:59:52 GMT From: Zhao Shuai <zhaoshuai@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 166162 for review Message-ID: <200907161159.n6GBxqb0058813@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=166162 Change 166162 by zhaoshuai@zhaoshuai on 2009/07/16 11:59:10 Affected files ... .. //depot/projects/soc2009/fifo/fifo_test/performance/runme.sh#2 edit Differences ... ==== //depot/projects/soc2009/fifo/fifo_test/performance/runme.sh#2 (text+ko) ==== @@ -1,4 +1,10 @@ -#shell script to do the benchmark +# shell script to generate the results + +if [ ! -e benchmark ] +then + echo "can't find the benchmark program!" + exit +fi echo -ne "\t" for num_msg in 1 10 100 1000 10000 100000 @@ -13,7 +19,7 @@ for num_msg in 1 10 100 1000 10000 100000 do sum=0 - for ((i=0; i<10; i++)) + for ((i = 0; i < 10; i++)) do time=`./benchmark $msg_size $num_msg` sum=$(($time + $sum))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907161159.n6GBxqb0058813>