MCPcopy Index your code
hub / github.com/Workiva/go-datastructures / BenchmarkIntersects

Function BenchmarkIntersects

bitarray/bitarray_test.go:328–340  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

326}
327
328func BenchmarkIntersects(b *testing.B) {
329 ba := newBitArray(162432)
330 other := newBitArray(ba.Capacity())
331
332 ba.SetBit(159999)
333 other.SetBit(159999)
334
335 b.ResetTimer()
336
337 for i := 0; i < b.N; i++ {
338 ba.Intersects(other)
339 }
340}
341
342func TestComplement(t *testing.T) {
343 ba := newBitArray(10)

Callers

nothing calls this directly

Calls 4

newBitArrayFunction · 0.85
CapacityMethod · 0.65
SetBitMethod · 0.65
IntersectsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…