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

Function BenchmarkComplement

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

Source from the content-addressed store, hash-verified

356}
357
358func BenchmarkComplement(b *testing.B) {
359 ba := newBitArray(160000)
360
361 b.ResetTimer()
362
363 for i := 0; i < b.N; i++ {
364 ba.complement()
365 }
366}
367
368func TestSetHighestLowest(t *testing.T) {
369 ba := newBitArray(10)

Callers

nothing calls this directly

Calls 2

newBitArrayFunction · 0.85
complementMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…