summaryrefslogtreecommitdiff
path: root/dd_benchmark
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-10-21 15:17:47 +0100
committerPatrick Simianer <p@simianer.de>2014-10-21 15:17:47 +0100
commit865ceea63cf8f1c070eb88e473908728cb241a6c (patch)
tree9fdd6ca5796ef5db1775d1505d10febe0e4cc86f /dd_benchmark
parent6fab9d7234119f44777d92a826f9eb5e137738a1 (diff)
fix
Diffstat (limited to 'dd_benchmark')
-rwxr-xr-xdd_benchmark18
1 files changed, 18 insertions, 0 deletions
diff --git a/dd_benchmark b/dd_benchmark
new file mode 100755
index 0000000..0db9a46
--- /dev/null
+++ b/dd_benchmark
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+for i in {0..4}; do
+echo "WRITE SPEED"
+dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
+echo
+
+echo "READ SPEED"
+echo 3 > /proc/sys/vm/drop_caches
+dd if=tempfile of=/dev/null bs=1M count=1024
+echo
+
+echo "BUFFERED READ SPEED"
+dd if=tempfile of=/dev/null bs=1M count=1024
+
+rm tempfile
+done
+