func BenchmarkExt2Insert(b *testing.B) { j, n := 0, len(data) f := cuckoo3.NewCuckooFilter(uint(n), 0.01) for i := 0; i < b.N; i++ { f.Add(data[j]) if j++; j == n { j = 0 } } }
func initExt2(wg *sync.WaitGroup) { j, n := 0, len(data) fullFilter3 = cuckoo3.NewCuckooFilter(uint(n), 0.01) for i := 0; i < n; i++ { fullFilter3.Add(data[j]) if j++; j == n { j = 0 } } wg.Done() }