Last active
August 29, 2015 14:17
-
-
Save bhcopeland/a54c44759ec1c371a89b to your computer and use it in GitHub Desktop.
ssd_benchmark.sh
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 "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