Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamGS committed Sep 4, 2024
1 parent e89f599 commit dc09067
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vortex-array/benches/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ fn vortex_iter_flat(c: &mut Criterion) {
});
}

fn vortex_binary_add(c: &mut Criterion) {
fn vortex_unary_add(c: &mut Criterion) {
let data = PrimitiveArray::from_vec((0_u32..1_000_000).collect_vec(), Validity::AllValid);
c.bench_function("vortex_binary_add", |b| {
c.bench_function("vortex_unary_add", |b| {
b.iter_batched(
|| (data.clone()),
|data| data.unary(|v: u32| v + 1).unwrap(),
Expand All @@ -72,9 +72,9 @@ fn vortex_binary_add(c: &mut Criterion) {
});
}

fn arrow_binary_add(c: &mut Criterion) {
fn arrow_unary_add(c: &mut Criterion) {
let data = UInt32Array::from_iter_values(0_u32..1_000_000);
c.bench_function("arrow_binary_add", |b| {
c.bench_function("arrow_unary_add", |b| {
b.iter_batched(
|| data.clone(),
|data: arrow_array::PrimitiveArray<UInt32Type>| data.unary::<_, UInt32Type>(|v| v + 1),
Expand Down Expand Up @@ -121,7 +121,7 @@ criterion_group!(
vortex_iter,
vortex_iter_flat,
arrow_iter,
vortex_binary_add,
arrow_binary_add
vortex_unary_add,
arrow_unary_add
);
criterion_main!(benches);

0 comments on commit dc09067

Please sign in to comment.