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

Function SimplifyFilterWithGuarantee

cpp/src/arrow/acero/expression_benchmark.cc:72–80  ·  view source on GitHub ↗

A benchmark of SimplifyWithGuarantee using expressions arising from partitioning.

Source from the content-addressed store, hash-verified

70
71// A benchmark of SimplifyWithGuarantee using expressions arising from partitioning.
72static void SimplifyFilterWithGuarantee(benchmark::State& state, Expression filter,
73 Expression guarantee) {
74 auto dataset_schema = schema({field("a", int64()), field("b", int64())});
75 ASSIGN_OR_ABORT(filter, filter.Bind(*dataset_schema));
76
77 for (auto _ : state) {
78 ABORT_NOT_OK(SimplifyWithGuarantee(filter, guarantee));
79 }
80}
81
82static void ExecuteScalarExpressionOverhead(benchmark::State& state, Expression expr) {
83 const auto rows_per_batch = static_cast<int32_t>(state.range(0));

Callers

nothing calls this directly

Calls 4

SimplifyWithGuaranteeFunction · 0.85
schemaFunction · 0.50
fieldFunction · 0.50
BindMethod · 0.45

Tested by

no test coverage detected