Skip to content

Share timing code between the developer benchmarks - #20070

Open
aholbreich wants to merge 1 commit into
omacom:quattrofrom
aholbreich:shared-benchmark-timing
Open

aholbreich wants to merge 1 commit into
omacom:quattrofrom
aholbreich:shared-benchmark-timing

Conversation

@aholbreich

@aholbreich aholbreich commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

The CLI and theme-switcher benchmarks each kept their own copy of the avg/min/max reporting and millisecond formatting. This moves those into one helper. It keeps #20147's inline clock fix, and the workloads, options, failure handling and cache cleanup stay in their existing commands.

Tested with test/shell.d/developer-benchmarks-test.sh (6 checks) and test/cli (143 checks) in a networkless sandbox. A 52-case comparison against current quattro with a fixed clock and stub workloads matched output, exit codes, command arguments and cache cleanup.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Both developer benchmarks now share benchmark_run_case and benchmark_format_ms.

  • Both benchmark commands print timing summaries through one shared reporter.

Reviews (2) · Last reviewed commit: "Share timing code between the developer ..." · Reviewed by Greptile

@aholbreich

Copy link
Copy Markdown
Contributor Author

@dhh a small refactoring.

@omarchybot omarchybot added the enhancement New feature or request label Nov 25, 2026
@aholbreich
aholbreich force-pushed the shared-benchmark-timing branch from c525715 to 9d26bbf Compare November 27, 2026 23:18
@aholbreich

Copy link
Copy Markdown
Contributor Author

The exclusive job failed in lock-appear-budget-test.sh with "omarchy-shell is not responding". That's been failing about half of PR runs since #20396 and isn't related to this PR. Could someone rerun it?

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants