Mercurial > mplayer.hg
comparison TOOLS/benchmark-gab/variables @ 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 |
comparison
equal
deleted
inserted
replaced
7183:6f7ae14f29a8 | 7184:bcbbe5ee11fd |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 export PATH=$PATH:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin | |
2 | 3 |
3 VENDOR="`cat /proc/cpuinfo | grep vendor_id | cut -c 13-`" | 4 VENDOR="`cat /proc/cpuinfo | grep vendor_id | cut -c 13-`" |
4 MODEL="`cat /proc/cpuinfo | grep "model name" | cut -c 14-`" | 5 MODEL="`cat /proc/cpuinfo | grep "model name" | cut -c 14-`" |
5 MHZ="`cat /proc/cpuinfo | grep MHz | cut -c 12-14` MHz" | 6 MHZ="`cat /proc/cpuinfo | grep MHz | cut -c 12-14` MHz" |
6 MEMORY="`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` Kb" | 7 MEMORY="`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` Kb" |
7 BUILD="`echo $VENDOR $MODEL $MHZ | tr [\ ] [_]`" | 8 BUILD="`echo $VENDOR $MODEL $MHZ | tr [\ ] [_]`" |
8 VGA="`lspci | grep VGA | cut -c 36-`" | 9 VGA="`lspci | grep VGA | cut -c 36-`" |
9 | 10 |
10 export LOGFILE="`pwd`/$BUILD.logs/log-`date +\"%Y-%m-%d\"`" | 11 export LOGFILE="`pwd`/log-$BUILD-`date +\"%Y-%m-%d\"`" |
11 export COMPILEOPTIONS="--enable-runtime-cpudetection" | 12 export COMPILEOPTIONS="--enable-runtime-cpudetection" |
12 | |
13 mkdir $BUILD.logs 2> /dev/null | |
14 | 13 |
15 function wrtlog { | 14 function wrtlog { |
16 echo "[ `date +\"%Y-%m-%d %T\"` ] $*" >> "$LOGFILE" | 15 echo "[ `date +\"%Y-%m-%d %T\"` ] $*" >> "$LOGFILE" |
17 } | 16 } |