summaryrefslogtreecommitdiff
path: root/ddbench
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-08-10 11:19:38 +0100
committerPatrick Simianer <p@simianer.de>2014-08-10 11:19:38 +0100
commit5869505d64c04c536bdcd71a197ade918c36bf1c (patch)
tree6af5232a9f2e058f15230a370a960f89871a2b74 /ddbench
init
Diffstat (limited to 'ddbench')
-rwxr-xr-xddbench19
1 files changed, 19 insertions, 0 deletions
diff --git a/ddbench b/ddbench
new file mode 100755
index 0000000..8889392
--- /dev/null
+++ b/ddbench
@@ -0,0 +1,19 @@
+#!/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
+