cmd/compile: worse performance when built with pgo #71400
Labels
BugReport
Issues describing a possible bug in the Go implementation.
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
Go version
go version go1.23.5 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Building with PGO, but result in performance regressions.
The build flag is:
Then start the TiDB and run sysbench test, following is the test result, the QPS of building with PGO is lower.
What did you see happen?
The performance of build with PGO is worse because
newstack
appeared during execution.profile.zip
CPU profile of building without PGO:
CPU profile of building with PGO:
What did you expect to see?
no
newstack
during execution.Is there any way to avoid
newstack
during execution, such as set stack size when creating goroutine?The text was updated successfully, but these errors were encountered: