PERFORCE change 166162 for review

Zhao Shuai zhaoshuai at FreeBSD.org
Thu Jul 16 11:59:54 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=166162

Change 166162 by zhaoshuai at 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))


More information about the p4-projects mailing list