Mercurial > hg > CbC > CbC_gcc
comparison CbC-examples/conv1/benchmark.sh @ 93:0b0b0782e795
modify c-parser.c:cbc_finish_nested_function
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Jan 2012 02:50:46 +0900 |
parents | 689bf9141c8c |
children | 85047c4f1ca4 |
comparison
equal
deleted
inserted
replaced
92:689bf9141c8c | 93:0b0b0782e795 |
---|---|
8 amount=0 | 8 amount=0 |
9 | 9 |
10 echo "$CONV1 $1" | 10 echo "$CONV1 $1" |
11 while [[ $count -lt $num ]]; do | 11 while [[ $count -lt $num ]]; do |
12 # /usr/bin/time -p ./conv1 1 2>&1 >& - |grep '^user'|tr -s " "|cut -f2 -d" " | 12 # /usr/bin/time -p ./conv1 1 2>&1 >& - |grep '^user'|tr -s " "|cut -f2 -d" " |
13 usertime=$( $time -p $CONV1 1 2>&1 >& - |grep '^user'|tr -s " " |cut -f2 -d" ") | 13 usertime=$( $time -p $CONV1 $1 2>&1 >& - |grep '^user'|tr -s " " |cut -f2 -d" ") |
14 echo $usertime | 14 echo $usertime |
15 | 15 |
16 amount=$(($usertime+$amount)) | 16 amount=$(($usertime+$amount)) |
17 if [[ $usertime -lt $min ]]; then | 17 if [[ $usertime -lt $min ]]; then |
18 min=$usertime | 18 min=$usertime |