]> git.xonotic.org Git - xonotic/xonotic.git/blob - the-big-benchmark.sh
simplify (use wildcards here too)
[xonotic/xonotic.git] / the-big-benchmark.sh
1 #!/bin/sh
2
3 set -e
4
5 echo "The Big Benchmark"
6 echo " ================="
7 echo
8 echo "WARNING: running this script will destroy ANY local changes you"
9 echo "might have on the repository."
10 echo
11 if [ x"$1" != x"--yes" ]; then
12         echo "Are you absolutely sure you want to run this?"
13         echo
14         while :; do
15                 echo -n "y/n: "
16                 read -r yesno
17                 case "$yesno" in
18                         y)
19                                 break
20                                 ;;
21                         n)
22                                 echo "Aborted."
23                                 exit 1
24                                 ;;
25                 esac
26         done
27 fi
28
29 set -x
30 rm -f data/benchmark.log
31 ./all clean --reclone
32 ./all compile -r
33 USE_GDB=no ./all run "$@" -nohome -benchmarkruns 3 -benchmark demos/the-big-keybench.dem +//div0-stable || true
34 ./all clean -r -f
35 (
36         cd darkplaces
37         git checkout div0-stable-pred3d9 || git checkout -t origin/div0-stable-pred3d9 || exit 1
38 )
39 ./all compile -r
40 USE_GDB=no ./all run "$@" -nohome -benchmarkruns 3 -benchmark demos/the-big-keybench.dem +//div0-stable-pred3d9 || true
41 ./all clean -r -f -u
42 set +x
43
44 echo
45 echo "Please provide the the following info to the Xonotic developers:"
46 echo " - CPU speed"
47 echo " - memory size"
48 echo " - graphics card (which vendor, which model)"
49 echo " - operating system (including whether it is 32bit or 64bit)"
50 echo " - graphics driver version"
51 echo " - the following info:"
52 cat data/benchmark.log
53 echo
54 echo "Thank you"