neilconway commented on PR #20754:
URL: https://github.com/apache/datafusion/pull/20754#issuecomment-4013099778
Benchmarks:
```
⏺
┌───────────────────────────────────────┬────────────────┬───────────────┬─────────┐
│ Benchmark │ Base │ Target │
Speedup │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ StringArray, array needle, ASCII │ │ │
│
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_8 │ 268.6±4.09µs │ 254.4±3.85µs │
1.06x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_32 │ 314.8±6.02µs │ 292.9±3.65µs │
1.07x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_128 │ 598.6±4.35µs │ 583.1±4.03µs │
1.03x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_4096 │ 11.5±0.08ms │ 12.1±1.45ms │
0.96x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ StringArray, array needle, UTF-8 │ │ │
│
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_8 │ 437.4±3.30µs │ 370.9±2.73µs │
1.18x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_32 │ 1112.4±3.72µs │ 666.5±2.64µs │
1.67x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_128 │ 3.7±0.03ms │ 1668.6±3.13µs │
2.20x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_4096 │ 111.5±0.83ms │ 39.8±0.22ms │
2.80x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ StringArray, scalar needle, ASCII │ │ │
│
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_8 │ 216.1±4.17µs │ 214.1±2.68µs │
1.01x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_32 │ 243.3±2.79µs │ 206.1±2.20µs │
1.18x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_128 │ 548.1±7.15µs │ 344.8±3.69µs │
1.59x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_4096 │ 11.2±0.09ms │ 6.9±0.19ms │
1.62x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ StringArray, scalar needle, UTF-8 │ │ │
│
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_8 │ 399.3±2.78µs │ 277.8±3.43µs │
1.44x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_32 │ 1154.6±5.03µs │ 365.5±4.52µs │
3.16x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_128 │ 4.3±0.08ms │ 556.0±5.66µs │
7.66x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_4096 │ 128.7±0.40ms │ 8.7±0.12ms │
14.81x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ StringViewArray, array needle, ASCII │ │ │
│
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_8 │ 368.5±2.41µs │ 351.0±1.93µs │
1.05x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_32 │ 432.7±5.04µs │ 430.5±3.72µs │
1.01x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_128 │ 763.2±3.76µs │ 755.5±2.21µs │
1.01x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_4096 │ 12.0±0.14ms │ 12.0±0.11ms │
1.00x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ StringViewArray, array needle, UTF-8 │ │ │
│
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_8 │ 461.0±6.27µs │ 397.0±2.40µs │
1.16x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_32 │ 1132.5±10.63µs │ 699.0±4.09µs │
1.62x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_128 │ 3.7±0.03ms │ 1654.7±5.26µs │
2.22x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_4096 │ 112.2±0.22ms │ 40.1±0.05ms │
2.80x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ StringViewArray, scalar needle, ASCII │ │ │
│
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_8 │ 234.7±2.46µs │ 221.4±2.93µs │
1.06x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_32 │ 271.4±3.63µs │ 234.5±3.36µs │
1.16x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_128 │ 596.0±3.50µs │ 394.1±2.32µs │
1.51x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_4096 │ 11.7±0.27ms │ 7.5±0.19ms │
1.57x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ StringViewArray, scalar needle, UTF-8 │ │ │
│
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_8 │ 421.6±2.40µs │ 299.2±4.16µs │
1.41x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_32 │ 1167.0±14.28µs │ 386.8±3.41µs │
3.02x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_128 │ 4.1±0.01ms │ 574.6±4.25µs │
7.18x │
├───────────────────────────────────────┼────────────────┼───────────────┼─────────┤
│ str_len_4096 │ 125.7±0.34ms │ 8.7±0.10ms │
14.41x │
└───────────────────────────────────────┴────────────────┴───────────────┴─────────┘
```
--
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]