| 100 | } |
| 101 | |
| 102 | static void GrouperWithMultiTypes(benchmark::State& state, const DataTypeVector& types) { |
| 103 | auto ctx = default_exec_context(); |
| 104 | |
| 105 | RegressionArgs args(state, false); |
| 106 | const int64_t num_rows = args.size; |
| 107 | const double null_proportion = args.null_proportion; |
| 108 | |
| 109 | auto exec_batch = MakeRandomExecBatch(types, num_rows, null_proportion, |
| 110 | kDefaultBufferAlignment, ctx->memory_pool()); |
| 111 | ExecSpan exec_span(exec_batch); |
| 112 | ASSIGN_OR_ABORT(auto grouper, Grouper::Make(exec_span.GetTypes(), ctx)); |
| 113 | GrouperBenchmark(state, exec_span, ctx); |
| 114 | } |
| 115 | |
| 116 | void SetArgs(benchmark::internal::Benchmark* bench) { |
| 117 | BenchmarkSetArgsWithSizes(bench, {1 << 10, 1 << 12}); |
nothing calls this directly
no test coverage detected