Skip to content

Conversation

@phraktle
Copy link
Contributor

Benchmark results might vary based on a number of factors. I tend to select a fixed random seed so the test run is repeatable. Also, I disable Intel's Turbo Boost feature, so it doesn't vary the CPU frequency with overclocking. I run the benchmark loop multiple times, so the JIT is warmed up. With these tweaks, you get more consistent and meaningful results.

 * path to database can be parametrized
 * do separate warmup and benchmark loops (so JIT can kick in)
 * use fixed random seeds for repeatable runs
@oschwald
Copy link
Member

Thanks. These are definitely big improvements to the benchmark.

oschwald added a commit that referenced this pull request Dec 29, 2015
@oschwald oschwald merged commit 8bf2c92 into maxmind:master Dec 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants