Skip to content

Instantly share code, notes, and snippets.

@bhcopeland
Last active August 29, 2015 14:17
Show Gist options
  • Save bhcopeland/a54c44759ec1c371a89b to your computer and use it in GitHub Desktop.
Save bhcopeland/a54c44759ec1c371a89b to your computer and use it in GitHub Desktop.
ssd_benchmark.sh
echo "write"
dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
echo "read"
sudo sh -c "echo 3 > /proc/sys/vm/drop_caches"
dd if=tempfile of=/dev/null bs=1M count=1024
echo "Re-Read"
dd if=tempfile of=/dev/null bs=1M count=1024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment