Go 1.22 Improves CPU Performance By 1–3%

Tom Smykowski
3 min readFeb 7, 2024

Yesterday, on 6th of February 2024 Go (lang) 1.22 was released. It’s the next release after Go 1.21 released 2023–08–08.

Attention! I need nine more people to become members to write next article! Join now: https://medium.com/membership/@tomaszs2

The previous release was quite awesome:

With things like new emojis:

Performance improvements:

Profile-guided optimizations landed in Go 1.21. If a binary contains default.pgo profile in main package directory optimization will automatically be performed.

Due to PGO your Go apps will run on average 2–7% faster with Go build speed being improved by 6% since compiler is now also built with PGO.

You can read about it in my previous article about Go 1.20 where PGO appeared in the preview mode. Compared to the formerly mentioned performance improvement it…

--

--

Tom Smykowski

Software Engineer & Tech Editor. Top 2% on StackOverflow, 3mil views on Quora. Won Shattered Pixel Dungeon.