CGO Performance In Go 1.21

https://shane.ai/posts/cgo-performance-in-go1.21/

Cgo calls take about 40ns, about the same time encoding/json takes to parse a single digit integer. On my 20 core machine Cgo call performance scales with core count up to about 16 cores, after which some known contention issues slow things down.

8 points · 1 comments · view on lemmy.world

1 Comments

sbstp@programming.dev · 5 pts · 3y

That's pretty decent. I'm not convinced about the 16 core limit though, the 12700H has 6 P-cores, 8 E-cores and 6 threads, totalling "20 cores". Not the best chip to benchmark multicore workloads