neilconway commented on PR #20657:
URL: https://github.com/apache/datafusion/pull/20657#issuecomment-3986463787

   Benchmarks:
   
   ```
   ⏺ 
┌───────────────────────────────────────────┬──────────┬───────────┬────────┐
     │                 Benchmark                 │   Main   │ Optimized │ 
Change │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ lpad utf8 scalar (1024, fill='x')         │ 27.5 µs  │ 8.3 µs    │ -70%  
 │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ lpad stringview scalar (1024, fill='x')   │ 27.6 µs  │ 9.7 µs    │ -65%  
 │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ lpad utf8 scalar unicode (1024, fill='é') │ 74.3 µs  │ 44.1 µs   │ -41%  
 │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ lpad utf8 scalar (4096, fill='x')         │ 109.0 µs │ 33.1 µs   │ -70%  
 │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ lpad stringview scalar (4096, fill='x')   │ 109.5 µs │ 39.6 µs   │ -64%  
 │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ lpad utf8 scalar unicode (4096, fill='é') │ 296.6 µs │ 173.2 µs  │ -42%  
 │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ rpad utf8 scalar (1024, fill='x')         │ 30.5 µs  │ 10.6 µs   │ -65%  
 │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ rpad stringview scalar (1024, fill='x')   │ 29.0 µs  │ 11.1 µs   │ -62%  
 │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ rpad utf8 scalar unicode (1024, fill='é') │ 78.9 µs  │ 46.3 µs   │ -41%  
 │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ rpad utf8 scalar (4096, fill='x')         │ 124.2 µs │ 43.6 µs   │ -65%  
 │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ rpad stringview scalar (4096, fill='x')   │ 114.8 µs │ 44.6 µs   │ -61%  
 │
     
├───────────────────────────────────────────┼──────────┼───────────┼────────┤
     │ rpad utf8 scalar unicode (4096, fill='é') │ 313.5 µs │ 182.7 µs  │ -42%  
 │
     
└───────────────────────────────────────────┴──────────┴───────────┴────────┘
   ```


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to