Created
June 14, 2016 11:59
-
-
Save quamilek/66384504430c3c02a08bca65ed694a69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "---------------------" | |
echo "Write Test Running. Please Wait..." | |
write=$(dd if=/dev/zero bs=2048k of=tstfile count=1024 2>&1 | grep sec | awk '{print $1 / 1024 / 1024 / $5, "MB/sec" }') | |
purge | |
echo "" | |
echo "Read Test Running. Please Wait..." | |
read=$(dd if=tstfile bs=2048k of=/dev/null count=1024 2>&1 | grep sec | awk '{print $1 / 1024 / 1024 / $5, "MB/sec" }') | |
clear | |
echo "" | |
echo "Read Speed is: $read" | |
echo "Write Speed is: $write" | |
echo "---------------------" | |
echo "Cleaning up. Please Wait..." | |
purge | |
rm tstfile | |
echo "" | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment