(b *testing.B)
| 508 | } |
| 509 | |
| 510 | func BenchmarkDenseIntersectsCompressed(b *testing.B) { |
| 511 | numBits := uint64(162432) |
| 512 | ba := newBitArray(numBits) |
| 513 | other := newSparseBitArray() |
| 514 | |
| 515 | for i := uint64(0); i < numBits; i++ { |
| 516 | ba.SetBit(i) |
| 517 | other.SetBit(i) |
| 518 | } |
| 519 | |
| 520 | b.ResetTimer() |
| 521 | |
| 522 | for i := 0; i < b.N; i++ { |
| 523 | ba.intersectsSparseBitArray(other) |
| 524 | } |
| 525 | } |
| 526 | |
| 527 | func TestBitArrayToNums(t *testing.T) { |
| 528 | ba := newBitArray(s * 2) |
nothing calls this directly
no test coverage detected
searching dependent graphs…