Mercurial > mplayer.hg
changeset 7197:c36333ff54b0
some fixes
author | gabucino |
---|---|
date | Sat, 31 Aug 2002 14:19:11 +0000 |
parents | 9aca112abac7 |
children | 9d21564cfc37 |
files | TOOLS/benchmark-gab/benchmark TOOLS/benchmark-gab/start TOOLS/benchmark-gab/variables |
diffstat | 3 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/TOOLS/benchmark-gab/benchmark Sat Aug 31 14:01:46 2002 +0000 +++ b/TOOLS/benchmark-gab/benchmark Sat Aug 31 14:19:11 2002 +0000 @@ -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 @@ 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\)
--- a/TOOLS/benchmark-gab/start Sat Aug 31 14:01:46 2002 +0000 +++ b/TOOLS/benchmark-gab/start Sat Aug 31 14:19:11 2002 +0000 @@ -6,6 +6,7 @@ wrtlog Script version v0.91 wrtlog CPU: $VENDOR $MODEL $MHZ +wrtlog CPUFLAGS: $CPUFLAGS wrtlog MEM: $MEMORY wrtlog VGA: $VGA
--- a/TOOLS/benchmark-gab/variables Sat Aug 31 14:01:46 2002 +0000 +++ b/TOOLS/benchmark-gab/variables Sat Aug 31 14:19:11 2002 +0000 @@ -3,10 +3,12 @@ VENDOR="`cat /proc/cpuinfo | grep vendor_id | cut -c 13-`" MODEL="`cat /proc/cpuinfo | grep "model name" | cut -c 14-`" +CPUFLAGS="`cat /proc/cpuinfo | grep flags | cut -c 10-`" MHZ="`cat /proc/cpuinfo | grep MHz | cut -c 12-14` MHz" MEMORY="`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` Kb" -BUILD="`echo $VENDOR $MODEL $MHZ | tr [\ ] [_]`" +BUILD="`echo $VENDOR $MODEL $MHZ | tr [\ ] [_] | tr [\/] [_]`" VGA="`lspci | grep VGA | cut -c 36-`" +MPBIN="$BUILD/mplayer" export LOGFILE="`pwd`/log-$BUILD-`date +\"%Y-%m-%d\"`" export COMPILEOPTIONS="--enable-runtime-cpudetection"