this post was submitted on 01 Sep 2023
8 points (100.0% liked)

Golang

2212 readers
1 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] sbstp 5 points 1 year ago

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