Skip to content

Commit 7af3643

Browse files
committed
f
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent a968853 commit 7af3643

1 file changed

Lines changed: 0 additions & 37 deletions

File tree

vortex-buffer/benches/cast_to_indexed.rs

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ use vortex_buffer::BitBuffer;
2424
use vortex_buffer::BitBufferMut;
2525
use vortex_buffer::Buffer;
2626
use vortex_buffer::lane_ops_indexed::map_no_validity;
27-
use vortex_buffer::lane_ops_indexed::map_to_bits;
2827
use vortex_buffer::lane_ops_indexed::map_with_mask;
2928
use vortex_buffer::lane_ops_indexed::map_with_mask_in_place;
30-
use vortex_buffer::lane_ops_indexed::map_with_mask_to_bits;
3129
use vortex_buffer::lane_ops_indexed::try_map_no_validity;
3230
use vortex_buffer::lane_ops_indexed::try_map_with_mask;
3331
use vortex_buffer::lane_ops_indexed::try_map_with_mask_in_place;
@@ -37,7 +35,6 @@ fn main() {
3735
}
3836

3937
const SIZES: &[usize] = &[4_096, 65_536, 1_048_576];
40-
const U32_THRESHOLD: u32 = u32::MAX / 2;
4138

4239
struct Fixture {
4340
values_u64: Buffer<u64>,
@@ -284,40 +281,6 @@ fn try_map_with_mask_in_place_u32_checked_mul(bencher: Bencher, n: usize) {
284281
});
285282
}
286283

287-
#[divan::bench(args = SIZES)]
288-
fn map_to_bits_u32_threshold(bencher: Bencher, n: usize) {
289-
let f = fixture(n);
290-
291-
bencher
292-
.with_inputs(|| (f.values_u32.clone(), vec![0; n.div_ceil(64)]))
293-
.bench_values(|(values, mut out)| {
294-
map_to_bits(values.as_slice(), out.as_mut_slice(), |v| {
295-
v >= U32_THRESHOLD
296-
});
297-
out
298-
});
299-
}
300-
301-
#[divan::bench(args = SIZES)]
302-
fn map_with_mask_to_bits_u32_threshold(bencher: Bencher, n: usize) {
303-
let f = fixture(n);
304-
305-
bencher
306-
.with_inputs(|| {
307-
(
308-
f.values_u32.clone(),
309-
f.mask.clone(),
310-
vec![0; n.div_ceil(64)],
311-
)
312-
})
313-
.bench_values(|(values, mask, mut out)| {
314-
map_with_mask_to_bits(values.as_slice(), &mask, out.as_mut_slice(), |v, valid| {
315-
valid && v >= U32_THRESHOLD
316-
});
317-
out
318-
});
319-
}
320-
321284
// -----------------------------------------------------------------------------
322285
// Arrow-rs baselines. Two: one widening (u16 → u32, always succeeds) and one
323286
// narrowing (u64 → u32, can fail). Each pairs with the cast variants above of

0 commit comments

Comments
 (0)