Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve benchmark #19

Merged
merged 2 commits into from
Dec 29, 2015
Merged

Improve benchmark #19

merged 2 commits into from
Dec 29, 2015

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