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. |
|
@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::nthbenchmarks 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
nwe feednthwith.