diff options
Diffstat (limited to 'TOOLS/benchmark-gab/benchmark')
-rwxr-xr-x | TOOLS/benchmark-gab/benchmark | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/TOOLS/benchmark-gab/benchmark b/TOOLS/benchmark-gab/benchmark index 0c438e2bef..04a0d0e876 100755 --- a/TOOLS/benchmark-gab/benchmark +++ b/TOOLS/benchmark-gab/benchmark @@ -2,6 +2,11 @@ . ./variables +if [ ! -e $MPBIN ]; then + wrtlog No MPlayer binary compiled for this arch, trying ./mplayer + export MPBIN="./mplayer" +fi + function benchsamples { for i in `ls samples/* | grep -v -e '\.opts'`; do BENCHOPTS=`cat $i.opts 2> /dev/null` @@ -12,17 +17,17 @@ for i in `ls samples/* | grep -v -e '\.opts'`; do wrtlog "$DEFAULTOPTS" wrtlog "Options for this file:" wrtlog "$BENCHOPTS" - BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" + BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" VC=`echo $BENCH | awk '{print $11}'` SYS=`echo $BENCH | awk '{print $9}'` wrtlog Total: $VC \(Sys: $SYS\) - BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" + BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" VC=`echo $BENCH | awk '{print $11}'` SYS=`echo $BENCH | awk '{print $9}'` wrtlog Total: $VC \(Sys: $SYS\) - BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" + BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" VC=`echo $BENCH | awk '{print $11}'` SYS=`echo $BENCH | awk '{print $9}'` wrtlog Total: $VC \(Sys: $SYS\) |