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

Display parameter values if they aren't used in the benchmarked command #600

Closed
SUPERCILEX opened this issue Jan 4, 2023 · 3 comments · Fixed by #644
Closed

Display parameter values if they aren't used in the benchmarked command #600

SUPERCILEX opened this issue Jan 4, 2023 · 3 comments · Fixed by #644

Comments

@SUPERCILEX
Copy link

Not sure what the UI should look like, but if you only use parameter values in a prepare command, you currently have no way of knowing which benchmarks used which parameters.

@sharkdp
Copy link
Owner

sharkdp commented Jan 14, 2023

Thank you. This sounds very reasonable.

Not sure what the UI should look like

Any help would be appreciated.

@strokirk
Copy link

strokirk commented Mar 7, 2023

A suggestion:

Benchmark 1: command args
  Params: x='foo' y='bar'
  Time (mean ± σ):      3.246 s ±  0.023 s    [User: 2.903 s, System: 0.250 s]
  Range (min … max):    3.213 s …  3.267 s    5 runs

Benchmark 2: command args
  Params: x='bar' y='foo'
  Time (mean ± σ):      2.448 s ±  0.080 s    [User: 2.119 s, System: 0.239 s]
  Range (min … max):    2.362 s …  2.564 s    5 runs

Summary
  'command args' with x='foo' y='bar' ran
    1.33 ± 0.04 times faster than 'command args' with x='bar' y='foo'

@sharkdp
Copy link
Owner

sharkdp commented Jun 3, 2023

This is now supported in https://github.com/sharkdp/hyperfine/releases/tag/v1.17.0

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

Successfully merging a pull request may close this issue.

3 participants