bdec.sh 422 Bytes
Newer Older
1
#!/bin/sh
2
set -e
3 4
if [ ! -f bench.rz ]; then
    echo "No encoded file found. Encoding now..."
5
    ${top_srcdir}/src/benc.sh ${top_srcdir}/data/typical.rz
6 7
fi
rm -f dec.dat
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
8
bsize=$(wc -c bench.dat | awk '{print $1}')
9
utime=$(./utime ./aec -d -n16 -j64 -r256 -m bench.rz dec.dat 2>&1)
10 11 12
perf=$(echo "$bsize/1048576/$utime" | bc)
echo "*** Decoding with $perf MiB/s user time ***"
cmp bench.dat dec.dat
13
rm -f dec.dat