-
Notifications
You must be signed in to change notification settings - Fork 221
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
Assorted Refactorings Part 2 #536
Conversation
Now that we have a module for benchmark, one could write a test for this part and compare before & after the change. |
Hey! It looks like maybe the reason Oleg had indicated the risk was that he experienced performance sensitivity in this area already. Master:
This Branch:
Happy to let these benchmarks run longer, but after the first pass through (5 forks, 5 iteration warmup, 5 test runs), the results look promising that we're not introducing a performance regression by accepting this PR. @yanns Happy to leave it up to you if you would like me to run longer benchmarks before accepting this is A.O.K. @nightscape I actually wonder if your hunch about collection methods being more optimized may play out here in the long run! |
98e8e39
to
8d39237
Compare
From 669.221 ops/s to 255.573 ops/s is quite a performance degradation, right? |
Maybe I am reading it wrong, but my understanding of this is that it's 33743.582 vs 34008.015 ? Based on this: https://stackoverflow.com/questions/33604084/understanding-jmh-output, I believe this says, with 99.9% confidence, the first run can be expected to perform The second run: |
I'll go ahead and get a full run running in the cloud so I can let it sit |
Master
This Branch
The StringUtilBenchmark difference (presumably a baseline) is pretty bizzare, and it looks like maybe these machines were under very different conditions. I am re-running again, since I think this would only be a fair comparison with our baseline closer together. The benchmarking SHALL CONTINUE! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks for the deep investigation!
This is a continuation of #404, with items that Oleg had indicated as potentially risky due to performance implications as mentioned here: #404 (review)
I'd like to keep the changes around, so I have split this into a separate PR in hopes that we can come up with a plan to validate, or disprove Oleg's concerns.