benc.sh 466 Bytes
Newer Older
1
#!/bin/sh
2
set -e
3
TEST_DATA=$1
4 5
AEC=../src/aec
if [ ! -f  bench.dat ]; then
6 7
    rm -f typical.dat
    $AEC -d -n16 -j64 -r256 -m $TEST_DATA typical.dat
8 9 10 11 12 13
    for i in $(seq 0 499);
    do
        cat typical.dat >> bench.dat
    done
fi
rm -f bench.rz
14
utime=$(../src/utime $AEC -n16 -j64 -r256 -m bench.dat bench.rz 2>&1)
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
15
bsize=$(wc -c bench.dat | awk '{print $1}')
16 17
perf=$(echo "$bsize/1048576/$utime" | bc)
echo "*** Encoding with $perf MiB/s user time ***"