benc.sh 502 Bytes
Newer Older
1
#!/bin/sh
2
set -e
3
TEST_DATA=$1
4
AEC=./aec
5
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
    for i in $(seq 0 499);
    do
        cat typical.dat >> bench.dat
    done
12
    rm -f typical.dat
13 14
fi
rm -f bench.rz
15
utime=$(./utime $AEC -n16 -j64 -r256 -m bench.dat bench.rz 2>&1)
16
echo $utime
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
17
bsize=$(wc -c bench.dat | awk '{print $1}')
18
perf=$(awk "BEGIN {print ${bsize}/1048576/${utime}}")
19
echo "*** Encoding with $perf MiB/s user time ***"