annotate TOOLS/benchmark-gab/variables @ 10790:f40a897cb276

sync
author gabucino
date Mon, 01 Sep 2003 19:47:34 +0000
parents c36333ff54b0
children
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
7184
gabucino
parents: 7177
diff changeset
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
c36333ff54b0 some fixes
gabucino
parents: 7184
diff changeset
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
c36333ff54b0 some fixes
gabucino
parents: 7184
diff changeset
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
c36333ff54b0 some fixes
gabucino
parents: 7184
diff changeset
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
gabucino
parents: 7177
diff changeset
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 }