etseidl commented on PR #9477: URL: https://github.com/apache/arrow-rs/pull/9477#issuecomment-3993068366
Sampling from the latest bench against #9500. The 'stepped' benches trigger the optimization suggested by @Dandandan (https://github.com/apache/arrow-rs/pull/9477#discussion_r2867739291). The `StringArray` benches are contrived to also trigger the optimizations here to show there is a small effect for the delta binary encodings. ``` group main2 opt2 ----- ----- ---- arrow_array_reader/Int32Array/binary packed increasing value 1.19 32.4±0.15µs ? ?/sec 1.00 27.1±0.17µs ? ?/sec arrow_array_reader/Int32Array/binary packed single value 1.26 32.4±0.16µs ? ?/sec 1.00 25.7±0.24µs ? ?/sec arrow_array_reader/Int32Array/binary packed stepped increasing value 1.07 37.0±0.17µs ? ?/sec 1.00 34.7±0.22µs ? ?/sec arrow_array_reader/Int64Array/binary packed increasing value 1.22 35.3±0.33µs ? ?/sec 1.00 29.0±0.31µs ? ?/sec arrow_array_reader/Int64Array/binary packed single value 1.20 35.2±0.13µs ? ?/sec 1.00 29.2±0.11µs ? ?/sec arrow_array_reader/Int64Array/binary packed stepped increasing value 1.13 40.2±0.21µs ? ?/sec 1.00 35.6±0.14µs ? ?/sec arrow_array_reader/Int8Array/binary packed increasing value 1.18 37.6±0.30µs ? ?/sec 1.00 31.9±0.11µs ? ?/sec arrow_array_reader/Int8Array/binary packed single value 1.21 37.6±0.15µs ? ?/sec 1.00 31.0±0.20µs ? ?/sec arrow_array_reader/Int8Array/binary packed stepped increasing value 1.06 42.0±0.25µs ? ?/sec 1.00 39.8±0.30µs ? ?/sec arrow_array_reader/StringArray/const delta byte array encoded, mandatory, no NULLs 1.09 525.4±6.63µs ? ?/sec 1.00 482.8±4.25µs ? ?/sec arrow_array_reader/StringArray/const delta length byte array encoded, mandatory, no NULLs 1.03 380.8±2.70µs ? ?/sec 1.00 369.7±2.92µs ? ?/sec arrow_array_reader/StringArray/const prefix delta byte array encoded, mandatory, no NULLs 1.04 621.6±2.99µs ? ?/sec 1.00 596.0±3.44µs ? ?/sec ``` -- 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]
