This is an extremely simple benchmark of the cgo performance improvements in Go 1.26.
goos: linux
goarch: amd64
pkg: test
cpu: AMD Ryzen 9 3900X 12-Core Processor
│ go1.25.txt │ go1.26.txt │
│ sec/op │ sec/op vs base │
Add-24 50.12n ± 3% 26.52n ± 1% -47.08% (p=0.000 n=10)
│ go1.25.txt │ go1.26.txt │
│ B/op │ B/op vs base │
Add-24 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹
¹ all samples are equal
│ go1.25.txt │ go1.26.txt │
│ allocs/op │ allocs/op vs base │
Add-24 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹
¹ all samples are equal