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: performance regression in TB.Helper in Go 1.12 relative to Go 1.11 #32093
changed the title [-]performance regression in runtime.pcvalue in Go 1.12 relative to Go 1.11 [/-][+]runtime: performance regression in pcvalue in Go 1.12 relative to Go 1.11 [/+]on May 17, 2019
I found a simple fix though that actually makes it a bit faster than 1.11. I'll mail it out.
TL;DR we're symbolizing two PCs when we really only need to be symbolizing one.
changed the title [-]runtime: performance regression in pcvalue in Go 1.12 relative to Go 1.11 [/-][+]testing: performance regression in TB.Helper in Go 1.12 relative to Go 1.11[/+]on May 17, 2019
Activity
[-]performance regression in runtime.pcvalue in Go 1.12 relative to Go 1.11 [/-][+]runtime: performance regression in pcvalue in Go 1.12 relative to Go 1.11 [/+]g7r commentedon May 17, 2019
git bisectgave me the likely culprit: 69c2c56randall77 commentedon May 17, 2019
It's another ~10% slower at tip :(
I found a simple fix though that actually makes it a bit faster than 1.11. I'll mail it out.
TL;DR we're symbolizing two PCs when we really only need to be symbolizing one.
gopherbot commentedon May 17, 2019
Change https://golang.org/cl/177858 mentions this issue:
testing: callerName only needs one PC in the tracebackcespare commentedon May 17, 2019
@g7r is the problem for you specifically with testing.TB.Helper, or was that just the way you chose to demonstrate the regression?
(@randall77's fix in CL 177858 is specifically for Helper.)
g7r commentedon May 17, 2019
@cespare yes, mine problem is specifically with
testing.TB.Helper. Its performance heavily affects our test set run duration.[-]runtime: performance regression in pcvalue in Go 1.12 relative to Go 1.11 [/-][+]testing: performance regression in TB.Helper in Go 1.12 relative to Go 1.11[/+]cespare commentedon May 17, 2019
@g7r thanks -- I went ahead and retitled the issue accordingly.
I do wonder whether the underlying regression in runtime.Callers/CallersFrames will show up in other contexts.
randall77 commentedon May 17, 2019
There is more we could do here, but it's getting late for big things for 1.13.
gopherbot commentedon May 19, 2019
Change https://golang.org/cl/178077 mentions this issue:
runtime: In Frames.Next, delay file/line lookup until just before returnruntime: In Frames.Next, delay file/line lookup until just before return