Skip to content

Optimize ByteViewGroupValueBuilder vectorized_append#21579

Closed
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:optimize-byteview-append-v2
Closed

Optimize ByteViewGroupValueBuilder vectorized_append#21579
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:optimize-byteview-append-v2

Conversation

@Dandandan
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

N/A - Performance optimization

Rationale for this change

The vectorized_append_inner method in ByteViewGroupValueBuilder was using make_view to reconstruct views from scratch (re-reading value bytes to build the prefix) and copying non-inline data one row at a time in a for loop. Both are unnecessary since the input array already has correctly formed views.

What changes are included in this PR?

  • View reuse: Copy input views directly instead of reconstructing via make_view. For inline values (len ≤ 12), the view is copied as-is. For non-inline values, the view's length and prefix are preserved, only updating buffer_index/offset via ByteView's builder API.
  • Use extend instead of for loops for both Nulls::None and Nulls::Some branches.
  • Doubling allocation strategy for in_progress buffer: starts at 2MB, doubles on each flush up to 32MB max. Reduces buffer flush frequency for large workloads.
  • Extract shared copy_view helper used by both append_val_inner and vectorized_append_inner.
  • Remove now-unused do_append_val_inner, ensure_in_progress_big_enough, and make_view import.

Benchmark results

inline_null_0.0_size_1000/vectorized_append (8B strings, all inline)
                        time:   [2.4193 µs 2.4634 µs 2.5072 µs]
                        change: [−47.891% −46.365% −44.823%] (p = 0.00 < 0.05)
                        Performance has improved.

scenario_null_0.0_size_1000/vectorized_append (64B strings, non-inline)
                        time:   [6.9834 µs 7.2868 µs 7.6747 µs]
                        change: [−37.848% −35.290% −32.429%] (p = 0.00 < 0.05)
                        Performance has improved.

random_null_0.0_size_1000/vectorized_append (up to 400B strings, mixed)
                        time:   [16.289 µs 16.863 µs 17.456 µs]
                        change: [−17.687% −14.685% −11.971%] (p = 0.00 < 0.05)
                        Performance has improved.
Case Before After Improvement
inline (8B) 4.29 µs 2.46 µs -46%
scenario (64B) 11.43 µs 7.29 µs -36%
random (≤400B) 20.61 µs 16.86 µs -18%

Are these changes tested?

Existing tests cover the functionality (6/6 pass). Verified with cargo check, cargo clippy, and cargo test.

Are there any user-facing changes?

No - internal performance optimization only.

🤖 Generated with Claude Code

- Reuse input views directly instead of reconstructing via make_view:
  for inline values (len <= 12), copy the view as-is; for non-inline
  values, update buffer_index/offset using ByteView's builder API
- Switch Nulls::None and Nulls::Some branches from for loops to extend
- Use doubling allocation strategy for in_progress buffer (2MB initial,
  up to 32MB max) to reduce buffer flush frequency
- Extract shared copy_view helper for single-row append_val_inner
- Remove now-unused do_append_val_inner, ensure_in_progress_big_enough,
  and make_view import

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmarks

@github-actions github-actions bot added the physical-plan Changes to the physical-plan crate label Apr 13, 2026
@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4234306174-1132-vvl7k 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing optimize-byteview-append-v2 (b518942) to 16e578d (merge-base) diff using: tpcds
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4234306174-1133-b7vfc 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing optimize-byteview-append-v2 (b518942) to 16e578d (merge-base) diff using: tpch
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4234306174-1131-tr7nz 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing optimize-byteview-append-v2 (b518942) to 16e578d (merge-base) diff using: clickbench_partitioned
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

Comparing HEAD and optimize-byteview-append-v2
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                     HEAD ┃              optimize-byteview-append-v2 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │              6.71 / 7.18 ±0.76 / 8.69 ms │              6.84 / 7.29 ±0.78 / 8.85 ms │     no change │
│ QQuery 2  │        146.65 / 147.85 ±1.14 / 149.92 ms │        147.24 / 147.76 ±0.44 / 148.32 ms │     no change │
│ QQuery 3  │        112.62 / 113.27 ±0.58 / 114.35 ms │        112.35 / 113.37 ±0.79 / 114.42 ms │     no change │
│ QQuery 4  │    1292.14 / 1316.41 ±20.75 / 1348.81 ms │    1276.24 / 1294.79 ±13.28 / 1312.80 ms │     no change │
│ QQuery 5  │        175.50 / 176.32 ±0.78 / 177.58 ms │        171.24 / 173.21 ±1.81 / 176.09 ms │     no change │
│ QQuery 6  │       840.21 / 861.60 ±11.20 / 869.69 ms │       807.72 / 832.58 ±20.82 / 868.64 ms │     no change │
│ QQuery 7  │        343.47 / 345.14 ±1.33 / 347.19 ms │        342.60 / 343.95 ±1.22 / 346.23 ms │     no change │
│ QQuery 8  │        115.29 / 116.89 ±1.36 / 119.40 ms │        113.53 / 114.82 ±0.77 / 115.78 ms │     no change │
│ QQuery 9  │        100.86 / 104.57 ±3.05 / 107.79 ms │        101.67 / 104.40 ±2.27 / 107.56 ms │     no change │
│ QQuery 10 │        106.66 / 107.79 ±0.73 / 108.83 ms │        107.86 / 108.94 ±0.96 / 110.58 ms │     no change │
│ QQuery 11 │        891.40 / 901.72 ±6.35 / 909.49 ms │        882.06 / 893.62 ±8.26 / 906.60 ms │     no change │
│ QQuery 12 │           44.26 / 45.89 ±0.96 / 47.19 ms │           45.53 / 45.86 ±0.26 / 46.27 ms │     no change │
│ QQuery 13 │        391.70 / 398.75 ±3.79 / 403.13 ms │        398.76 / 400.48 ±1.94 / 403.49 ms │     no change │
│ QQuery 14 │     1013.87 / 1024.84 ±8.97 / 1039.56 ms │      999.08 / 1010.03 ±8.24 / 1020.42 ms │     no change │
│ QQuery 15 │           15.75 / 17.19 ±1.04 / 18.75 ms │           16.04 / 16.60 ±0.51 / 17.49 ms │     no change │
│ QQuery 16 │              7.10 / 7.34 ±0.23 / 7.74 ms │              7.30 / 8.03 ±0.81 / 9.56 ms │  1.09x slower │
│ QQuery 17 │        229.65 / 230.85 ±0.76 / 231.90 ms │        228.29 / 229.46 ±0.96 / 230.65 ms │     no change │
│ QQuery 18 │        128.34 / 128.73 ±0.34 / 129.18 ms │        130.10 / 130.78 ±0.62 / 131.58 ms │     no change │
│ QQuery 19 │        153.84 / 156.51 ±1.78 / 159.13 ms │        154.68 / 155.77 ±0.78 / 156.67 ms │     no change │
│ QQuery 20 │           13.81 / 14.39 ±0.36 / 14.92 ms │           14.38 / 14.79 ±0.33 / 15.22 ms │     no change │
│ QQuery 21 │           18.95 / 19.59 ±0.54 / 20.45 ms │           19.32 / 19.91 ±0.49 / 20.81 ms │     no change │
│ QQuery 22 │       483.69 / 491.55 ±11.66 / 514.55 ms │        484.14 / 488.86 ±4.03 / 493.87 ms │     no change │
│ QQuery 23 │        857.29 / 867.77 ±6.42 / 875.22 ms │        876.24 / 882.54 ±7.19 / 896.51 ms │     no change │
│ QQuery 24 │        381.83 / 385.49 ±3.35 / 390.84 ms │        379.64 / 383.63 ±2.52 / 386.59 ms │     no change │
│ QQuery 25 │        336.60 / 341.93 ±2.71 / 344.01 ms │        339.81 / 341.74 ±1.19 / 343.11 ms │     no change │
│ QQuery 26 │           79.69 / 82.67 ±2.32 / 86.77 ms │           82.04 / 83.30 ±1.11 / 84.58 ms │     no change │
│ QQuery 27 │              6.92 / 7.10 ±0.18 / 7.43 ms │              6.93 / 7.43 ±0.43 / 8.18 ms │     no change │
│ QQuery 28 │        147.99 / 149.45 ±0.88 / 150.36 ms │        148.40 / 149.59 ±1.37 / 152.28 ms │     no change │
│ QQuery 29 │        281.59 / 284.12 ±1.46 / 286.02 ms │        281.30 / 282.56 ±1.42 / 285.08 ms │     no change │
│ QQuery 30 │           43.21 / 46.22 ±2.35 / 50.44 ms │           42.43 / 44.81 ±1.65 / 47.01 ms │     no change │
│ QQuery 31 │        170.68 / 174.13 ±2.39 / 177.46 ms │        167.65 / 169.46 ±1.75 / 172.34 ms │     no change │
│ QQuery 32 │          57.06 / 66.40 ±16.60 / 99.51 ms │           56.43 / 58.30 ±1.38 / 59.76 ms │ +1.14x faster │
│ QQuery 33 │        141.13 / 142.61 ±0.88 / 143.67 ms │        139.35 / 141.13 ±1.49 / 143.66 ms │     no change │
│ QQuery 34 │              6.94 / 7.17 ±0.24 / 7.62 ms │              7.00 / 7.26 ±0.27 / 7.76 ms │     no change │
│ QQuery 35 │        105.36 / 107.99 ±1.71 / 110.21 ms │        108.45 / 110.19 ±1.32 / 112.55 ms │     no change │
│ QQuery 36 │              6.52 / 6.95 ±0.28 / 7.33 ms │              6.50 / 6.61 ±0.12 / 6.84 ms │     no change │
│ QQuery 37 │              8.46 / 8.83 ±0.30 / 9.17 ms │              8.24 / 9.06 ±0.54 / 9.91 ms │     no change │
│ QQuery 38 │           84.43 / 87.67 ±3.01 / 92.89 ms │           82.44 / 86.13 ±3.96 / 93.74 ms │     no change │
│ QQuery 39 │        125.24 / 128.39 ±2.30 / 131.41 ms │        125.25 / 129.21 ±3.17 / 133.88 ms │     no change │
│ QQuery 40 │        107.62 / 114.03 ±7.94 / 128.90 ms │        107.10 / 113.98 ±5.08 / 120.00 ms │     no change │
│ QQuery 41 │           14.51 / 16.13 ±1.18 / 17.56 ms │           14.27 / 14.80 ±0.45 / 15.51 ms │ +1.09x faster │
│ QQuery 42 │        106.06 / 108.09 ±1.74 / 110.66 ms │        105.80 / 107.78 ±1.21 / 109.14 ms │     no change │
│ QQuery 43 │              5.97 / 6.19 ±0.19 / 6.54 ms │              5.96 / 6.07 ±0.17 / 6.40 ms │     no change │
│ QQuery 44 │           11.75 / 12.23 ±0.53 / 13.24 ms │           11.51 / 11.84 ±0.22 / 12.17 ms │     no change │
│ QQuery 45 │           50.73 / 51.63 ±0.56 / 52.48 ms │           49.98 / 51.70 ±1.19 / 53.10 ms │     no change │
│ QQuery 46 │              8.39 / 8.67 ±0.30 / 9.16 ms │              8.40 / 8.86 ±0.33 / 9.42 ms │     no change │
│ QQuery 47 │        698.81 / 703.95 ±4.60 / 711.55 ms │        696.10 / 700.52 ±5.85 / 712.02 ms │     no change │
│ QQuery 48 │        288.91 / 293.58 ±4.11 / 299.64 ms │        283.64 / 288.96 ±3.12 / 292.75 ms │     no change │
│ QQuery 49 │        251.96 / 253.78 ±2.55 / 258.73 ms │        253.18 / 255.02 ±1.28 / 256.90 ms │     no change │
│ QQuery 50 │        222.15 / 226.93 ±3.46 / 232.20 ms │        221.52 / 228.03 ±5.37 / 236.84 ms │     no change │
│ QQuery 51 │        182.56 / 185.55 ±3.56 / 192.36 ms │        177.55 / 180.74 ±2.55 / 185.27 ms │     no change │
│ QQuery 52 │        107.80 / 108.61 ±0.82 / 110.11 ms │        107.81 / 109.06 ±0.83 / 110.26 ms │     no change │
│ QQuery 53 │        101.15 / 102.01 ±0.96 / 103.87 ms │        101.94 / 102.51 ±0.56 / 103.41 ms │     no change │
│ QQuery 54 │        145.51 / 147.24 ±1.03 / 148.34 ms │        144.33 / 146.16 ±1.56 / 148.51 ms │     no change │
│ QQuery 55 │        105.01 / 106.94 ±1.36 / 109.25 ms │        105.48 / 106.80 ±1.12 / 108.34 ms │     no change │
│ QQuery 56 │        138.99 / 140.85 ±1.46 / 143.50 ms │        138.59 / 140.74 ±1.57 / 142.70 ms │     no change │
│ QQuery 57 │        176.57 / 178.88 ±1.83 / 181.53 ms │        177.40 / 178.48 ±1.23 / 180.79 ms │     no change │
│ QQuery 58 │        294.19 / 298.33 ±3.12 / 303.02 ms │        289.15 / 296.13 ±4.76 / 301.82 ms │     no change │
│ QQuery 59 │        200.77 / 202.88 ±1.44 / 204.84 ms │        200.66 / 201.30 ±0.42 / 201.97 ms │     no change │
│ QQuery 60 │        143.02 / 144.11 ±0.99 / 145.62 ms │        141.93 / 143.36 ±1.21 / 145.04 ms │     no change │
│ QQuery 61 │           13.35 / 13.64 ±0.25 / 14.01 ms │           13.10 / 13.31 ±0.28 / 13.86 ms │     no change │
│ QQuery 62 │       923.28 / 953.38 ±20.43 / 985.32 ms │       879.38 / 908.55 ±31.12 / 964.05 ms │     no change │
│ QQuery 63 │        102.93 / 105.97 ±2.28 / 108.92 ms │        102.80 / 105.27 ±2.47 / 109.72 ms │     no change │
│ QQuery 64 │        674.23 / 681.95 ±5.26 / 690.44 ms │        680.22 / 689.17 ±6.23 / 698.98 ms │     no change │
│ QQuery 65 │        246.76 / 251.27 ±4.40 / 258.62 ms │        250.86 / 254.03 ±1.71 / 255.38 ms │     no change │
│ QQuery 66 │        258.00 / 264.78 ±4.70 / 270.17 ms │       238.40 / 249.86 ±10.63 / 269.51 ms │ +1.06x faster │
│ QQuery 67 │        303.46 / 311.43 ±5.68 / 320.94 ms │        307.76 / 315.37 ±7.40 / 329.38 ms │     no change │
│ QQuery 68 │            8.74 / 10.19 ±1.05 / 11.63 ms │            9.56 / 11.42 ±1.62 / 14.41 ms │  1.12x slower │
│ QQuery 69 │        102.08 / 103.54 ±1.30 / 105.61 ms │        101.44 / 104.84 ±1.87 / 106.55 ms │     no change │
│ QQuery 70 │       323.45 / 345.28 ±14.18 / 366.71 ms │        347.68 / 355.45 ±7.07 / 368.22 ms │     no change │
│ QQuery 71 │        133.55 / 136.07 ±1.99 / 139.58 ms │        133.36 / 134.62 ±1.39 / 137.30 ms │     no change │
│ QQuery 72 │        608.86 / 621.82 ±7.32 / 628.25 ms │        610.45 / 626.11 ±8.93 / 637.90 ms │     no change │
│ QQuery 73 │              7.20 / 8.24 ±0.94 / 9.77 ms │            7.38 / 10.62 ±5.87 / 22.35 ms │  1.29x slower │
│ QQuery 74 │       551.35 / 569.08 ±14.02 / 594.15 ms │        548.31 / 556.38 ±8.19 / 571.41 ms │     no change │
│ QQuery 75 │        275.17 / 277.79 ±1.91 / 280.77 ms │        275.77 / 278.09 ±1.49 / 280.37 ms │     no change │
│ QQuery 76 │        131.01 / 131.88 ±0.91 / 133.62 ms │        129.68 / 132.00 ±2.65 / 136.90 ms │     no change │
│ QQuery 77 │        187.46 / 189.34 ±1.22 / 190.53 ms │        185.81 / 187.90 ±1.86 / 190.46 ms │     no change │
│ QQuery 78 │        338.04 / 344.41 ±5.12 / 352.71 ms │        337.33 / 342.39 ±2.65 / 345.10 ms │     no change │
│ QQuery 79 │        233.80 / 236.15 ±1.86 / 239.36 ms │        230.93 / 235.40 ±3.96 / 240.23 ms │     no change │
│ QQuery 80 │        322.03 / 323.64 ±1.36 / 325.55 ms │        319.24 / 321.65 ±1.85 / 323.81 ms │     no change │
│ QQuery 81 │           26.50 / 27.44 ±1.06 / 29.37 ms │           25.93 / 26.66 ±0.60 / 27.46 ms │     no change │
│ QQuery 82 │        196.67 / 201.95 ±3.13 / 206.00 ms │        196.20 / 197.65 ±1.42 / 199.58 ms │     no change │
│ QQuery 83 │           38.36 / 39.53 ±1.15 / 41.35 ms │           38.84 / 39.25 ±0.44 / 40.02 ms │     no change │
│ QQuery 84 │           48.61 / 49.61 ±1.33 / 52.02 ms │           47.63 / 49.00 ±1.20 / 50.99 ms │     no change │
│ QQuery 85 │        148.72 / 150.48 ±1.28 / 151.95 ms │        149.49 / 150.82 ±1.18 / 152.72 ms │     no change │
│ QQuery 86 │           38.57 / 40.00 ±0.87 / 41.21 ms │           38.83 / 39.72 ±1.01 / 41.68 ms │     no change │
│ QQuery 87 │           87.18 / 89.00 ±2.26 / 93.35 ms │           81.11 / 87.06 ±4.00 / 93.21 ms │     no change │
│ QQuery 88 │        100.84 / 101.54 ±0.69 / 102.70 ms │        100.93 / 101.21 ±0.19 / 101.44 ms │     no change │
│ QQuery 89 │        118.16 / 120.00 ±1.20 / 121.74 ms │        115.64 / 118.20 ±2.08 / 120.69 ms │     no change │
│ QQuery 90 │           23.28 / 24.76 ±1.47 / 27.49 ms │           22.85 / 23.86 ±0.73 / 24.68 ms │     no change │
│ QQuery 91 │           62.45 / 64.12 ±0.90 / 64.93 ms │           64.16 / 64.72 ±0.55 / 65.41 ms │     no change │
│ QQuery 92 │           56.60 / 57.30 ±0.61 / 58.36 ms │           56.57 / 57.52 ±0.96 / 59.35 ms │     no change │
│ QQuery 93 │        184.92 / 186.91 ±1.57 / 188.82 ms │        187.31 / 187.95 ±0.52 / 188.87 ms │     no change │
│ QQuery 94 │           60.50 / 61.92 ±0.91 / 63.26 ms │           59.88 / 60.60 ±0.49 / 61.41 ms │     no change │
│ QQuery 95 │        127.04 / 129.37 ±1.61 / 131.72 ms │        126.72 / 127.44 ±0.42 / 127.91 ms │     no change │
│ QQuery 96 │           72.09 / 74.16 ±1.17 / 75.64 ms │           72.36 / 73.55 ±0.92 / 74.62 ms │     no change │
│ QQuery 97 │        125.65 / 127.89 ±1.64 / 130.11 ms │        123.07 / 124.59 ±1.29 / 126.48 ms │     no change │
│ QQuery 98 │        149.90 / 155.58 ±4.20 / 160.92 ms │        151.75 / 153.69 ±1.73 / 156.89 ms │     no change │
│ QQuery 99 │ 10717.73 / 10776.32 ±46.59 / 10837.07 ms │ 10720.96 / 10745.15 ±17.50 / 10773.40 ms │     no change │
└───────────┴──────────────────────────────────────────┴──────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                          ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                          │ 31397.62ms │
│ Total Time (optimize-byteview-append-v2)   │ 31202.18ms │
│ Average Time (HEAD)                        │   317.15ms │
│ Average Time (optimize-byteview-append-v2) │   315.17ms │
│ Queries Faster                             │          3 │
│ Queries Slower                             │          3 │
│ Queries with No Change                     │         93 │
│ Queries with Failure                       │          0 │
└────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 157.3s
Peak memory 5.5 GiB
Avg memory 4.5 GiB
CPU user 259.9s
CPU sys 17.5s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 156.3s
Peak memory 5.7 GiB
Avg memory 4.5 GiB
CPU user 259.0s
CPU sys 17.0s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

Comparing HEAD and optimize-byteview-append-v2
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃           optimize-byteview-append-v2 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.21 / 4.38 ±6.26 / 16.90 ms │          1.28 / 4.71 ±6.61 / 17.93 ms │  1.08x slower │
│ QQuery 1  │        14.22 / 14.84 ±0.40 / 15.29 ms │        14.79 / 15.22 ±0.26 / 15.59 ms │     no change │
│ QQuery 2  │        44.35 / 44.58 ±0.13 / 44.73 ms │        44.46 / 45.34 ±0.46 / 45.81 ms │     no change │
│ QQuery 3  │        44.02 / 46.35 ±2.46 / 51.01 ms │        44.62 / 46.52 ±2.21 / 50.68 ms │     no change │
│ QQuery 4  │    280.66 / 295.63 ±18.27 / 331.02 ms │    291.39 / 320.53 ±14.96 / 333.59 ms │  1.08x slower │
│ QQuery 5  │    343.94 / 360.20 ±16.88 / 386.10 ms │    344.41 / 359.24 ±11.30 / 374.40 ms │     no change │
│ QQuery 6  │           4.96 / 6.57 ±0.91 / 7.69 ms │           5.25 / 6.89 ±1.64 / 9.56 ms │     no change │
│ QQuery 7  │        16.43 / 16.79 ±0.34 / 17.43 ms │        17.64 / 18.78 ±1.34 / 21.26 ms │  1.12x slower │
│ QQuery 8  │    416.77 / 432.75 ±15.54 / 462.32 ms │     435.33 / 440.63 ±4.08 / 446.46 ms │     no change │
│ QQuery 9  │    635.68 / 673.15 ±23.72 / 698.72 ms │    648.24 / 671.42 ±17.20 / 689.08 ms │     no change │
│ QQuery 10 │       90.37 / 93.62 ±3.62 / 100.47 ms │       92.72 / 98.17 ±4.09 / 102.01 ms │     no change │
│ QQuery 11 │     106.52 / 108.61 ±1.45 / 110.44 ms │     103.86 / 105.23 ±1.63 / 108.40 ms │     no change │
│ QQuery 12 │    339.15 / 357.06 ±15.19 / 381.15 ms │    340.51 / 361.66 ±14.84 / 383.71 ms │     no change │
│ QQuery 13 │     483.87 / 493.15 ±9.70 / 508.99 ms │    464.29 / 482.00 ±17.34 / 508.16 ms │     no change │
│ QQuery 14 │    348.54 / 358.23 ±10.04 / 376.75 ms │    348.03 / 366.81 ±11.22 / 381.10 ms │     no change │
│ QQuery 15 │    359.39 / 382.62 ±17.20 / 405.30 ms │     369.71 / 380.64 ±7.25 / 392.44 ms │     no change │
│ QQuery 16 │    725.83 / 756.46 ±15.34 / 764.99 ms │    707.71 / 761.00 ±44.61 / 822.00 ms │     no change │
│ QQuery 17 │     746.20 / 762.12 ±9.15 / 774.60 ms │    775.07 / 800.06 ±28.00 / 837.86 ms │     no change │
│ QQuery 18 │ 1482.98 / 1550.53 ±50.20 / 1630.53 ms │ 1511.84 / 1558.34 ±45.31 / 1627.70 ms │     no change │
│ QQuery 19 │        35.04 / 41.09 ±5.26 / 49.90 ms │        35.60 / 36.60 ±1.25 / 39.04 ms │ +1.12x faster │
│ QQuery 20 │    718.56 / 741.48 ±17.99 / 767.57 ms │    717.79 / 732.00 ±10.88 / 748.39 ms │     no change │
│ QQuery 21 │     763.65 / 771.74 ±5.56 / 780.28 ms │     765.80 / 774.16 ±7.55 / 787.99 ms │     no change │
│ QQuery 22 │ 1144.13 / 1160.78 ±10.17 / 1173.30 ms │  1146.81 / 1149.18 ±1.47 / 1150.38 ms │     no change │
│ QQuery 23 │ 3124.67 / 3165.76 ±32.46 / 3214.47 ms │ 3157.60 / 3185.56 ±22.99 / 3218.06 ms │     no change │
│ QQuery 24 │      98.43 / 104.74 ±4.28 / 111.40 ms │     103.73 / 110.02 ±3.67 / 114.68 ms │  1.05x slower │
│ QQuery 25 │     137.69 / 141.13 ±3.55 / 147.05 ms │     140.25 / 142.21 ±1.48 / 144.73 ms │     no change │
│ QQuery 26 │     100.49 / 104.84 ±2.48 / 107.34 ms │      99.97 / 104.00 ±4.27 / 110.08 ms │     no change │
│ QQuery 27 │     857.89 / 862.15 ±2.54 / 864.67 ms │     851.31 / 860.06 ±6.72 / 870.75 ms │     no change │
│ QQuery 28 │ 3285.27 / 3345.77 ±39.48 / 3391.61 ms │ 3287.04 / 3343.19 ±44.97 / 3420.06 ms │     no change │
│ QQuery 29 │        50.75 / 54.62 ±3.67 / 60.85 ms │        50.65 / 54.57 ±2.97 / 59.28 ms │     no change │
│ QQuery 30 │     377.24 / 381.79 ±3.34 / 386.95 ms │     382.34 / 388.35 ±3.98 / 394.61 ms │     no change │
│ QQuery 31 │    362.68 / 380.82 ±12.64 / 398.42 ms │    378.23 / 400.84 ±13.57 / 414.88 ms │  1.05x slower │
│ QQuery 32 │ 1062.05 / 1090.41 ±21.04 / 1110.07 ms │ 1066.83 / 1093.27 ±15.00 / 1110.22 ms │     no change │
│ QQuery 33 │ 1484.53 / 1511.17 ±24.00 / 1541.38 ms │ 1474.64 / 1502.74 ±17.81 / 1523.24 ms │     no change │
│ QQuery 34 │ 1495.32 / 1517.20 ±15.44 / 1543.21 ms │ 1493.18 / 1534.55 ±22.75 / 1553.05 ms │     no change │
│ QQuery 35 │    381.42 / 409.11 ±21.56 / 439.52 ms │    386.38 / 413.19 ±21.75 / 442.24 ms │     no change │
│ QQuery 36 │     116.98 / 122.26 ±3.89 / 126.92 ms │     120.60 / 122.05 ±1.59 / 124.98 ms │     no change │
│ QQuery 37 │        46.98 / 49.70 ±1.57 / 51.66 ms │        47.87 / 51.91 ±2.54 / 55.60 ms │     no change │
│ QQuery 38 │        76.08 / 77.54 ±0.83 / 78.54 ms │        75.03 / 79.59 ±3.71 / 84.11 ms │     no change │
│ QQuery 39 │    205.46 / 222.63 ±10.88 / 238.45 ms │     210.99 / 221.97 ±6.88 / 231.99 ms │     no change │
│ QQuery 40 │        25.63 / 27.01 ±1.14 / 28.35 ms │        22.85 / 25.25 ±2.22 / 29.36 ms │ +1.07x faster │
│ QQuery 41 │        21.05 / 23.44 ±2.30 / 27.43 ms │        20.11 / 21.08 ±0.92 / 22.55 ms │ +1.11x faster │
│ QQuery 42 │        19.78 / 20.79 ±1.23 / 23.17 ms │        19.02 / 19.84 ±0.75 / 21.15 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                          ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                          │ 23085.61ms │
│ Total Time (optimize-byteview-append-v2)   │ 23209.35ms │
│ Average Time (HEAD)                        │   536.87ms │
│ Average Time (optimize-byteview-append-v2) │   539.75ms │
│ Queries Faster                             │          3 │
│ Queries Slower                             │          5 │
│ Queries with No Change                     │         35 │
│ Queries with Failure                       │          0 │
└────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 116.6s
Peak memory 42.4 GiB
Avg memory 29.6 GiB
CPU user 1099.6s
CPU sys 88.3s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 117.2s
Peak memory 38.9 GiB
Avg memory 30.2 GiB
CPU user 1102.4s
CPU sys 93.3s
Peak spill 0 B

File an issue against this benchmark runner

@Dandandan Dandandan closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants