devanbenz commented on PR #10136:
URL: https://github.com/apache/arrow-rs/pull/10136#issuecomment-5819100317

   Added some benchmarks that use nulls to stress the code path. 
   
   Scalar
   
   | filter context fsb … w NULLs (50% null) | baseline (ns) |  scalar fallback 
(ns) | Δ |
   |---|---:|---:|---:|
   | len 5, kept 1/2 | 101,127 ± 5,577 | 78,815 ± 815 | −22.1% |
   | len 5, kept 1023/1024 | 7,548 ± 68 | 7,178 ± 114 | −4.9% |
   | len 5, kept 1/1024 | 247 ± 3 | 237 ± 1 | −4.0% |
   | len 20, kept 1/2 | 91,677 ± 2,860 | 78,433 ± 475 | −14.4% |
   | len 20, kept 1023/1024 | 46,165 ± 1,576 | 47,015 ± 379 | +1.8% |
   | len 20, kept 1/1024 | 288 ± 2 | 273 ± 2 | −5.2% |
   | len 50, kept 1/2 | 127,929 ± 1,414 | 119,662 ± 2,835 | −6.5% |
   | len 50, kept 1023/1024 | 115,936 ± 1,247 | 120,392 ± 2,063 | +3.8% |
   | len 50, kept 1/1024 | 256 ± 3 | 229 ± 0 | −10.5% |
   
   With BMI2 enabled
   
   | Case | baseline (ns) | bmi2 (ns) | Δ |
   |---|---:|---:|---:|
   | len 5, kept 1/2 | 87,934 ± 745 | 64,893 ± 384 | −26.2% |
   | len 5, kept 1023/1024 | 7,008 ± 32 | 7,144 ± 34 | +1.9% |
   | len 5, kept 1/1024 | 235 ± 1 | 246 ± 1 | +4.7% |
   | len 20, kept 1/2 | 86,913 ± 646 | 64,596 ± 590 | −25.7% |
   | len 20, kept 1023/1024 | 45,603 ± 628 | 45,445 ± 442 | −0.3% |
   | len 20, kept 1/1024 | 280 ± 2 | 292 ± 4 | +4.3% |
   | len 50, kept 1/2 | 122,097 ± 2,317 | 99,621 ± 4,954 | −18.4% |
   | len 50, kept 1023/1024 | 119,400 ± 1,621 | 120,113 ± 1,483 | +0.6% |
   | len 50, kept 1/1024 | 227 ± 1 | 240 ± 3 | +5.7% |
   
   **Scalar vs bmi2**
   
   | len | scalar (ns) | bmi2 (ns) | Δ |
   |---:|---:|---:|---:|
   | 5 | 78,815 | 64,893 | −17.7% |
   | 20 | 78,433 | 64,596 | −17.6% |
   | 50 | 119,662 | 99,621 | −16.7% |


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