alamb opened a new pull request, #9789: URL: https://github.com/apache/arrow-rs/pull/9789
# Which issue does this PR close? - Follow on to https://github.com/apache/arrow-rs/pull/9729 # Rationale for this change The `cast_kernels` benchmark recently had many new cases added in #9729, but many of these are redundant and significantly increase the benchmark runtime without providing proportional value in coverage. This PR reduces the redundancy by: 1. Keeping one representative benchmark for each major physical code path (e.g., `i128` vs `i256` storage). 2. Removing redundant combinations of target types (e.g., casting `decimal128` to every integer width when `int64` is sufficient to represent the performance characteristics). 3. Consolidating invalid/error path testing into a single representative case. 4. Reducing the total number of benchmark cases from over 60 new additions to a focused set of ~10 high-value cases. # What changes are included in this PR? - Pruned redundant decimal-to-integer/float and string/float-to-decimal benchmarks in `arrow/benches/cast_kernels.rs`. - Added `create_primitive_array_range` helper to `arrow/src/util/bench_util.rs` to support focused range-based benchmarks. # Are these changes tested? CI covers verification. # Are there any user-facing changes? No. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
