Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
0ax1 committed Feb 26, 2025
1 parent 58c9381 commit 7bb6a09
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions encodings/dict/benches/dict_compress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,41 +120,3 @@ fn decode_dict_with_runend_codes(bencher: Bencher, length: usize) {
.with_inputs(|| dict_array.clone())
.bench_refs(|array| array.to_canonical())
}

#[divan::bench(args = &[
100,
1000,
10_000,
100_000,
])]
fn decode_dict_with_runend_codes_struct(bencher: Bencher, length: usize) {
let ends = PrimitiveArray::new(
buffer![(length / 3) as u32, (length / 2) as u32, length as u32],
NonNullable,
)
.into_array();

use vortex_array::arrays::StructArray;
use vortex_dtype::FieldNames;

let codes = PrimitiveArray::new(buffer![0u32, 1, 2], NonNullable).into_array();
let runend_codes = RunEndArray::try_new(ends, codes).unwrap();

let struct_values = StructArray::try_new(
FieldNames::from(["a".into(), "b".into()]),
vec![
PrimitiveArray::new(buffer![100u32, 200, 300], NonNullable).into_array(),
PrimitiveArray::new(buffer![1000u32, 2000, 3000], NonNullable).into_array(),
],
3,
NonNullable,
)
.unwrap();

let dict_array =
DictArray::try_new(runend_codes.into_array(), struct_values.into_array()).unwrap();

bencher
.with_inputs(|| dict_array.clone())
.bench_refs(|array| array.to_canonical())
}

0 comments on commit 7bb6a09

Please sign in to comment.