Sixonix is a very barebones set of scripts which enable the user to run various benchmarks and collate the data.
Running benchmarks and collecting the data are surprisingly difficult to execute in a reliable manner. The problem sixonix is trying to solve is to enable benchmarking of different drivers, on the same system, while eliminating as much user error (ie. using a debug build of mesa) and system noise (using incorrect resolutions) as possible. It also attempts to do one step better than, "run ministat" (it will do that too, if you wish).
If one intends to do anything but utilize the default configuration and recipe, it will likely require a lot of user modification - and therefore that's not recommended. Although the project intends to eliminate as much user error as possible, users of this infrastructure should do some amount of manual verification for at least the first few times they use this tool, and after any benchmark updates.
- none?
- ministat
- python3
- numpy
- scipy
- ghc - lol, just kidding
- Unigine Heaven, Valley
- GFXBench 2.7, 3, 3.1, 4
- GPUTest
- Xonotic
- Warsow
- MegaGlest
- Synmark (internal benchmark)
Here is a brief list of dependencies that I don't have on a new Arch install. Other distros probably are missing other things. You're on your own.
- GFXBench4: libXi.so.6, libXrandr.so.2
- Warsow 2.1: libpng12
Assuming you know me, it's pretty easy to get started.
- Clone the sixonix repo.
- Copy my benchmarks directory
The benchmark shuffler will run a random mesa version with and a random benchmark. Obviously you can customize things to your heart's content, but if you want it to just work, you can follow the recipe below which will test mesa-slow vs mesa-fast
Once the run is complete, you may use the included script for generating statistics
The runner as it exists today depends on underscore " _ " within the file names to determine various information about the benchmark name, and which mesa is running. Let's not argue about the best way to do it - just don't name your mesa something with an underscore " _ " in it.
- Configure the mesa build with default prefix and no debug symbols. (ie, no -g, and don't touch --prefix or --exec_prefix)
./autogen.sh CFLAGS='-O2 -fomit-frame-pointer -march=native' ...
- Build mesa
make
- Install it to the local test directory
make DESTDIR=~/mesa-test-dir/mesa-slow install
- apply really cool patch that improves perf
git apply foo.patch
- Build and install the faster mesa
make && make DESTDIR=~/mesa-test-dir/mesa-fast install
- Move to a directory you don't mind cluttering
mkdir -p ~/results/perf ; cd $!
- Start benchmarking!
- A quick sanity test:
~/scripts/sixonix/run_shuffled_benchmarks.sh -Q
- Every test 20 times (this should be the gold standard):
~/scripts/sixonix/run_shuffled_benchmarks.sh -A -i 20
- Unigine benchmarks, 5 times:
~/scripts/sixonix/run_shuffled_benchmarks.sh -u -i 5
an execution.log file is created so one can quickly see the order in which things ran.
For convenience, a variable is define if one wants to invoke the debugger for one of the test. The debugger is started, and output is not suppressed if the DEBUGGER variable is defined. As an example: DEBUGGER="gdb --args" ~/scripts/sixonix/glx.sh /usr/lib/xorg/modules/ XONOTIC
By default, both statistics scripts will only output the tests which it finds to be statistically significant. Using the -v option will display all results. new_stats is what people should be using, but it's still very much a work in progress.
This is the default statistics generator. new_stats.py uses numpy for all the statistical information and tends to be very finicky about the input data. If you've got enough samples, you should definitely use this, otherwise, either munge the script, or use do_stats.
-
Default statistical comparison (all results) of two GL drivers:
~/scripts/sixonix/new_stat.py -v
-
Compare two tests:
~/scricts/sixonix/new_stats.py bench_warsow_mesa-slow bench_warsow_mesa-fast
The original do_stats script defers to ministat for all the statistical generation. What's nice about this script is it doesn't care about sample numbers or distributions, or anything like that. The bash quickly grew unmaintainable, and so it's abandoned. (ie. use at your own risk).
~/sripts/sixonix/do_stats.sh