annotate TOOLS/benchmark-gab/benchmark @ 7788:25bf4f45639e

#ifdef PIX_FMT_YUV411P...
author arpi
date Sat, 19 Oct 2002 00:23:50 +0000
parents c36333ff54b0
children 835822ce4bb1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
1 #!/bin/sh
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
2
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
3 . ./variables
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
4
7197
c36333ff54b0 some fixes
gabucino
parents: 7184
diff changeset
5 if [ ! -e $MPBIN ]; then
c36333ff54b0 some fixes
gabucino
parents: 7184
diff changeset
6 wrtlog No MPlayer binary compiled for this arch, trying ./mplayer
c36333ff54b0 some fixes
gabucino
parents: 7184
diff changeset
7 export MPBIN="./mplayer"
c36333ff54b0 some fixes
gabucino
parents: 7184
diff changeset
8 fi
c36333ff54b0 some fixes
gabucino
parents: 7184
diff changeset
9
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
10 function benchsamples {
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
11 for i in `ls samples/* | grep -v -e '\.opts'`; do
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
12 BENCHOPTS=`cat $i.opts 2> /dev/null`
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
13 wrtlog Caching file...
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
14 dd if=$i of=/dev/null bs=512k 2> /dev/null
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
15 wrtlog Video decoding: `basename $i`, size: `ls -Ll $i | awk '{print $5}'`
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
16 wrtlog Options for this run:
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
17 wrtlog "$DEFAULTOPTS"
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
18 wrtlog "Options for this file:"
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
19 wrtlog "$BENCHOPTS"
7197
c36333ff54b0 some fixes
gabucino
parents: 7184
diff changeset
20 BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
7184
gabucino
parents: 7177
diff changeset
21 VC=`echo $BENCH | awk '{print $11}'`
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
22 SYS=`echo $BENCH | awk '{print $9}'`
7184
gabucino
parents: 7177
diff changeset
23 wrtlog Total: $VC \(Sys: $SYS\)
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
24
7197
c36333ff54b0 some fixes
gabucino
parents: 7184
diff changeset
25 BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
7184
gabucino
parents: 7177
diff changeset
26 VC=`echo $BENCH | awk '{print $11}'`
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
27 SYS=`echo $BENCH | awk '{print $9}'`
7184
gabucino
parents: 7177
diff changeset
28 wrtlog Total: $VC \(Sys: $SYS\)
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
29
7197
c36333ff54b0 some fixes
gabucino
parents: 7184
diff changeset
30 BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
7184
gabucino
parents: 7177
diff changeset
31 VC=`echo $BENCH | awk '{print $11}'`
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
32 SYS=`echo $BENCH | awk '{print $9}'`
7184
gabucino
parents: 7177
diff changeset
33 wrtlog Total: $VC \(Sys: $SYS\)
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
34 done
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
35 }
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
36
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
37 if [ ! -d samples ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
38 wrtlog Samples subdirectory not present, exiting...
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
39 exit 1
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
40 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
41
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
42 wrtlog Starting benchmarks
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
43
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
44 if [ ! -e no_codec ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
45 wrtlog Starting CODEC benchmark runs, with 3 tries...
7184
gabucino
parents: 7177
diff changeset
46 DEFAULTOPTS="-quiet -nosound -benchmark -vo null -vop disabled -autoq 0"
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
47 benchsamples
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
48 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
49
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
50 export DISPLAY=:0
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
51 export XAUTHORITY=$HOME/.Xauthority
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
52
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
53 if [ ! -e no_xv ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
54 if [ ! -e no_xv_nodr ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
55 wrtlog Starting XVideo \(no DR\) benchmark runs, with 3 tries...
7184
gabucino
parents: 7177
diff changeset
56 DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -nodr -slices -vop disabled -autoq 0"
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
57 benchsamples
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
58 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
59
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
60 if [ ! -e no_xv_nodr_noslices ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
61 wrtlog Starting XVideo \(no DR\) \(no slices\) benchmark runs, with 3 tries...
7184
gabucino
parents: 7177
diff changeset
62 DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -nodr -noslices -vop disabled -autoq 0"
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
63 benchsamples
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
64 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
65
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
66 if [ ! -e no_xv_dr ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
67 wrtlog Starting XVideo \(DR\) benchmark runs, with 3 tries...
7184
gabucino
parents: 7177
diff changeset
68 DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -dr -slices -vop disabled -autoq 0"
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
69 benchsamples
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
70 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
71
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
72 if [ ! -e no_xv_dr_noslices ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
73 wrtlog Starting XVideo \(DR\) \(no slices\) benchmark runs, with 3 tries...
7184
gabucino
parents: 7177
diff changeset
74 DEFAULTOPTS="-quiet -nosound -benchmark -vo xv -fs -dr -noslices -vop disabled -autoq 0"
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
75 benchsamples
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
76 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
77 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
78
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
79 if [ -e xmga ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
80 if [ ! -e xmga_nodr ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
81 wrtlog Starting XMGA \(no DR\) benchmark runs, with 3 tries...
7184
gabucino
parents: 7177
diff changeset
82 DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -dr -slices -vop disabled -autoq 0"
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
83 benchsamples
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
84 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
85
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
86 if [ ! -e xmga_nodr_noslices ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
87 wrtlog Starting XMGA \(no DR\) \(no slices\) benchmark runs, with 3 tries...
7184
gabucino
parents: 7177
diff changeset
88 DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -dr -noslices -vop disabled -autoq 0"
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
89 benchsamples
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
90 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
91
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
92 if [ ! -e xmga_dr ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
93 wrtlog Starting XMGA \(DR\) benchmark runs, with 3 tries...
7184
gabucino
parents: 7177
diff changeset
94 DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -dr -vop disabled -autoq 0"
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
95 benchsamples
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
96 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
97
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
98 if [ ! -e xmga_dr ]; then
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
99 wrtlog Starting XMGA \(DR\) \(no slices\) benchmark runs, with 3 tries...
7184
gabucino
parents: 7177
diff changeset
100 DEFAULTOPTS="-quiet -nosound -benchmark -vo xmga -fs -dr -noslices -vop disabled -autoq 0"
7177
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
101 benchsamples
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
102 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
103 fi
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
104
cba37985dec5 v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff changeset
105 wrtlog Benchmarks ready