Mercurial > mplayer.hg
annotate TOOLS/benchmark-gab/variables @ 16528:c1267de1d7d9
Make frameno.avi not turn on by default. this is deprecated and this entire
feature should be removed anyway. manpage update in a bit...
author | ods15 |
---|---|
date | Mon, 19 Sep 2005 19:23:38 +0000 |
parents | c36333ff54b0 |
children |
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 |
7184 | 2 export PATH=$PATH:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin |
7177
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
3 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
4 VENDOR="`cat /proc/cpuinfo | grep vendor_id | cut -c 13-`" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
5 MODEL="`cat /proc/cpuinfo | grep "model name" | cut -c 14-`" |
7197 | 6 CPUFLAGS="`cat /proc/cpuinfo | grep flags | cut -c 10-`" |
7177
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
7 MHZ="`cat /proc/cpuinfo | grep MHz | cut -c 12-14` MHz" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
8 MEMORY="`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` Kb" |
7197 | 9 BUILD="`echo $VENDOR $MODEL $MHZ | tr [\ ] [_] | tr [\/] [_]`" |
7177
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
10 VGA="`lspci | grep VGA | cut -c 36-`" |
7197 | 11 MPBIN="$BUILD/mplayer" |
7177
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
12 |
7184 | 13 export LOGFILE="`pwd`/log-$BUILD-`date +\"%Y-%m-%d\"`" |
7177
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
14 export COMPILEOPTIONS="--enable-runtime-cpudetection" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
15 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
16 function wrtlog { |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
17 echo "[ `date +\"%Y-%m-%d %T\"` ] $*" >> "$LOGFILE" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
18 } |