From 39fc83c078886ae115d0fac5b35516510a4958cf Mon Sep 17 00:00:00 2001 From: Teddysun Date: Thu, 3 Dec 2015 01:09:46 +0800 Subject: [PATCH] Fix Average speed --- bench.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bench.sh b/bench.sh index db588f8..811e350 100644 --- a/bench.sh +++ b/bench.sh @@ -114,9 +114,9 @@ fi io1=$((dd if=/dev/zero of=test_$$ bs=64k count=16k conv=fdatasync && /bin/rm -f test_$$) 2>&1 | awk 'END{print}') io2=$((dd if=/dev/zero of=test_$$ bs=64k count=16k conv=fdatasync && /bin/rm -f test_$$) 2>&1 | awk 'END{print}') io3=$((dd if=/dev/zero of=test_$$ bs=64k count=16k conv=fdatasync && /bin/rm -f test_$$) 2>&1 | awk 'END{print}') -ioraw1=$( echo $io1 | awk 'NR==1 {print $1}' ) -ioraw2=$( echo $io2 | awk 'NR==1 {print $1}' ) -ioraw3=$( echo $io3 | awk 'NR==1 {print $1}' ) +ioraw1=$( echo $io1 | awk 'NR==1 {print $8}' ) +ioraw2=$( echo $io2 | awk 'NR==1 {print $8}' ) +ioraw3=$( echo $io3 | awk 'NR==1 {print $8}' ) ioall=$( awk 'BEGIN{print '$ioraw1' + '$ioraw2' + '$ioraw3'}' ) ioavg=$( awk 'BEGIN{print '$ioall'/3}' ) echo "I/O speed(1st run) : $io1"