testing: Benchmark reporting incorrect stats when running in parallel #28813
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Applies to earlier versions as well
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?
Using the following test file:
Running in parallel, results were ~1ms / for
ns/op
. This mean that doubling threadcount would halve ns/op.What did you expect to see?
ns/op hold the same and not go below 1ms.
What did you see instead?
When running with 128 goroutines, go the following output:
This is reporting that the benchmark process is taking well under 1ms (which is the sleep duration above).
The text was updated successfully, but these errors were encountered: