Set up synthetic write benchmark.
[bluesky.git] / microbench / setup / run-synwrite
diff --git a/microbench/setup/run-synwrite b/microbench/setup/run-synwrite
new file mode 100755 (executable)
index 0000000..386aee4
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# Launch the synthetic write benchmark.
+
+SYNWRITE_RATE=10
+
+# Export any environment variables specified on the command line
+for e in "$@"; do
+    echo "$e" 1>&2
+    if echo "$e" | grep = >/dev/null; then
+        eval "$e"
+        export ${e%=*}
+    fi
+done
+
+/scratch/bluesky.git/nfs3/writebench.py $SYNWRITE_RATE >/scratch/synwrite/$BLUESKY_RUN_NAME.times