Last active
December 15, 2015 11:28
-
-
Save gsamat/5252674 to your computer and use it in GitHub Desktop.
shell + awk + bc to measure speed of transaction
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
echo "`{du -s /mnt/z2911kj6/pg&&sleep 10&&du -s /mnt/z2911kj6/pg}|awk 'NR==1 {a=$1;}; NR==2 {print $1-a};'`*512/1024/1024" | bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment