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

   ### Rationale for this change
   
   Counting the set bits in a null bitmap is an operation that comes often, it 
can be useful to get a more precise idea of its performance.
   
   ### What changes are included in this PR?
   
   Add a benchmark for `CountSetBits`.
   
   Local results (AMD Zen 2):
   ```
   
------------------------------------------------------------------------------
   Benchmark                    Time             CPU   Iterations 
UserCounters...
   
------------------------------------------------------------------------------
   CountSetBits/16           5.42 ns         5.42 ns    128549068 
bytes_per_second=2.7515Gi/s
   CountSetBits/1024         80.6 ns         80.6 ns      8649312 
bytes_per_second=11.8351Gi/s
   CountSetBits/131072       9092 ns         9091 ns        77115 
bytes_per_second=13.4271Gi/s
   ```
   
   ### Are these changes tested?
   
   By running said benchmark manually (and by Continuous Benchmarking).
   
   ### 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]

Reply via email to