shithub: mp3dec

ref: 8e7ebf88a1d117be721a065f6d737cf5d55ceae1
dir: /scripts/perf.sh/

View raw version
_FILENAME=${0##*/}
CUR_DIR=${0/${_FILENAME}}
CUR_DIR=$(cd $(dirname ${CUR_DIR}); pwd)/$(basename ${CUR_DIR})/

pushd $CUR_DIR/..

APP=./minimp3

for i in fate-suite.ffmpeg.org/mp3-conformance/*.bit; do
perf stat -e cycles $APP $i ${i%.*}.pcm
done