Skip to content

Instantly share code, notes, and snippets.

@gsamat
Last active December 15, 2015 11:28
Show Gist options
  • Save gsamat/5252674 to your computer and use it in GitHub Desktop.
Save gsamat/5252674 to your computer and use it in GitHub Desktop.
shell + awk + bc to measure speed of transaction
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