From owner-p4-projects@FreeBSD.ORG Thu Jul 16 11:59:53 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D094C1065670; Thu, 16 Jul 2009 11:59:52 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90AB2106566B for ; Thu, 16 Jul 2009 11:59:52 +0000 (UTC) (envelope-from zhaoshuai@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4903F8FC08 for ; Thu, 16 Jul 2009 11:59:52 +0000 (UTC) (envelope-from zhaoshuai@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n6GBxqDQ058815 for ; Thu, 16 Jul 2009 11:59:52 GMT (envelope-from zhaoshuai@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n6GBxqb0058813 for perforce@freebsd.org; Thu, 16 Jul 2009 11:59:52 GMT (envelope-from zhaoshuai@FreeBSD.org) Date: Thu, 16 Jul 2009 11:59:52 GMT Message-Id: <200907161159.n6GBxqb0058813@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to zhaoshuai@FreeBSD.org using -f From: Zhao Shuai To: Perforce Change Reviews Cc: Subject: PERFORCE change 166162 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2009 11:59:54 -0000 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))