diff CbC-examples/conv1/benchmark.sh @ 106:85047c4f1ca4

add CbC-examples/rectypeTest
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Wed, 13 Jun 2012 17:18:58 +0900
parents 0b0b0782e795
children
line wrap: on
line diff
--- a/CbC-examples/conv1/benchmark.sh	Fri May 25 10:34:23 2012 +0900
+++ b/CbC-examples/conv1/benchmark.sh	Wed Jun 13 17:18:58 2012 +0900
@@ -1,11 +1,13 @@
 #!/usr/bin/env zsh
 
 time=/usr/bin/time
-CONV1=./conv1
+CONV1=./a.out
 num=10
 
 count=0
 amount=0
+max=0
+min=99999
 
 echo "$CONV1 $1"
 while [[ $count -lt $num ]]; do
@@ -30,7 +32,7 @@
 
 amount=$(($amount - $max - $min))
 echo "amount time - mintime - maxtime = $amount"
-#count=$(($count-2))
+count=$(($count-2))
 echo "count = $count"
 averagetime=$(($amount/($count)))
 echo "average time = $averagetime"