Skip to content

Commit 9fce1a0

Browse files
committed
test(performance): fix the exponential operation in deviation1
1 parent d11522d commit 9fce1a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/performance/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ check_out() {
3737
cal=$(grep "$key" $outfile | awk '{printf "%.'$ca'f\n",$2}')
3838
ref=$(grep "$key" result.ref | awk '{printf "%.'$ca'f\n",$2}')
3939
deviation=$(awk 'BEGIN {x='$ref';y='$cal';if (x<y) {a=y-x} else {a=x-y};printf "%.'$ca'f\n",a}')
40-
deviation1=$(awk 'BEGIN{print '$deviation'*(10**'$ca')}')
41-
40+
deviation1=$(awk 'BEGIN{print '$deviation'*(10^'$ca')}')
41+
4242
if [ $key == "totaltimeref" ]; then
4343
break
4444
fi

0 commit comments

Comments
 (0)