You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: Add microbenchmark (compared to ExprOrExpr) (#20076)
## Which issue does this PR close?
Related to #19994 - This PR extracts the benchmark code to allow
performance comparison.
## Rationale for this change
As pointed out by @alamb in #19994, this separates the microbenchmark
code so that the benchmarking scripts can compare the optimization PR
against main with the benchmark already in place.
## What changes are included in this PR?
Adds a microbenchmark for the divide-by-zero protection pattern in
`case_when.rs`:
- Benchmarks with varying percentages of zeros (0%, 10%, 50%, 90%)
- Compares `DivideByZeroProtection` pattern (where checked column
matches divisor) vs `ExpressionOrExpression` fallback (where they don't
match)
## Are these changes tested?
benchmark code only.
## Are there any user-facing changes?
No.
0 commit comments