testing: benchmark performance misaligned for fast tests #30928
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I ran some fast tests, where each iteration took less than a nanosecond. This led to the results table to be misaligned.
Here's a reproducible example:
What did you expect to see?
What did you see instead?
Thoughts
I guess this has to do with performance numbers being printed as
%8d
, so anything larger than that will get shifted.The text was updated successfully, but these errors were encountered: