Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upBencher::iter should support per-iteration setup #18043
Comments
kmcallister
added
A-libs
labels
Oct 14, 2014
steveklabnik
added
the
C-enhancement
label
Feb 14, 2015
This comment has been minimized.
This comment has been minimized.
|
Triage: no change. |
steveklabnik
added
T-libs
and removed
A-libs
labels
Mar 24, 2017
Mark-Simulacrum
added
A-libtest
and removed
A-benchmarks
labels
Jun 24, 2017
Mark-Simulacrum
added
C-feature-request
and removed
C-enhancement
labels
Sep 10, 2017
This comment has been minimized.
This comment has been minimized.
|
I would like to track this as part of rust-lang/rfcs#816. That way we keep the standard test framework minimal while allowing libraries to develop more sophisticated custom test and benchmark frameworks with setup and teardown, knobs for number of iterations, access to statistics, control over CPU caches, etc. |
dtolnay
closed this
Nov 19, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kmcallister commentedOct 14, 2014
For example, constructing a buffer that will be consumed by the iteration. This needs to not be counted in the elapsed time, but it's hard to do that without per-iteration timing overhead.