File: stridetune-bench.ba.sh

package info (click to toggle)
zfec 1.5.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 524 kB
  • sloc: python: 2,022; ansic: 892; haskell: 229; sh: 22; makefile: 4
file content (16 lines) | stat: -rwxr-xr-x 479 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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