[–] FrankWilhoit 1y ago ↗ ? Sanity check, please. There is no processor in existence on which any operation can be performed in one-thirtieth of a nanosecond. Has their compiler optimized their entire algorithm away? [–] xnacly 1y ago ↗ It specifically says ns/op, go test executes the operation many times and calculates the average execution time for one operation:https://pkg.go.dev/testing#hdr-Benchmarks
[–] xnacly 1y ago ↗ It specifically says ns/op, go test executes the operation many times and calculates the average execution time for one operation:https://pkg.go.dev/testing#hdr-Benchmarks
3 comments
[ 0.23 ms ] story [ 14.8 ms ] threadhttps://pkg.go.dev/testing#hdr-Benchmarks