twosums$ go test -bench=. -run=none -benchmem . goos: linux goarch: amd64 BenchmarkTwoSum1-8 14698284 149 ns/op 16 B/op 1 allocs/op BenchmarkTwoSum2-8 7724497 138 ns/op 16 B/op 1 allocs/op PASS ok _/home/kostix/tmp/twosums 3.508s