]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
also add an unitested windows batch file for the big benchmark for use with autobuild...
authorRudolf Polzer <divverent@alientrap.org>
Wed, 25 Jan 2012 19:02:55 +0000 (20:02 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 25 Jan 2012 19:02:55 +0000 (20:02 +0100)
misc/tools/the-big-benchmark.bat [new file with mode: 0644]

diff --git a/misc/tools/the-big-benchmark.bat b/misc/tools/the-big-benchmark.bat
new file mode 100644 (file)
index 0000000..7bac5ca
--- /dev/null
@@ -0,0 +1,57 @@
+@echo off\r
+\r
+cd ..\..\r
+\r
+echo The Big Benchmark\r
+echo  =================\r
+echo.\r
+if not exist all goto nogit\r
+echo The ./all script was detected here.\r
+echo Please use the-big-benchmark.sh instead!\r
+exit\r
+:nogit\r
+del data\benchmark.log\r
+del data\engine.log\r
+if "%1" == "" then goto noarg\r
+set xonotic=%1\r
+goto postarg\r
+if "%ProgramFiles(x86)%" == "" goto bit32\r
+:bit64\r
+set xonotic=xonotic-64.exe\r
+goto postarg\r
+:bit32\r
+set xonotic=xonotic.exe\r
+goto postarg\r
+:postarg\r
+echo. > data/engine.log\r
+echo Engine log follows: >> data/engine.log\r
+echo  =================== >> data/engine.log\r
+set p=-nohome -benchmarkruns 4 -benchmarkruns_skipfirst -benchmark demos/the-big-keybench.dem\r
+\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data/engine.log\r
+%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data/engine.log 2>&1\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data/engine.log\r
+%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data/engine.log 2>&1\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data/engine.log\r
+%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data/engine.log 2>&1\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data/engine.log\r
+%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data/engine.log 2>&1\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data/engine.log\r
+%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data/engine.log 2>&1\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data/engine.log\r
+%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data/engine.log 2>&1\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data/engine.log\r
+%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data/engine.log 2>&1\r
+type data/engine.log >> data/benchmark.log\r
+del data/engine.log\r
+echo.\r
+echo Please provide the the following info to the Xonotic developers:\r
+echo  - CPU speed\r
+echo  - memory size\r
+echo  - graphics card (which vendor, which model)\r
+echo  - operating system (including whether it is 32bit or 64bit)\r
+echo  - graphics driver version\r
+echo  - the file benchmark.log in the data directory\r
+echo\r
+echo Thank you\r
+pause\r