maxmind / MaxMind-DB-Reader-java

Java reader for the MaxMind DB format
https://maxmind.github.io/MaxMind-DB-Reader-java/
Apache License 2.0
114 stars 43 forks source link

Improve benchmark #19

Closed phraktle closed 8 years ago

phraktle commented 8 years ago

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.

oschwald commented 8 years ago

Thanks. These are definitely big improvements to the benchmark.