Revision 39 Pi/C/Simple/bench.sh

bench.sh (revision 39)
4 4
ITERATIONS=1000000000
5 5
TIME=time
6 6

  
7
REPEAT=10
8

  
7 9
[ ! $1 == '' ] && EXE=$1
8 10
[ ! $2 == '' ] && ITERATIONS=$2
9 11

  
......
12 14
echo -ne "Start $EXE with $ITERATIONS : "
13 15
> $LOGFILE
14 16
i=1
15
while [ $i -le 10 ]
17
while [ $i -le $REPEAT ]
16 18
do 
17 19
    echo -ne "$i "
18 20
    $TIME ./$EXE $ITERATIONS >> $LOGFILE 2>&1 

Also available in: Unified diff