summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-04-16 16:34:16 +0200
committerPatrick Simianer <p@simianer.de>2016-04-16 16:34:16 +0200
commit61234dac0becad3918200823aad27150ffa1423e (patch)
tree550e05292fa9e0aeda9517c89620f152bf054ebf
parent095848daf8044cf03271696827bc42026dbe517c (diff)
disk-benchmark: output
-rwxr-xr-xdisk-benchmark19
1 files changed, 19 insertions, 0 deletions
diff --git a/disk-benchmark b/disk-benchmark
new file mode 100755
index 0000000..77475cf
--- /dev/null
+++ b/disk-benchmark
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+for i in {0..4}; do
+echo
+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
+