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 throughput benchmarks #29

Open
leventov opened this issue Jul 17, 2016 · 0 comments
Open

Improve throughput benchmarks #29

leventov opened this issue Jul 17, 2016 · 0 comments

Comments

@leventov
Copy link

  1. Use JMH
  2. Create less garbage; don't invoke expensive Integer.toString() in the tight loop.
    Simple profiling shows that significant portion of benchmark time is spent in Integer.toString(); hence benchmarks results are "shifted" and could make wrong impression on the actual performance difference between the benchmarked stores. Creating garbage makes garbage collection to kick in unpredictably during benchmarking, that makes results less representative as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant