blob: 0e2f39d9b52575bb4c5b0a594d925931cf9e4219 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/sh
# Originally from linuxforen.de
# Modified by phoen][x <phoenix@gentoo.org>, Sep/19/2002
# Modifications, enhancements or bugs? Mail me.
# Tweaks by Daniel Robbins <drobbins@gentoo.org> 25 Feb 2003
STUFF=/opt/ut2003-demo/Benchmark/Stuff
MYPATH=${HOME}/.ut2003/Benchmark
TEMPLOG=${MYPATH}/benchmark.log
LOG=${MYPATH}/bench.log
[ -d ${MYPATH} ] || mkdir -p ${MYPATH}
rm -f ${TEMPLOG} ${LOG}
touch ${TEMPLOG} ${LOG}
date > $LOG
echo ">> Starting benchmark"
cd /opt/ut2003-demo/System
for BENCH in /opt/ut2003-demo/Benchmark/*-*.sh
do
echo "Running ${BENCH} with MinDetail"
${BENCH} -ini=${STUFF}/MinDetail.ini -userini=${STUFF}/MinDetailUser.ini &> /dev/null
echo -n "${BENCH} / MinDetail / " >> ${LOG}
cat ${TEMPLOG} | tail -n1 >> ${LOG}
echo "Running ${BENCH} with MaxDetail"
${BENCH} -ini=${STUFF}/MaxDetail.ini -userini=${STUFF}/MaxDetailUser.ini &> /dev/null
echo -n "${BENCH} / MaxDetail / " >> ${LOG}
cat ${TEMPLOG} | tail -n1 >> ${LOG}
done
echo ">> Benchmark complete"
/opt/ut2003-demo/Benchmark/results.sh
echo ">> Use 'ut2003-demo --results' to show these results again (without benchmarking)"
|