]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/blobdiff - stridetune-bench.ba.sh
zfec: rearrange files
[tahoe-lafs/zfec.git] / stridetune-bench.ba.sh
diff --git a/stridetune-bench.ba.sh b/stridetune-bench.ba.sh
new file mode 100755 (executable)
index 0000000..01555ca
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+/bin/rm -rf ./benchresults
+mkdir benchresults
+STRIDE=32
+while [ $(( $STRIDE < 32769 )) ] ; do
+    /bin/rm -rf build
+    rm zfec/_fec.so
+    /bin/rm -rf instdir
+    mkdir instdir
+    PYTHONPATH=instdir ./setup.py develop --install-dir=instdir --stride=${STRIDE} >/dev/null
+    echo $STRIDE
+    PYTHONPATH=instdir python -OO ./bench/bench_zfec.py >> benchresults/comp_0-stride_$STRIDE
+    tail -1 benchresults/comp_0-stride_$STRIDE
+    STRIDE=$(( $STRIDE + 32 ))
+done