-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add postprocess::Function arg to benchmarkpkg() #75
Conversation
postprocess is a function that takes the results `Benchmarkgroup` and either modifies them or returns a new version. This allows users to inject logic into the benchmarking pipeline, including subtracting two runs, dividing by N, or other such operations.
2 similar comments
2b416dd
to
ad36c98
Compare
@jrevels, any chance I could get your input on this? 😄 Thanks! |
@KristofferC I think this is in good shape to review if you have time! :) It's a pretty small PR, but it unlocks significant more usecases for using For an example, using this |
(Also i think the failing coverage is noisy; i definitely do cover that line. I know i've read that coverage has been wonky lately. 😢) |
friendly ping! :) This should be good to merge. |
Sorry for slow action. |
:) No problem. Thanks for the review, @KristofferC! :) Cheers! |
postprocess is a function that takes the results
Benchmarkgroup
andeither modifies them or returns a new version.
This allows users to inject logic into the benchmarking pipeline,
including subtracting two runs, dividing by N, or other such operations.
Fixes #74