testing: early break in a testing.B.Loop benchmark loop should be reported. #72933
Labels
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
Milestone
Go version
go version go1.24.1 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
For benchmark that breaks with its own logic,
-benchtime
won't work and the users should be notified.What did you see happen?
If we run the following benchmark with
go test -bench=. -benchtime=1s
:The output would be
What did you expect to see?
Instead of allowing the benchmark to pass with bogus numbers, we should let the user know that the benchmark failed.
The text was updated successfully, but these errors were encountered: