bdec.sh 432 Bytes
Newer Older
1
#!/bin/sh
2
set -e
3 4 5 6
AEC=../src/aec

if [ ! -f bench.rz ]; then
    echo "No encoded file found. Encoding now..."
7 8
    path=$(echo $0 | sed -e 's:[^/]*$::')
    "${path}"/benc.sh
9 10
fi
rm -f dec.dat
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
11
bsize=$(wc -c bench.dat | awk '{print $1}')
12
utime=$(../src/utime $AEC -d -n16 -j64 -r256 -m bench.rz dec.dat 2>&1)
13 14 15
perf=$(echo "$bsize/1048576/$utime" | bc)
echo "*** Decoding with $perf MiB/s user time ***"
cmp bench.dat dec.dat