Skip to content

Commit

Permalink
Fix metalint
Browse files Browse the repository at this point in the history
  • Loading branch information
xichen2020 committed Dec 30, 2018
1 parent c68d19c commit 12abf24
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions document/in_all_doc_id_set_iterator_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ func benchmarkInAllDocIDSetIterator(b *testing.B, ts testBenchSetup) {

func benchmarkDocIDSetIteratorBitset(b *testing.B, ts testBenchSetup) {
bms := initBenchBitmaps(ts)
iters := make([]DocIDSetIterator, 0, ts.numFields)
for _, bm := range bms {
iters = append(iters, newbitmapBasedDocIDIter(bm.Iterator()))
}

bs1 := bitset.New(uint(ts.totalDocs))
bs2 := bitset.New(uint(ts.totalDocs))
Expand Down Expand Up @@ -106,10 +102,6 @@ func benchmarkDocIDSetIteratorBitset(b *testing.B, ts testBenchSetup) {

func benchmarkDocIDSetIteratorRRoaringBitmap(b *testing.B, ts testBenchSetup) {
bms := initBenchBitmaps(ts)
iters := make([]DocIDSetIterator, 0, ts.numFields)
for _, bm := range bms {
iters = append(iters, newbitmapBasedDocIDIter(bm.Iterator()))
}

bm1 := rroaring.New()
bm2 := rroaring.New()
Expand Down Expand Up @@ -150,10 +142,6 @@ func benchmarkDocIDSetIteratorRRoaringBitmap(b *testing.B, ts testBenchSetup) {

func benchmarkDocIDSetIteratorPilosaRoaringBitmap(b *testing.B, ts testBenchSetup) {
bms := initBenchBitmaps(ts)
iters := make([]DocIDSetIterator, 0, ts.numFields)
for _, bm := range bms {
iters = append(iters, newbitmapBasedDocIDIter(bm.Iterator()))
}

b.ResetTimer()
for i := 0; i < b.N; i++ {
Expand Down

0 comments on commit 12abf24

Please sign in to comment.