Skip to content

docs: explain benchmark output fields#888

Open
leno23 wants to merge 1 commit into
sharkdp:masterfrom
leno23:docs/output-fields-443
Open

docs: explain benchmark output fields#888
leno23 wants to merge 1 commit into
sharkdp:masterfrom
leno23:docs/output-fields-443

Conversation

@leno23

@leno23 leno23 commented May 26, 2026

Copy link
Copy Markdown

Summary

  • Add an OUTPUT section to doc/hyperfine.1 describing mean ± σ, min/max range, User/System CPU times, and relative speed comparison
  • Add an Understanding the output section to the README with the same explanations

Fixes #443

Test plan

  • Documentation-only change; reviewed rendered README section locally
  • Man page section follows existing roff formatting conventions

Document mean ± σ, min/max range, User/System CPU times, and relative
speed comparison in the man page and README.

Co-authored-by: Cursor <cursoragent@cursor.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 62883fbb50

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md

When comparing multiple commands, hyperfine prints a relative speed summary at the
end, for example `2.00 ± 0.05 times faster than …`. The value is the ratio of mean
runtimes; the `±` suffix shows the standard deviation of that ratio across runs.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Describe relative ± as propagated uncertainty, not run stddev

The new README text says the relative ± value is “the standard deviation of that ratio across runs,” but compute_relative_speeds derives it via uncertainty propagation from each command’s mean/stddev (ratio * sqrt((σ_a/μ_a)^2 + (σ_b/μ_b)^2) with independence assumed) rather than by computing per-run ratios. This wording can mislead users about what the confidence term represents and should be corrected to match the implemented calculation.

Useful? React with 👍 / 👎.

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.

Document hyperfine's output fields

1 participant