comparison TOOLS/benchmark-gab/benchmark @ 7177:cba37985dec5

v0.9 of my compile+benchmark script, designed for my local boxes, shared on NFS, etc.. Read README, and RTFS before using it. Oh, and feel free to reverse/del, but al3x wanted it.
author gabucino
date Fri, 30 Aug 2002 21:16:52 +0000
parents
children bcbbe5ee11fd
comparison
equal deleted inserted replaced
7176:42222161de9b 7177:cba37985dec5
1 #!/bin/sh
2
3 . ./variables
4
5 function benchsamples {
6 for i in `ls samples/* | grep -v -e '\.opts'`; do
7 BENCHOPTS=`cat $i.opts 2> /dev/null`
8 wrtlog Caching file...
9 dd if=$i of=/dev/null bs=512k 2> /dev/null
10 wrtlog Video decoding: `basename $i`, size: `ls -Ll $i | awk '{print $5}'`
11 wrtlog Options for this run:
12 wrtlog "$DEFAULTOPTS"
13 wrtlog "Options for this file:"
14 wrtlog "$BENCHOPTS"
15 BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
16 VC=`echo $BENCH | awk '{print $3}'`
17 SYS=`echo $BENCH | awk '{print $9}'`
18 wrtlog VC: $VC \(Sys: $SYS\)
19
20 BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
21 VC=`echo $BENCH | awk '{print $3}'`
22 SYS=`echo $BENCH | awk '{print $9}'`
23 wrtlog VC: $VC \(Sys: $SYS\)
24
25 BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
26 VC=`echo $BENCH | awk '{print $3}'`
27 SYS=`echo $BENCH | awk '{print $9}'`
28 wrtlog VC: $VC \(Sys: $SYS\)
29 done
30 }
31
32 if [ ! -d samples ]; then
33 wrtlog Samples subdirectory not present, exiting...
34 exit 1
35 fi
36
37 wrtlog Starting benchmarks
38
39 if [ ! -e no_codec ]; then
40 wrtlog Starting CODEC benchmark runs, with 3 tries...
41 DEFAULTOPTS="-nosound -benchmark -vo null -vop disabled -autoq 0"
42 benchsamples
43 fi
44
45 export DISPLAY=:0
46 export XAUTHORITY=$HOME/.Xauthority
47
48 if [ ! -e no_xv ]; then
49 if [ ! -e no_xv_nodr ]; then
50 wrtlog Starting XVideo \(no DR\) benchmark runs, with 3 tries...
51 DEFAULTOPTS="-nosound -benchmark -vo xv -fs -nodr -slices -vop disabled -autoq 0"
52 benchsamples
53 fi
54
55 if [ ! -e no_xv_nodr_noslices ]; then
56 wrtlog Starting XVideo \(no DR\) \(no slices\) benchmark runs, with 3 tries...
57 DEFAULTOPTS="-nosound -benchmark -vo xv -fs -nodr -noslices -vop disabled -autoq 0"
58 benchsamples
59 fi
60
61 if [ ! -e no_xv_dr ]; then
62 wrtlog Starting XVideo \(DR\) benchmark runs, with 3 tries...
63 DEFAULTOPTS="-nosound -benchmark -vo xv -fs -dr -slices -vop disabled -autoq 0"
64 benchsamples
65 fi
66
67 if [ ! -e no_xv_dr_noslices ]; then
68 wrtlog Starting XVideo \(DR\) \(no slices\) benchmark runs, with 3 tries...
69 DEFAULTOPTS="-nosound -benchmark -vo xv -fs -dr -noslices -vop disabled -autoq 0"
70 benchsamples
71 fi
72 fi
73
74 if [ -e xmga ]; then
75 if [ ! -e xmga_nodr ]; then
76 wrtlog Starting XMGA \(no DR\) benchmark runs, with 3 tries...
77 DEFAULTOPTS="-nosound -benchmark -vo xmga -fs -dr -slices -vop disabled -autoq 0"
78 benchsamples
79 fi
80
81 if [ ! -e xmga_nodr_noslices ]; then
82 wrtlog Starting XMGA \(no DR\) \(no slices\) benchmark runs, with 3 tries...
83 DEFAULTOPTS="-nosound -benchmark -vo xmga -fs -dr -noslices -vop disabled -autoq 0"
84 benchsamples
85 fi
86
87 if [ ! -e xmga_dr ]; then
88 wrtlog Starting XMGA \(DR\) benchmark runs, with 3 tries...
89 DEFAULTOPTS="-nosound -benchmark -vo xmga -fs -dr -vop disabled -autoq 0"
90 benchsamples
91 fi
92
93 if [ ! -e xmga_dr ]; then
94 wrtlog Starting XMGA \(DR\) \(no slices\) benchmark runs, with 3 tries...
95 DEFAULTOPTS="-nosound -benchmark -vo xmga -fs -dr -noslices -vop disabled -autoq 0"
96 benchsamples
97 fi
98 fi
99
100 wrtlog Benchmarks ready