Skip to content

fix: show faster/slower annotations with --sort command and --reference#879

Open
leno23 wants to merge 1 commit into
sharkdp:masterfrom
leno23:fix/sort-command-reference-annotations-811
Open

fix: show faster/slower annotations with --sort command and --reference#879
leno23 wants to merge 1 commit into
sharkdp:masterfrom
leno23:fix/sort-command-reference-annotations-811

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

When --sort command is used together with --reference, the relative speed table previously showed only numeric ratios without the "times faster/slower than …" labels that appear in the default Summary output.

This adds those annotations to the command-sorted table when an explicit --reference is set (reference row stays at 1.00 without a suffix).

Fixes #811

Test plan

  • cargo test shows_faster_slower_annotations_with_sort_command_and_reference
  • cargo fmt

Made with Cursor

When --sort command is used with an explicit --reference, the relative
speed table now includes "times faster/slower than <reference>" labels,
matching the Summary output for --sort mean-time.

Fixes sharkdp#811

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Use of both --sort command and --reference options leads to confusing relative speed table

1 participant