2002-08-30 21:16:52 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. ./variables
|
|
|
|
|
2002-08-31 14:19:11 +00:00
|
|
|
if [ ! -e $MPBIN ]; then
|
|
|
|
wrtlog No MPlayer binary compiled for this arch, trying ./mplayer
|
|
|
|
export MPBIN="./mplayer"
|
|
|
|
fi
|
|
|
|
|
2002-08-30 21:16:52 +00:00
|
|
|
function benchsamples {
|
|
|
|
for i in `ls samples/* | grep -v -e '\.opts'`; do
|
|
|
|
BENCHOPTS=`cat $i.opts 2> /dev/null`
|
|
|
|
wrtlog Caching file...
|
|
|
|
dd if=$i of=/dev/null bs=512k 2> /dev/null
|
|
|
|
wrtlog Video decoding: `basename $i`, size: `ls -Ll $i | awk '{print $5}'`
|
|
|
|
wrtlog Options for this run:
|
|
|
|
wrtlog "$DEFAULTOPTS"
|
|
|
|
wrtlog "Options for this file:"
|
|
|
|
wrtlog "$BENCHOPTS"
|
2002-08-31 14:19:11 +00:00
|
|
|
BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
|
2002-08-31 08:16:44 +00:00
|
|
|
VC=`echo $BENCH | awk '{print $11}'`
|
2002-08-30 21:16:52 +00:00
|
|
|
SYS=`echo $BENCH | awk '{print $9}'`
|
2002-08-31 08:16:44 +00:00
|
|
|
wrtlog Total: $VC \(Sys: $SYS\)
|
2002-08-30 21:16:52 +00:00
|
|
|
|
2002-08-31 14:19:11 +00:00
|
|
|
BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
|
2002-08-31 08:16:44 +00:00
|
|
|
VC=`echo $BENCH | awk '{print $11}'`
|
2002-08-30 21:16:52 +00:00
|
|
|
SYS=`echo $BENCH | awk '{print $9}'`
|
2002-08-31 08:16:44 +00:00
|
|
|
wrtlog Total: $VC \(Sys: $SYS\)
|
2002-08-30 21:16:52 +00:00
|
|
|
|
2002-08-31 14:19:11 +00:00
|
|
|
BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
|
2002-08-31 08:16:44 +00:00
|
|
|
VC=`echo $BENCH | awk '{print $11}'`
|
2002-08-30 21:16:52 +00:00
|
|
|
SYS=`echo $BENCH | awk '{print $9}'`
|
2002-08-31 08:16:44 +00:00
|
|
|
wrtlog Total: $VC \(Sys: $SYS\)
|
2002-08-30 21:16:52 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ ! -d samples ]; then
|
|
|
|
wrtlog Samples subdirectory not present, exiting...
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
wrtlog Starting benchmarks
|
|
|
|
|
|
|
|
if [ ! -e no_codec ]; then
|
|
|
|
wrtlog Starting CODEC benchmark runs, with 3 tries...
|
2002-08-31 08:16:44 +00:00
|
|
|
DEFAULTOPTS="-quiet -nosound -benchmark -vo null -vop disabled -autoq 0"
|
2002-08-30 21:16:52 +00:00
|
|
|
benchsamples
|
|
|
|
fi
|
|
|
|
|
|
|
|
export DISPLAY=:0
|
|
|
|
export XAUTHORITY=$HOME/.Xauthority
|
|
|
|
|
|
|
|
if [ ! -e no_xv ]; then
|
|
|
|
if [ ! -e no_xv_nodr ]; then
|
|
|
|
wrtlog Starting XVideo \(no DR\) benchmark runs, with 3 tries...
|
2002-08-31 08:16:44 +00:00
|
|
|
DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -nodr -slices -vop disabled -autoq 0"
|
2002-08-30 21:16:52 +00:00
|
|
|
benchsamples
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -e no_xv_nodr_noslices ]; then
|
|
|
|
wrtlog Starting XVideo \(no DR\) \(no slices\) benchmark runs, with 3 tries...
|
2002-08-31 08:16:44 +00:00
|
|
|
DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -nodr -noslices -vop disabled -autoq 0"
|
2002-08-30 21:16:52 +00:00
|
|
|
benchsamples
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -e no_xv_dr ]; then
|
|
|
|
wrtlog Starting XVideo \(DR\) benchmark runs, with 3 tries...
|
2002-08-31 08:16:44 +00:00
|
|
|
DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -dr -slices -vop disabled -autoq 0"
|
2002-08-30 21:16:52 +00:00
|
|
|
benchsamples
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -e no_xv_dr_noslices ]; then
|
|
|
|
wrtlog Starting XVideo \(DR\) \(no slices\) benchmark runs, with 3 tries...
|
2002-08-31 08:16:44 +00:00
|
|
|
DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -dr -noslices -vop disabled -autoq 0"
|
2002-08-30 21:16:52 +00:00
|
|
|
benchsamples
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e xmga ]; then
|
|
|
|
if [ ! -e xmga_nodr ]; then
|
|
|
|
wrtlog Starting XMGA \(no DR\) benchmark runs, with 3 tries...
|
2002-08-31 08:16:44 +00:00
|
|
|
DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -dr -slices -vop disabled -autoq 0"
|
2002-08-30 21:16:52 +00:00
|
|
|
benchsamples
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -e xmga_nodr_noslices ]; then
|
|
|
|
wrtlog Starting XMGA \(no DR\) \(no slices\) benchmark runs, with 3 tries...
|
2002-08-31 08:16:44 +00:00
|
|
|
DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -dr -noslices -vop disabled -autoq 0"
|
2002-08-30 21:16:52 +00:00
|
|
|
benchsamples
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -e xmga_dr ]; then
|
|
|
|
wrtlog Starting XMGA \(DR\) benchmark runs, with 3 tries...
|
2002-08-31 08:16:44 +00:00
|
|
|
DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -dr -vop disabled -autoq 0"
|
2002-08-30 21:16:52 +00:00
|
|
|
benchsamples
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -e xmga_dr ]; then
|
|
|
|
wrtlog Starting XMGA \(DR\) \(no slices\) benchmark runs, with 3 tries...
|
2002-08-31 08:16:44 +00:00
|
|
|
DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -dr -noslices -vop disabled -autoq 0"
|
2002-08-30 21:16:52 +00:00
|
|
|
benchsamples
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
wrtlog Benchmarks ready
|