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

Avoid showing NaN/inf for extremely fast commands #319

Closed
sharkdp opened this issue Sep 17, 2020 · 1 comment · Fixed by #334
Closed

Avoid showing NaN/inf for extremely fast commands #319

sharkdp opened this issue Sep 17, 2020 · 1 comment · Fixed by #334
Labels
bug good first issue Good for newcomers

Comments

@sharkdp
Copy link
Owner

sharkdp commented Sep 17, 2020

For example:

▶ hyperfine "echo 1" "echo 2" --runs 10

Benchmark #1: echo 1
  Time (mean ± σ):       0.0 ms ±   0.0 ms    [User: 0.0 ms, System: 0.3 ms]
  Range (min … max):     0.0 ms …   0.0 ms    10 runs
 
  Warning: Command took less than 5 ms to complete. Results might be inaccurate.
 
Benchmark #2: echo 2
  Time (mean ± σ):       1.8 ms ±   1.2 ms    [User: 2.0 ms, System: 0.7 ms]
  Range (min … max):     0.0 ms …   4.3 ms    10 runs
 
  Warning: Command took less than 5 ms to complete. Results might be inaccurate.
 
Summary
  'echo 1' ran
     inf ± NaN times faster than 'echo 2'
@sharkdp
Copy link
Owner Author

sharkdp commented Oct 16, 2020

Fixed in hyperfine v1.11.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant