Mercurial > mplayer.hg
comparison TOOLS/benchmark-gab/benchmark @ 7197:c36333ff54b0
some fixes
author | gabucino |
---|---|
date | Sat, 31 Aug 2002 14:19:11 +0000 |
parents | bcbbe5ee11fd |
children | 835822ce4bb1 |
comparison
equal
deleted
inserted
replaced
7196:9aca112abac7 | 7197:c36333ff54b0 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 . ./variables | 3 . ./variables |
4 | |
5 if [ ! -e $MPBIN ]; then | |
6 wrtlog No MPlayer binary compiled for this arch, trying ./mplayer | |
7 export MPBIN="./mplayer" | |
8 fi | |
4 | 9 |
5 function benchsamples { | 10 function benchsamples { |
6 for i in `ls samples/* | grep -v -e '\.opts'`; do | 11 for i in `ls samples/* | grep -v -e '\.opts'`; do |
7 BENCHOPTS=`cat $i.opts 2> /dev/null` | 12 BENCHOPTS=`cat $i.opts 2> /dev/null` |
8 wrtlog Caching file... | 13 wrtlog Caching file... |
10 wrtlog Video decoding: `basename $i`, size: `ls -Ll $i | awk '{print $5}'` | 15 wrtlog Video decoding: `basename $i`, size: `ls -Ll $i | awk '{print $5}'` |
11 wrtlog Options for this run: | 16 wrtlog Options for this run: |
12 wrtlog "$DEFAULTOPTS" | 17 wrtlog "$DEFAULTOPTS" |
13 wrtlog "Options for this file:" | 18 wrtlog "Options for this file:" |
14 wrtlog "$BENCHOPTS" | 19 wrtlog "$BENCHOPTS" |
15 BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" | 20 BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" |
16 VC=`echo $BENCH | awk '{print $11}'` | 21 VC=`echo $BENCH | awk '{print $11}'` |
17 SYS=`echo $BENCH | awk '{print $9}'` | 22 SYS=`echo $BENCH | awk '{print $9}'` |
18 wrtlog Total: $VC \(Sys: $SYS\) | 23 wrtlog Total: $VC \(Sys: $SYS\) |
19 | 24 |
20 BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" | 25 BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" |
21 VC=`echo $BENCH | awk '{print $11}'` | 26 VC=`echo $BENCH | awk '{print $11}'` |
22 SYS=`echo $BENCH | awk '{print $9}'` | 27 SYS=`echo $BENCH | awk '{print $9}'` |
23 wrtlog Total: $VC \(Sys: $SYS\) | 28 wrtlog Total: $VC \(Sys: $SYS\) |
24 | 29 |
25 BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" | 30 BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" |
26 VC=`echo $BENCH | awk '{print $11}'` | 31 VC=`echo $BENCH | awk '{print $11}'` |
27 SYS=`echo $BENCH | awk '{print $9}'` | 32 SYS=`echo $BENCH | awk '{print $9}'` |
28 wrtlog Total: $VC \(Sys: $SYS\) | 33 wrtlog Total: $VC \(Sys: $SYS\) |
29 done | 34 done |
30 } | 35 } |