This is taking 7ms for 1M entries.
(b *testing.B)
| 47 | |
| 48 | // This is taking 7ms for 1M entries. |
| 49 | func BenchmarkToArray(b *testing.B) { |
| 50 | bm := newBitmap() |
| 51 | b.ResetTimer() |
| 52 | |
| 53 | for i := 0; i < b.N; i++ { |
| 54 | _ = bm.ToArray() |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // This is taking 22ms for 1M entries. |
| 59 | func BenchmarkFromArray(b *testing.B) { |
nothing calls this directly
no test coverage detected