A benchmark of SimplifyWithGuarantee using expressions arising from partitioning.
| 70 | |
| 71 | // A benchmark of SimplifyWithGuarantee using expressions arising from partitioning. |
| 72 | static 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 | |
| 82 | static void ExecuteScalarExpressionOverhead(benchmark::State& state, Expression expr) { |
| 83 | const auto rows_per_batch = static_cast<int32_t>(state.range(0)); |
nothing calls this directly
no test coverage detected