-
Notifications
You must be signed in to change notification settings - Fork 310
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
Benchmark .nth[_back](n)
with inputs n
#916
Benchmark .nth[_back](n)
with inputs n
#916
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #916 +/- ##
==========================================
+ Coverage 94.38% 94.43% +0.05%
==========================================
Files 48 48
Lines 6665 6869 +204
==========================================
+ Hits 6291 6487 +196
- Misses 374 382 +8 ☔ View full report in Codecov by Sentry. |
@kinto-b
Benchmark changes closely follow allocations changes. |
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.
Could we argue similarly for start
? (I.e. should we export for each value of start
separately?)
@phimuemue I'm not sure about Build (not run) those benchmarks was already slow (~2 minutes) and is probably a bit slower now. |
Sometime ago I tried changing |
When I want to benchmark only a few iterators, I don't use iproduct and end up with an annoying and recurring warning that this simple fix solves.
I found some macro magic trick to select some of the benchmarks (by prefix names with a lifetime (dirty trick)) and reduce build times. @phimuemue What do you think about those |
I would leave it in. I think the reason is that iterators may behave differently after they've been We can remove it later once we are sure that it's not needed. |
@Philippe-Cholet Ah thanks for sharing that. I am a bit confused by the fact that the 'after' times get smaller and smaller for larger and larger |
@kinto-b The benchmark roughly measures |
I introduced specialization benchmarks in #786.
However, run
Combinations::nth
benchmarks in #914 did not give meaningful feedback. Sure it was globally faster but we could not say how much for eachn
.So here I change the benchmarks to give informations based on the value
n
we feednth
with.