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

Function GrouperWithMultiTypes

cpp/src/arrow/compute/row/grouper_benchmark.cc:102–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static 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
116void SetArgs(benchmark::internal::Benchmark* bench) {
117 BenchmarkSetArgsWithSizes(bench, {1 << 10, 1 << 12});

Callers

nothing calls this directly

Calls 4

default_exec_contextFunction · 0.85
MakeRandomExecBatchFunction · 0.85
GrouperBenchmarkFunction · 0.85
memory_poolMethod · 0.45

Tested by

no test coverage detected