diff options
author | gabucino <gabucino@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-31 14:19:11 +0000 |
---|---|---|
committer | gabucino <gabucino@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-31 14:19:11 +0000 |
commit | e9105a9b644bd3b11adf962ed31711ea98ef0732 (patch) | |
tree | 0918ef0637465646707891b1edb76d71aa1fec4c /TOOLS/benchmark-gab/benchmark | |
parent | 42a6e2398effdd184d820ff3054c5ce113089aab (diff) |
some fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7198 b3059339-0415-0410-9bf9-f77b7e298cf2
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\) |