Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cpp/src/arrow/compute/benchmark_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#pragma once

#include <algorithm>
#include <vector>

#include "arrow/testing/gtest_util.h"
Expand Down Expand Up @@ -56,7 +57,7 @@ void BenchmarkSetArgsWithSizes(benchmark::internal::Benchmark* bench,
bench->Unit(benchmark::kMicrosecond);

for (auto size : sizes)
for (auto nulls : std::vector<ArgsType>({0, 1, 10, 50}))
for (auto nulls : std::vector<ArgsType>({10000, 1000, 100, 50, 10, 1}))
bench->Args({static_cast<ArgsType>(size), nulls});
}

Expand All @@ -80,12 +81,12 @@ struct RegressionArgs {

explicit RegressionArgs(benchmark::State& state)
: size(state.range(0)),
null_proportion(static_cast<double>(state.range(1)) / 100.0),
null_proportion(std::min(1., 1. / static_cast<double>(state.range(1)))),
state_(state) {}

~RegressionArgs() {
state_.counters["size"] = static_cast<double>(size);
state_.counters["null_percent"] = static_cast<double>(state_.range(1));
state_.counters["null_percent"] = null_proportion * 100;
state_.SetBytesProcessed(state_.iterations() * size);
}

Expand Down
3 changes: 1 addition & 2 deletions cpp/src/arrow/compute/kernels/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ add_arrow_compute_test(vector_test
add_arrow_benchmark(vector_hash_benchmark PREFIX "arrow-compute")
add_arrow_benchmark(vector_sort_benchmark PREFIX "arrow-compute")
add_arrow_benchmark(vector_partition_benchmark PREFIX "arrow-compute")
add_arrow_benchmark(vector_filter_benchmark PREFIX "arrow-compute")
add_arrow_benchmark(vector_take_benchmark PREFIX "arrow-compute")
add_arrow_benchmark(vector_selection_benchmark PREFIX "arrow-compute")

# ----------------------------------------------------------------------
# Aggregate kernels
Expand Down
107 changes: 0 additions & 107 deletions cpp/src/arrow/compute/kernels/vector_filter_benchmark.cc

This file was deleted.

Loading