]> git.xonotic.org Git - xonotic/xonotic.git/blob - misc/tools/the-big-benchmark.bat
also add an unitested windows batch file for the big benchmark for use with autobuild...
[xonotic/xonotic.git] / misc / tools / the-big-benchmark.bat
1 @echo off\r
2 \r
3 cd ..\..\r
4 \r
5 echo The Big Benchmark\r
6 echo  =================\r
7 echo.\r
8 if not exist all goto nogit\r
9 echo The ./all script was detected here.\r
10 echo Please use the-big-benchmark.sh instead!\r
11 exit\r
12 :nogit\r
13 del data\benchmark.log\r
14 del data\engine.log\r
15 if "%1" == "" then goto noarg\r
16 set xonotic=%1\r
17 goto postarg\r
18 if "%ProgramFiles(x86)%" == "" goto bit32\r
19 :bit64\r
20 set xonotic=xonotic-64.exe\r
21 goto postarg\r
22 :bit32\r
23 set xonotic=xonotic.exe\r
24 goto postarg\r
25 :postarg\r
26 echo. > data/engine.log\r
27 echo Engine log follows: >> data/engine.log\r
28 echo  =================== >> data/engine.log\r
29 set p=-nohome -benchmarkruns 4 -benchmarkruns_skipfirst -benchmark demos/the-big-keybench.dem\r
30 \r
31 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data/engine.log\r
32 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data/engine.log 2>&1\r
33 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data/engine.log\r
34 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data/engine.log 2>&1\r
35 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data/engine.log\r
36 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data/engine.log 2>&1\r
37 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data/engine.log\r
38 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data/engine.log 2>&1\r
39 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data/engine.log\r
40 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data/engine.log 2>&1\r
41 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data/engine.log\r
42 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data/engine.log 2>&1\r
43 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data/engine.log\r
44 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data/engine.log 2>&1\r
45 type data/engine.log >> data/benchmark.log\r
46 del data/engine.log\r
47 echo.\r
48 echo Please provide the the following info to the Xonotic developers:\r
49 echo  - CPU speed\r
50 echo  - memory size\r
51 echo  - graphics card (which vendor, which model)\r
52 echo  - operating system (including whether it is 32bit or 64bit)\r
53 echo  - graphics driver version\r
54 echo  - the file benchmark.log in the data directory\r
55 echo\r
56 echo Thank you\r
57 pause\r