Skip to content

Commit

Permalink
Benchmarks for bool_and (#6189)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonvandel committed Aug 5, 2024
1 parent e6bd74b commit 191c9d4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arrow/benches/aggregate_kernels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ fn add_benchmark(c: &mut Criterion) {
.bench_function("or nonnull mixed", |b| {
b.iter(|| bool_or(&nonnull_bools_mixed))
})
.bench_function("and nonnull mixed", |b| {
b.iter(|| bool_and(&nonnull_bools_mixed))
})
.bench_function("min nonnull false", |b| {
b.iter(|| min_boolean(&nonnull_bools_all_false))
})
Expand All @@ -113,6 +116,9 @@ fn add_benchmark(c: &mut Criterion) {
.bench_function("or nonnull false", |b| {
b.iter(|| bool_or(&nonnull_bools_all_false))
})
.bench_function("and nonnull false", |b| {
b.iter(|| bool_and(&nonnull_bools_all_false))
})
.bench_function("min nonnull true", |b| {
b.iter(|| min_boolean(&nonnull_bools_all_true))
})
Expand All @@ -122,6 +128,9 @@ fn add_benchmark(c: &mut Criterion) {
.bench_function("or nonnull true", |b| {
b.iter(|| bool_or(&nonnull_bools_all_true))
})
.bench_function("and nonnull true", |b| {
b.iter(|| bool_and(&nonnull_bools_all_true))
})
.bench_function("min nullable mixed", |b| {
b.iter(|| min_boolean(&nullable_bool_mixed))
})
Expand All @@ -131,6 +140,9 @@ fn add_benchmark(c: &mut Criterion) {
.bench_function("or nullable mixed", |b| {
b.iter(|| bool_or(&nullable_bool_mixed))
})
.bench_function("and nullable mixed", |b| {
b.iter(|| bool_and(&nullable_bool_mixed))
})
.bench_function("min nullable false", |b| {
b.iter(|| min_boolean(&nullable_bool_all_false))
})
Expand All @@ -140,6 +152,9 @@ fn add_benchmark(c: &mut Criterion) {
.bench_function("or nullable false", |b| {
b.iter(|| bool_or(&nullable_bool_all_false))
})
.bench_function("and nullable false", |b| {
b.iter(|| bool_and(&nullable_bool_all_false))
})
.bench_function("min nullable true", |b| {
b.iter(|| min_boolean(&nullable_bool_all_true))
})
Expand All @@ -148,6 +163,9 @@ fn add_benchmark(c: &mut Criterion) {
})
.bench_function("or nullable true", |b| {
b.iter(|| bool_or(&nullable_bool_all_true))
})
.bench_function("and nullable true", |b| {
b.iter(|| bool_and(&nullable_bool_all_true))
});
}
}
Expand Down

0 comments on commit 191c9d4

Please sign in to comment.