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

Bencher::iter should support per-iteration setup #18043

Closed
kmcallister opened this Issue Oct 14, 2014 · 2 comments

Comments

Projects
None yet
4 participants
@kmcallister
Copy link
Contributor

kmcallister commented Oct 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.

@steveklabnik

This comment has been minimized.

Copy link
Member

steveklabnik commented Mar 4, 2016

Triage: no change.

@dtolnay

This comment has been minimized.

Copy link
Member

dtolnay commented Nov 19, 2017

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 dtolnay closed this Nov 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.