| 44 | |
| 45 | template <typename Type> |
| 46 | static 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 | |
| 57 | static void GreaterArrayArrayInt64(benchmark::State& state) { |
| 58 | BenchArrayArray<Int64Type>(state, CompareOperatorToFunctionName(GREATER)); |
nothing calls this directly
no test coverage detected