Skip to content

Commit fd431ca

Browse files
clauderobert3005
authored andcommitted
bench(fastlanes): trim bitpacking_filter to four sub-millisecond cases
Signed-off-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GEPn56FBLoa8Yq6jexAwWL
1 parent 21b4b92 commit fd431ca

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎encodings/fastlanes/benches/bitpacking_filter.rs‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ static SESSION: LazyLock<VortexSession> = LazyLock::new(|| {
3939
session
4040
});
4141

42-
const NUM_ELEMENTS: usize = 1 << 20;
42+
const NUM_ELEMENTS: usize = 1 << 17;
4343
const BIT_WIDTH: u8 = 16;
44-
const DENSITIES: &[f64] = &[0.001, 0.01, 0.05, 0.1, 0.25, 0.5, 0.9];
4544

4645
fn bitpacked_i32(len: usize) -> ArrayRef {
4746
let mut rng = StdRng::seed_from_u64(0);
@@ -79,13 +78,13 @@ fn bench_filter(bencher: Bencher, array: &ArrayRef, bits: &BitBuffer) {
7978
});
8079
}
8180

82-
#[divan::bench(args = DENSITIES)]
81+
#[divan::bench(args = [0.01, 0.1])]
8382
fn primitive_i32(bencher: Bencher, density: f64) {
8483
let array = bitpacked_i32(NUM_ELEMENTS);
8584
bench_filter(bencher, &array, &random_bits(NUM_ELEMENTS, density));
8685
}
8786

88-
#[divan::bench(consts = [2, 4, 16, 64], args = DENSITIES)]
87+
#[divan::bench(consts = [4, 16], args = [0.1])]
8988
fn fsl_i32<const LIST_SIZE: u32>(bencher: Bencher, density: f64) {
9089
let len = NUM_ELEMENTS / LIST_SIZE as usize;
9190
let elements = bitpacked_i32(NUM_ELEMENTS);

0 commit comments

Comments
 (0)