Hexbyte  Hacker News  Computers cornelk/go-benchmark

Hexbyte Hacker News Computers cornelk/go-benchmark

|

Golang benchmarks used for optimizing code. The benchmarks were run with Golang 1.10.1 and 64 bit on MacOS. BenchmarkValueUnsafePointer-8 2000000 639 ns/op BenchmarkValueInterface-8 2000000 962 ns/op Using defer vs not using it BenchmarkDefer-8 20000 58155 ns/op BenchmarkDeferNo-8 300000 5378 ns/op Iterating a slice BenchmarkSliceReadRange-8 500000 3392 ns/op BenchmarkSliceReadForward-8 500000 3143 ns/op BenchmarkSliceReadBackwards-8 500000 3127 ns/op…