This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new 191c9d4553 Benchmarks for `bool_and` (#6189)
191c9d4553 is described below
commit 191c9d455338a360f8e1f32917efcfce15f9c3bc
Author: Simon Vandel Sillesen <[email protected]>
AuthorDate: Mon Aug 5 13:45:05 2024 +0200
Benchmarks for `bool_and` (#6189)
---
arrow/benches/aggregate_kernels.rs | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arrow/benches/aggregate_kernels.rs
b/arrow/benches/aggregate_kernels.rs
index 434bb4778d..6e224a48c4 100644
--- a/arrow/benches/aggregate_kernels.rs
+++ b/arrow/benches/aggregate_kernels.rs
@@ -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))
})
@@ -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))
})
@@ -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))
})
@@ -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))
})
@@ -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))
})
@@ -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))
});
}
}