The benchmark code: https://play.golang.org/p/IqVnVa5x9qp
When N == 16384, the benchmark result:
Benchmark_Insert-4 134622 8032 ns/op 32768 B/op
1 allocs/op
Benchmark_Insert2-4 132049 8201 ns/op 32768 B/op
1 allocs/op
When N == 16385, the benchmark result:
Benchmark_Insert-4 118677 9374 ns/op 40960 B/op
1 allocs/op
Benchmark_Insert2-4 136845 7744 ns/op 40960 B/op
1 allocs/op
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/50cf3369-2457-40cd-8317-4bfdeb1294c2n%40googlegroups.com.