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

Function BenchArrayArray

cpp/src/arrow/compute/kernels/scalar_compare_benchmark.cc:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45template <typename Type>
46static void BenchArrayArray(benchmark::State& state, const std::string& op) {
47 RegressionArgs args(state, /*size_is_bytes=*/false);
48 auto ty = TypeTraits<Type>::type_singleton();
49 auto rand = random::RandomArrayGenerator(kSeed);
50 auto lhs = rand.ArrayOf(ty, args.size, args.null_proportion);
51 auto rhs = rand.ArrayOf(ty, args.size, args.null_proportion);
52 for (auto _ : state) {
53 ABORT_NOT_OK(CallFunction(op, {lhs, rhs}));
54 }
55}
56
57static void GreaterArrayArrayInt64(benchmark::State& state) {
58 BenchArrayArray<Int64Type>(state, CompareOperatorToFunctionName(GREATER));

Callers

nothing calls this directly

Calls 3

CallFunctionFunction · 0.85
type_singletonFunction · 0.70
ArrayOfMethod · 0.45

Tested by

no test coverage detected