Skip to content

Apply UseManualTime to BM_bytes_per_second and BM_items_per_second - #2320

Merged
dmah42 merged 1 commit into
google:mainfrom
stanbot8:fix/usemanualtime-bm-per-second
Oct 6, 2026
Merged

dmah42 merged 1 commit into
google:mainfrom
stanbot8:fix/usemanualtime-bm-per-second

Conversation

@stanbot8

@stanbot8 stanbot8 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

BM_bytes_per_second and BM_items_per_second in test/reporter_output_test.cc can record zero CPU time, producing infinite rates that fail reporter_output_test's finite-number output checks.

Use positive manual timing for both and update the report names to include /manual_time.

Whitespace-hidden diff

AI Disclosure: Reviewed by Codex.

@dmah42

dmah42 commented Oct 6, 2026

Copy link
Copy Markdown
Member

smart change. i wonder if we should also now check the output is calculating the rates correctly (we know the time is fixed so it should be assertable).

@stanbot8
stanbot8 force-pushed the fix/usemanualtime-bm-per-second branch 3 times, most recently from 591333c to 3a279ad Compare October 6, 2026 14:35
@dmah42
dmah42 merged commit 39a78e3 into google:main Oct 6, 2026
104 checks passed
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.

2 participants