mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Fix IO test
This commit is contained in:
parent
b4205ef4e5
commit
5903b9f105
3
bench.sh
3
bench.sh
@ -121,8 +121,11 @@ io1=$( io_test )
|
|||||||
io2=$( io_test )
|
io2=$( io_test )
|
||||||
io3=$( io_test )
|
io3=$( io_test )
|
||||||
ioraw1=$( echo $io1 | awk 'NR==1 {print $1}' )
|
ioraw1=$( echo $io1 | awk 'NR==1 {print $1}' )
|
||||||
|
[ "`echo $io1 | awk 'NR==1 {print $2}'`" == "GB/s" ] && ioraw1=$( awk 'BEGIN{print '$ioraw1' * 1024}' )
|
||||||
ioraw2=$( echo $io2 | awk 'NR==1 {print $1}' )
|
ioraw2=$( echo $io2 | awk 'NR==1 {print $1}' )
|
||||||
|
[ "`echo $io2 | awk 'NR==1 {print $2}'`" == "GB/s" ] && ioraw2=$( awk 'BEGIN{print '$ioraw2' * 1024}' )
|
||||||
ioraw3=$( echo $io3 | awk 'NR==1 {print $1}' )
|
ioraw3=$( echo $io3 | awk 'NR==1 {print $1}' )
|
||||||
|
[ "`echo $io3 | awk 'NR==1 {print $2}'`" == "GB/s" ] && ioraw3=$( awk 'BEGIN{print '$ioraw3' * 1024}' )
|
||||||
ioall=$( awk 'BEGIN{print '$ioraw1' + '$ioraw2' + '$ioraw3'}' )
|
ioall=$( awk 'BEGIN{print '$ioraw1' + '$ioraw2' + '$ioraw3'}' )
|
||||||
ioavg=$( awk 'BEGIN{print '$ioall'/3}' )
|
ioavg=$( awk 'BEGIN{print '$ioall'/3}' )
|
||||||
echo "I/O speed(1st run) : $io1"
|
echo "I/O speed(1st run) : $io1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user