Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Optimizing a Go Package by 38147125738.8x
(opens in new tab)
(xnacly.me)
2 points
xnacly
1y ago
2 comments
Save
Share
2 comments
2 comments · 1 top-level
top
newest
oldest
FrankWilhoit
1y ago
· 1 in thread
? 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
OP
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
j
/
k
navigate · click thread line to collapse