You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
testing: benchmarks timing issue when using -count > 1 #25622
The benchmark uses RunParallel. It seems the the change linked above may have introduced timing issues on benchmarks that use RunParallel. For example, using this:
changed the title [-]test: benchmarks timing issue when using -count > 1[/-][+]testing: benchmarks timing issue when using -count > 1[/+]on May 29, 2018
Activity
[-]test: benchmarks timing issue when using -count > 1[/-][+]testing: benchmarks timing issue when using -count > 1[/+]erifan commentedon May 31, 2018
The same issue on arm64:
goos: linux
goarch: arm64
pkg: encoding/json
BenchmarkTypeFieldsCache/HitTypes1-32 500000000 3.51 ns/op
BenchmarkTypeFieldsCache/HitTypes1-32 500000000 77.9 ns/op
BenchmarkTypeFieldsCache/HitTypes1-32 500000000 64.9 ns/op
BenchmarkTypeFieldsCache/HitTypes10-32 500000000 3.55 ns/op
BenchmarkTypeFieldsCache/HitTypes10-32 500000000 64.6 ns/op
BenchmarkTypeFieldsCache/HitTypes10-32 500000000 63.6 ns/op
ALTree commentedon May 31, 2018
I looked into this yesterday and I got nowhere. I'll send a revert for that change.
gopherbot commentedon May 31, 2018
Change https://golang.org/cl/115535 mentions this issue:
Revert "testing: only compute b.N once when passed -count > 1"ALTree commentedon May 31, 2018
The change was reverted. @laboger @erifan if you could verify that the bench regression is gone on ppc64le and arm64 that would be great.
laboger commentedon May 31, 2018
I noticed this went in and tried it right away -- looks like it is now working as expected for ppc64le.
erifan commentedon Jun 4, 2018
It is now working as expected for arm64.