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

Add an option to save a benchmark run for later comparisons #607

Open
CosmicHorrorDev opened this issue Jan 28, 2023 · 2 comments
Open

Add an option to save a benchmark run for later comparisons #607

CosmicHorrorDev opened this issue Jan 28, 2023 · 2 comments
Labels
feature-request help wanted Extra attention is needed

Comments

@CosmicHorrorDev
Copy link

CosmicHorrorDev commented Jan 28, 2023

There are times when I want to have some baseline saved that I compare later changes to. It would be convenient if I had a way to save a benchmarking run and then load that to later runs. Something like

$ hyperfine --save-benchmark baseline 'sleep 1'
$ hyperfine --load-benchmark baseline 'sleep 0.5'
{{ display things as though `hyperfine 'sleep 1' 'sleep 0.5'` had been run }}

If you're interested in supporting this then I can work on adding it as a feature

@sharkdp
Copy link
Owner

sharkdp commented Feb 28, 2023

That sounds like a cool idea, thank you. It also sounds like a rather complex feature that is not easy to design. So before we go ahead trying to implement this, I'd like to discuss how this would work, what kind of implications this has on other features, what the CLI would look like, etc.

Note: we already have --export-json, so that could probably be used for the "storing" side of things.

@sharkdp sharkdp added feature-request help wanted Extra attention is needed labels Feb 28, 2023
@sharkdp
Copy link
Owner

sharkdp commented Feb 28, 2023

Slightly related: #577

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants