Mercurial > mplayer.hg
annotate TOOLS/benchmark-gab/benchmark @ 7184:bcbbe5ee11fd
v0.91
small misc fixes
100l fix, for xv+xmga benchmarks, only VC was benchmarked, now total time
everywhere
author | gabucino |
---|---|
date | Sat, 31 Aug 2002 08:16:44 +0000 |
parents | cba37985dec5 |
children | c36333ff54b0 |
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 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
5 function benchsamples { |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
6 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
|
7 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
|
8 wrtlog Caching file... |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
9 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
|
10 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
|
11 wrtlog Options for this run: |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
12 wrtlog "$DEFAULTOPTS" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
13 wrtlog "Options for this file:" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
14 wrtlog "$BENCHOPTS" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
15 BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" |
7184 | 16 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
|
17 SYS=`echo $BENCH | awk '{print $9}'` |
7184 | 18 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
|
19 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
20 BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" |
7184 | 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 | 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 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
25 BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`" |
7184 | 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 | 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 done |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
30 } |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
31 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
32 if [ ! -d samples ]; then |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
33 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
|
34 exit 1 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
35 fi |
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 wrtlog Starting benchmarks |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
38 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
39 if [ ! -e no_codec ]; then |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
40 wrtlog Starting CODEC benchmark runs, with 3 tries... |
7184 | 41 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
|
42 benchsamples |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
43 fi |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
44 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
45 export DISPLAY=:0 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
46 export XAUTHORITY=$HOME/.Xauthority |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
47 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
48 if [ ! -e no_xv ]; then |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
49 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
|
50 wrtlog Starting XVideo \(no DR\) benchmark runs, with 3 tries... |
7184 | 51 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
|
52 benchsamples |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
53 fi |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
54 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
55 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
|
56 wrtlog Starting XVideo \(no DR\) \(no slices\) benchmark runs, with 3 tries... |
7184 | 57 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
|
58 benchsamples |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
59 fi |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
60 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
61 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
|
62 wrtlog Starting XVideo \(DR\) benchmark runs, with 3 tries... |
7184 | 63 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
|
64 benchsamples |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
65 fi |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
66 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
67 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
|
68 wrtlog Starting XVideo \(DR\) \(no slices\) benchmark runs, with 3 tries... |
7184 | 69 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
|
70 benchsamples |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
71 fi |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
72 fi |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
73 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
74 if [ -e xmga ]; then |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
75 if [ ! -e xmga_nodr ]; then |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
76 wrtlog Starting XMGA \(no DR\) benchmark runs, with 3 tries... |
7184 | 77 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
|
78 benchsamples |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
79 fi |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
80 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
81 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
|
82 wrtlog Starting XMGA \(no DR\) \(no slices\) benchmark runs, with 3 tries... |
7184 | 83 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
|
84 benchsamples |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
85 fi |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
86 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
87 if [ ! -e xmga_dr ]; then |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
88 wrtlog Starting XMGA \(DR\) benchmark runs, with 3 tries... |
7184 | 89 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
|
90 benchsamples |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
91 fi |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
92 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
93 if [ ! -e xmga_dr ]; then |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
94 wrtlog Starting XMGA \(DR\) \(no slices\) benchmark runs, with 3 tries... |
7184 | 95 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
|
96 benchsamples |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
97 fi |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
98 fi |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
99 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
100 wrtlog Benchmarks ready |