Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Optimizing a Go Package by 38147125738.8x (xnacly.me)
2 points by xnacly on Nov 19, 2024 | hide | past | favorite | 2 comments


? 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?


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: