NageshPatel978 opened a new pull request, #55714:
URL: https://github.com/apache/arrow/pull/55714

   ### Rationale for this change
   
   The existing ALP benchmarks encode a single repeated value (64.0), so 
decoding does almost no real work and the numbers don't reflect real data (see 
#55711).
   
   ### What changes are included in this PR?
   
   Adds ALP encoding and decoding benchmarks for float and double with varied 
input:
   - number of values (1024 and 65536)
   - decimals (1 and 4), i.e. decimal-like data such as prices
   - exception percentage (0, 1, 10, 50, 100), i.e. values that don't fit ALP's 
pattern
   
   Decoding benchmarks also report a compression_ratio counter. The existing 
constant-value benchmarks are unchanged.
   
   ### Are these changes tested?
   
   Benchmarks only; no library code changed. Run locally (Release build, CPU 
scaling enabled, so timings are approximate). Example, double, 65536 values:
   - existing constant data: ~12 GiB/s decode
   - 0% exceptions: ~11 GiB/s, compression ratio ~3.7
   - 10% exceptions: ~9 GiB/s, ratio ~2.5
   - 50% exceptions: ~6 GiB/s, ratio ~1.1
   - 100% exceptions: ~7 GiB/s, ratio ~0.8 (larger than raw)
   
   Float shows a much lower ratio at 0% exceptions (~1.2); I haven't 
investigated why.
   
   Happy to add other patterns (e.g. NaN/inf, sorted or time-series data) if 
maintainers prefer.
   
   ### Are there any user-facing changes?
   
   No.
   
   ### Was AI used for this PR?
   
   In accordance to the [AI generation 
guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code),
 please disclose below whether and how AI was used in this PR.
   
   I used Claude to help draft the benchmark code and this description. I built 
it, ran the benchmarks and checked the results myself.
   
   **PR code and description written by:**
   
   - [x] Human
   - [x] AI
   
   **Reviewed before submission by:**
   
   - [x] Human
   - [ ] AI
   - [ ] Not reviewed
   
   * GitHub Issue: #55711


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