Mercurial > hg > CbC > CbC_gcc
comparison CbC-examples/quicksort/benchmark.sh @ 92:689bf9141c8c
add conv1/benchmark.sh
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 04 Jan 2012 02:15:01 +0900 |
parents | 607e6dc322e5 |
children |
comparison
equal
deleted
inserted
replaced
91:0a063106bba9 | 92:689bf9141c8c |
---|---|
12 count=0 | 12 count=0 |
13 amount=0 | 13 amount=0 |
14 | 14 |
15 echo "size of array = $size" | 15 echo "size of array = $size" |
16 while [[ $count -lt $num ]]; do | 16 while [[ $count -lt $num ]]; do |
17 echo "$time -p $QS -n $size -s $seed 2>&1 >& - |grep '^user'|tr -s \" \"|cut -f2 -d\" \" " | |
17 usertime=$( $time -p $QS -n $size -s $seed 2>&1 >& - |grep '^user'|tr -s " "|cut -f2 -d" ") | 18 usertime=$( $time -p $QS -n $size -s $seed 2>&1 >& - |grep '^user'|tr -s " "|cut -f2 -d" ") |
18 #usertime=$(printf "%d" $usertime) | 19 #usertime=$(printf "%d" $usertime) |
19 echo $usertime | 20 echo $usertime |
20 | 21 |
21 amount=$(($usertime+$amount)) | 22 amount=$(($usertime+$amount)) |