Skip to content

Commit 7a72eee

Browse files
committed
Fix benchmarks
Should have been fixed in #90
1 parent c358124 commit 7a72eee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

croaring/benches/performance_comparison.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ fn perf_comp_and_inplace_rust_roaring(b: &mut Bencher) {
209209
let bitmap2: RoaringBitmap = (100..200).collect();
210210

211211
b.iter(|| {
212-
bitmap1.intersect_with(black_box(&bitmap2));
212+
bitmap1 &= black_box(&bitmap2);
213213
});
214214
}
215215

@@ -247,7 +247,7 @@ fn perf_comp_or_inplace_rust_roaring(b: &mut Bencher) {
247247
let bitmap2: RoaringBitmap = (100..200).collect();
248248

249249
b.iter(|| {
250-
bitmap1.union_with(black_box(&bitmap2));
250+
bitmap1 |= &bitmap2;
251251
});
252252
}
253253

@@ -285,7 +285,7 @@ fn perf_comp_xor_inplace_rust_roaring(b: &mut Bencher) {
285285
let bitmap2: RoaringBitmap = (100..200).collect();
286286

287287
b.iter(|| {
288-
bitmap1.symmetric_difference_with(black_box(&bitmap2));
288+
bitmap1 ^= black_box(&bitmap2);
289289
});
290290
}
291291

0 commit comments

Comments
 (0)