Skip to content

Instantly share code, notes, and snippets.

Created December 17, 2012 20:34
Show Gist options
  • Save anonymous/4321936 to your computer and use it in GitHub Desktop.
Save anonymous/4321936 to your computer and use it in GitHub Desktop.
Test DD for Linux (Mint)
#!/bin/sh
COUNT=2048
echo "testing pseudo-IO performances - 1st Pass"
dd if=/dev/zero of=/dev/null bs=1M count=$COUNT
echo "testing IO write performances - 1st Pass"
dd if=/dev/zero of=PERFTEST bs=1M count=$COUNT
echo "testing IO read performances - 1st Pass"
dd if=PERFTEST of=/dev/null bs=1M count=$COUNT
echo "testing IO read performances - 2nd Pass"
dd if=PERFTEST of=/dev/null bs=1M count=$COUNT
echo "testing IO write performances - 2nd Pass"
dd if=/dev/zero of=PERFTEST bs=1M count=$COUNT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment