| 32 | |
| 33 | template <typename Type> |
| 34 | static void BenchArrayScalar(benchmark::State& state, const std::string& op) { |
| 35 | RegressionArgs args(state, /*size_is_bytes=*/false); |
| 36 | auto ty = TypeTraits<Type>::type_singleton(); |
| 37 | auto rand = random::RandomArrayGenerator(kSeed); |
| 38 | auto array = rand.ArrayOf(ty, args.size, args.null_proportion); |
| 39 | auto scalar = *rand.ArrayOf(ty, 1, 0)->GetScalar(0); |
| 40 | for (auto _ : state) { |
| 41 | ABORT_NOT_OK(CallFunction(op, {array, Datum(scalar)})); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | template <typename Type> |
| 46 | static void BenchArrayArray(benchmark::State& state, const std::string& op) { |
nothing calls this directly
no test coverage detected