kosiew commented on PR #26599:
URL: https://github.com/apache/datafusion/pull/26599#issuecomment-7157599303

   @alamb 
   What do you think of @mightsleep's optimization?
   
   | Area | Assessment |
   |---|---|
   | Non-ASCII long results | Excellent improvement (4.87–7.52×) |
   | Non-ASCII short results | Consistent improvement (1.12–1.61×) |
   | ASCII performance | Most ASCII cases remain relatively stable, but some 
regressions are consistent. |
   | LPAD / RPAD | Broadly stable |
   
   ## ASCII regressions
   
   [run 
1](https://github.com/apache/datafusion/pull/26599#issuecomment-7003505593)
   
   
   | Benchmark | HEAD | PR | Regression |
   |---|---:|---:|---:|
   | RIGHT StringView `short_result` | 48.3 µs | 59.6 µs | 23.4% |
   | RIGHT StringView `per_row_n` | 68.8 µs | 80.5 µs | 17.0% |
   | LEFT String `per_row_n` | 119.9 µs | 135.3 µs | 12.8% |
   | RIGHT StringView `n_exceeds_len` | 54.7 µs | 57.2 µs | 4.6% |
   | RIGHT StringView `short_result_long_input` | 58.6 µs | 61.1 µs | 4.3% |
   | LEFT String `short_result` | 79.2 µs | 82.5 µs | 4.2% |
   
   
   [run 
2](https://github.com/apache/datafusion/pull/26599#issuecomment-7126049058)
   
   | Benchmark | HEAD | PR | Regression |
   |---|---:|---:|---:|
   | RIGHT StringView `short_result` | 48.3 µs | 59.3 µs | 22.8% |
   | RIGHT StringView `per_row_n` | 68.9 µs | 80.7 µs | 17.1% |
   | LEFT String `per_row_n` | 119.9 µs | 134.3 µs | 12.0% |
   | RIGHT StringView `n_exceeds_len` | 54.9 µs | 58.2 µs | 6.0% |
   | RIGHT StringView `short_result_long_input` | 57.3 µs | 59.8 µs | 4.4% |
   | LEFT String `short_result` | 79.0 µs | 81.8 µs | 3.5% |
   
   The ASCII paths compile to the almost the same code and the above is likely 
due to [code 
layout](https://github.com/apache/datafusion/pull/26599#issuecomment-7109488277).
 This is corroborated by this [benchmark 
run](https://github.com/apache/datafusion/pull/26599#issuecomment-7122328809)
   


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