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: b.Loop gives bogus results in some situations [1.24 backport] #72974
I'm on the fence about whether this should be backported. It makes b.Loop, which is new in Go 1.24, more robust to user mistakes, but those same mistakes could have been made with the old b.N style benchmarks, we just couldn't catch them. In support of backporting, it is a brand new feature and we're going to post a blog post about it soon so it'll probably get a spike in usage.
Activity
aclements commentedon Mar 20, 2025
If we do want to backport this, we need to land backport #72934 first.
gopherbot commentedon Mar 25, 2025
Change https://go.dev/cl/660556 mentions this issue:
[release-branch.go1.24] testing: separate b.Loop counter from b.Ngopherbot commentedon Mar 25, 2025
Change https://go.dev/cl/660557 mentions this issue:
[release-branch.go1.24] testing: detect early return from B.Loopgopherbot commentedon Mar 25, 2025
Change https://go.dev/cl/660558 mentions this issue:
[release-branch.go1.24] testing: detect a stopped timer in B.Loop[release-branch.go1.24] testing: separate b.Loop counter from b.N
[release-branch.go1.24] testing: detect early return from B.Loop
gopherbot commentedon Mar 26, 2025
Closed by merging CL 660556 (commit 9204aca) to
release-branch.go1.24.[release-branch.go1.24] testing: detect a stopped timer in B.Loop