adriangb opened a new pull request, #12486:
URL: https://github.com/apache/arrow-rs/pull/12486

   # Which issue does this PR close?
   
   - Part of https://github.com/apache/arrow-rs/issues/11234.
   - Split out of https://github.com/apache/arrow-rs/pull/11238 to make that PR 
smaller.
   
   # Rationale for this change
   
   The `push_decoder` benchmarks measure `push_ranges`, `prefetch` and 
`scan_plan`. None of them decodes a file. So they do not show what the decoder 
costs between a request and a batch, and 
https://github.com/apache/arrow-rs/pull/11238 has no baseline on `main` to 
compare against.
   
   # What changes are included in this PR?
   
   Two benchmark groups in `parquet/benches/push_decoder.rs`. Both decode a 
file with `try_decode` and push exactly the ranges that the decoder requests.
   
   | Group | File | Batch size | Shows |
   |---|---|---|---|
   | `push_decoder/decode` | 10 `f32` columns, 1,000 rows, 10 or 100 pages per 
column | 100 and 10 rows | The cost of a request. The decode work is small. |
   | `push_decoder/decode_8192` | one `f32` column and one string column, 
1,000,000 rows, default writer properties | 8,192 rows | A scan with a common 
batch size |
   
   The benchmark names have a `row_group` part: `NeedsData` asks for all bytes 
of a row group. https://github.com/apache/arrow-rs/pull/11238 adds a `batch` 
variant next to it.
   
   # Are these changes tested?
   
   This PR has benchmarks only. Local run (Apple M-series laptop):
   
   ```text
   push_decoder/decode/row_group/10pages_100batch      time: [28.099 µs 28.793 
µs 29.570 µs]
   push_decoder/decode/row_group/100pages_10batch      time: [248.06 µs 253.07 
µs 257.51 µs]
   push_decoder/decode_8192/row_group/low_cardinality  time: [4.4848 ms 4.5996 
ms 4.7284 ms]
   push_decoder/decode_8192/row_group/unique           time: [4.7735 ms 4.9800 
ms 5.2280 ms]
   ```
   
   # Are there any significant user-facing changes?
   
   No.
   
   # AI usage disclosure
   
   Claude Code wrote the benchmarks and this description, under my direction.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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]

Reply via email to