MCPcopy Create free account
hub / github.com/apache/arrow / ArrayArrayKernel

Function ArrayArrayKernel

cpp/src/arrow/compute/kernels/scalar_boolean_benchmark.cc:35–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34template <BooleanBinaryOp& Op>
35static void ArrayArrayKernel(benchmark::State& state) {
36 RegressionArgs args(state);
37
38 const int64_t array_size = args.size * 8;
39
40 auto rand = random::RandomArrayGenerator(kSeed);
41 auto lhs = rand.Boolean(array_size, /*true_probability=*/0.5, args.null_proportion);
42 auto rhs = rand.Boolean(array_size, /*true_probability=*/0.5, args.null_proportion);
43
44 for (auto _ : state) {
45 ABORT_NOT_OK(Op(lhs, rhs, nullptr));
46 }
47 state.SetItemsProcessed(state.iterations() * array_size);
48}
49
50void SetArgs(benchmark::internal::Benchmark* bench) {
51 BenchmarkSetArgsWithSizes(bench, {kL1Size, kL2Size});

Callers

nothing calls this directly

Calls 2

OpClass · 0.50
BooleanMethod · 0.45

Tested by

no test coverage detected