Each add is 24ns.
(b *testing.B)
| 14 | |
| 15 | // Each add is 24ns. |
| 16 | func BenchmarkList(b *testing.B) { |
| 17 | var l []uint64 |
| 18 | max := int64(b.N) * 1000 |
| 19 | for i := 0; i < b.N; i++ { |
| 20 | l = append(l, uint64(rand.Int63n(max))) |
| 21 | } |
| 22 | b.Logf("Size with N %d: %d\n", b.N, len(l)*8) |
| 23 | } |
| 24 | |
| 25 | // Each add is 600ns. |
| 26 | func BenchmarkRoaring(b *testing.B) { |
nothing calls this directly
no outgoing calls
no test coverage detected