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

Allow for benchmark setup code #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Allow for benchmark setup code #24

wants to merge 2 commits into from

Conversation

reknih
Copy link

@reknih reknih commented Jan 23, 2022

This PR allows to include setup code for each benchmark that will be excluded by the measurement.
It achieves this by running each benchmark twice, once with, and once without the user's setup code. The setup runtime can then be excluded from the final figures. A Criterion-like task runner struct is introduced for this purpose.

Furthermore, the PR contains a small feature that allows filtering the benchmarks by name on the command line.

Merging this would close #20 and #23.

@AlexMikhalev
Copy link

Looking forward to this PR being merged and crate republished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow setup code to run outside of benchmark
3 participants