Make the log benchmark configurable and make a parameter sweep script.
[bluesky.git] / logbench / runbench.sh
diff --git a/logbench/runbench.sh b/logbench/runbench.sh
new file mode 100755 (executable)
index 0000000..5503f10
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+do_run() {
+    LOGDIR=$(mktemp -d ./logdir.XXXXXXXX)
+    sync; sleep 0.5
+    echo Running: "$@"
+    (cd "$LOGDIR"; time ../logbench "$@")
+    rm -rf "$LOGDIR"
+}
+
+for s in 256 1024 4096 16384 65536; do
+    #do_run -B -s $s
+    true
+done
+
+for b in 1 2 4 8 16 32; do
+    for s in 4096; do
+        do_run -B -s $s -b $b
+        do_run -F -s $s -b $b
+        do_run -D -s $s -b $b
+    done
+done