]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/blob - zfec/stridetune-bench.ba.sh
doc: README.txt: fix URL
[tahoe-lafs/zfec.git] / zfec / stridetune-bench.ba.sh
1 #!/bin/bash
2
3 /bin/rm -rf ./benchresults
4 mkdir benchresults
5 STRIDE=32
6 while [ $(( $STRIDE < 32769 )) ] ; do
7     /bin/rm -rf build
8     rm zfec/_fec.so
9     /bin/rm -rf instdir
10     mkdir instdir
11     PYTHONPATH=instdir ./setup.py develop --install-dir=instdir --stride=${STRIDE} >/dev/null
12     echo $STRIDE
13     PYTHONPATH=instdir python -OO ./bench/bench_zfec.py >> benchresults/comp_0-stride_$STRIDE
14     tail -1 benchresults/comp_0-stride_$STRIDE
15     STRIDE=$(( $STRIDE + 32 ))
16 done