Skip to content

perf: fast-path inline strings in ByteViewGroupValueBuilder::vectorized_append#21794

Draft
EeshanBembi wants to merge 3 commits intoapache:mainfrom
EeshanBembi:perf/bytes-view-v2
Draft

perf: fast-path inline strings in ByteViewGroupValueBuilder::vectorized_append#21794
EeshanBembi wants to merge 3 commits intoapache:mainfrom
EeshanBembi:perf/bytes-view-v2

Conversation

@EeshanBembi
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #21568.

Rationale for this change

ByteViewGroupValueBuilder::vectorized_append was doing unnecessary work for short strings (≤12 bytes): for each row it called array.value(row) to decode the u128 view into a &[u8], then called make_view to re-encode it back into a u128. The input GenericByteViewArray already stores inline values in exactly that u128 format, so the round-trip is redundant.

This mirrors the existing HAS_BUFFERS specialisation in vectorized_equal_to_inner, which uses the same data_buffers().is_empty() guard to take a direct-view-compare fast path for inline strings.

What changes are included in this PR?

In vectorized_append_inner, the Nulls::None branch now dispatches on arr.data_buffers().is_empty():

  • Fast path (no data buffers → all values ≤12 bytes inline): copies u128 views directly via self.views.extend(rows.iter().map(|&row| arr.views()[row])). Arrow's validity invariant guarantees inline views are zero-padded, so direct copy is semantically identical to value() → make_view().
  • Slow path (array has non-inline strings): adds self.views.reserve(rows.len()) before the existing loop to avoid repeated reallocation.

Are these changes tested?

Covered by the existing 6 unit tests in bytes_view::tests, all passing unchanged. test_byte_view_vectorized_operation_special_case exercises the fast path directly (11-byte strings, no data buffers).

Are there any user-facing changes?

No. Internal performance improvement only.

Benchmark

inline_null_0.0_size_1000/vectorized_append (8-byte strings, no nulls, 1 000 rows):

time
Before 3.37 µs
After 495 ns
Change −85.3% (6.8× faster)

…ed_append

When the input StringView/BinaryView array has no data buffers (all values
≤12 bytes, stored inline), skip the value() → make_view() round-trip in
do_append_val_inner and instead copy the u128 views directly. Arrow
guarantees valid arrays have zero-padded inline views, so the direct copy
is semantically identical and lets the compiler vectorize the loop.

Also pre-reserve views capacity in the slow path (non-inline strings) to
avoid repeated Vec reallocation.

Closes apache#21568
@github-actions github-actions Bot added the physical-plan Changes to the physical-plan crate label Apr 23, 2026
@EeshanBembi EeshanBembi marked this pull request as draft April 23, 2026 06:59
// Pre-reserve views capacity to avoid repeated reallocation.
self.views.reserve(rows.len());
for &row in rows {
self.do_append_val_inner(arr, row);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In principle we can make this faster as well - extend + reuse input view (instead of make_view) + avoid array.value(row).

Up to you - can be part of follow-up PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review! I can include that in this PR.

@Dandandan
Copy link
Copy Markdown
Contributor

run benchmark aggregate_vectorized

@Dandandan
Copy link
Copy Markdown
Contributor

run benchmarks

@adriangbot
Copy link
Copy Markdown

🤖 Criterion benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4302397209-1774-4zp9z 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 perf/bytes-view-v2 (9621004) to 95157ef (merge-base) diff
BENCH_NAME=aggregate_vectorized
BENCH_COMMAND=cargo bench --features=parquet --bench aggregate_vectorized
BENCH_FILTER=
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

Benchmark for this request failed.

Last 20 lines of output:

Click to expand
Cloning into '/workspace/datafusion-branch'...
From https://github.com/apache/datafusion
 * [new ref]         refs/pull/21794/head -> perf/bytes-view-v2
 * branch            main                 -> FETCH_HEAD
Switched to branch 'perf/bytes-view-v2'
95157ef206685850a558c98408c925c8dd524a08
Cloning into '/workspace/datafusion-base'...
HEAD is now at 95157ef Unparser drops ORDER BY alias when flattening Projection through SubqueryAlias (#21491)
rustc 1.95.0 (59807616e 2026-04-14)
9621004335ff231190c1b197350221fe0b522a78
95157ef206685850a558c98408c925c8dd524a08
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
error: target `aggregate_vectorized` in package `datafusion-physical-plan` requires the features: `test_utils`
Consider enabling them by passing, e.g., `--features="test_utils"`

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-c4302401598-1776-5bc54 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 perf/bytes-view-v2 (9621004) to 95157ef (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-c4302401598-1777-kbgc4 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 perf/bytes-view-v2 (9621004) to 95157ef (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-c4302401598-1775-s2gmz 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 perf/bytes-view-v2 (9621004) to 95157ef (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 perf_bytes-view-v2
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃             perf_bytes-view-v2 ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 1  │ 40.48 / 41.42 ±1.40 / 44.19 ms │ 40.71 / 43.51 ±4.29 / 51.81 ms │ 1.05x slower │
│ QQuery 2  │ 21.29 / 21.39 ±0.09 / 21.55 ms │ 21.29 / 21.73 ±0.45 / 22.60 ms │    no change │
│ QQuery 3  │ 38.57 / 40.26 ±1.35 / 41.43 ms │ 38.49 / 40.82 ±2.30 / 44.74 ms │    no change │
│ QQuery 4  │ 18.42 / 18.61 ±0.15 / 18.84 ms │ 18.61 / 18.70 ±0.07 / 18.79 ms │    no change │
│ QQuery 5  │ 48.97 / 50.31 ±0.93 / 51.28 ms │ 48.72 / 51.50 ±2.26 / 55.44 ms │    no change │
│ QQuery 6  │ 17.50 / 18.07 ±0.67 / 19.15 ms │ 17.48 / 18.01 ±0.68 / 19.36 ms │    no change │
│ QQuery 7  │ 53.76 / 55.76 ±1.44 / 57.57 ms │ 55.23 / 56.43 ±1.08 / 57.98 ms │    no change │
│ QQuery 8  │ 48.48 / 49.01 ±0.94 / 50.89 ms │ 48.53 / 48.85 ±0.26 / 49.26 ms │    no change │
│ QQuery 9  │ 53.19 / 54.04 ±0.67 / 54.71 ms │ 54.16 / 55.17 ±0.65 / 55.84 ms │    no change │
│ QQuery 10 │ 65.87 / 66.48 ±0.63 / 67.70 ms │ 66.36 / 67.50 ±1.28 / 69.63 ms │    no change │
│ QQuery 11 │ 14.38 / 14.49 ±0.12 / 14.71 ms │ 14.55 / 14.64 ±0.06 / 14.72 ms │    no change │
│ QQuery 12 │ 27.40 / 27.68 ±0.26 / 28.03 ms │ 27.80 / 28.07 ±0.33 / 28.69 ms │    no change │
│ QQuery 13 │ 38.42 / 40.69 ±2.78 / 46.12 ms │ 38.42 / 38.91 ±0.35 / 39.35 ms │    no change │
│ QQuery 14 │ 28.06 / 28.29 ±0.14 / 28.45 ms │ 28.23 / 28.46 ±0.12 / 28.58 ms │    no change │
│ QQuery 15 │ 33.86 / 33.96 ±0.08 / 34.10 ms │ 33.86 / 34.09 ±0.27 / 34.62 ms │    no change │
│ QQuery 16 │ 15.37 / 15.45 ±0.07 / 15.53 ms │ 15.38 / 15.49 ±0.06 / 15.55 ms │    no change │
│ QQuery 17 │ 79.68 / 80.43 ±0.61 / 81.03 ms │ 80.09 / 82.18 ±1.75 / 84.19 ms │    no change │
│ QQuery 18 │ 75.60 / 76.69 ±0.60 / 77.38 ms │ 76.26 / 77.67 ±1.08 / 79.31 ms │    no change │
│ QQuery 19 │ 37.90 / 38.21 ±0.23 / 38.54 ms │ 37.77 / 38.27 ±0.27 / 38.55 ms │    no change │
│ QQuery 20 │ 40.45 / 43.45 ±4.66 / 52.68 ms │ 40.28 / 41.58 ±2.24 / 46.04 ms │    no change │
│ QQuery 21 │ 65.57 / 66.31 ±0.80 / 67.87 ms │ 64.61 / 65.76 ±1.09 / 67.14 ms │    no change │
│ QQuery 22 │ 17.33 / 17.54 ±0.13 / 17.67 ms │ 17.46 / 17.57 ±0.09 / 17.71 ms │    no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                 ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                 │ 898.55ms │
│ Total Time (perf_bytes-view-v2)   │ 904.90ms │
│ Average Time (HEAD)               │  40.84ms │
│ Average Time (perf_bytes-view-v2) │  41.13ms │
│ Queries Faster                    │        0 │
│ Queries Slower                    │        1 │
│ Queries with No Change            │       21 │
│ Queries with Failure              │        0 │
└───────────────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 5.5 GiB
Avg memory 4.8 GiB
CPU user 33.9s
CPU sys 2.7s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 5.4 GiB
Avg memory 4.8 GiB
CPU user 34.3s
CPU sys 2.5s
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 perf_bytes-view-v2
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃                                     HEAD ┃                       perf_bytes-view-v2 ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 1  │              6.94 / 7.44 ±0.88 / 9.19 ms │              6.94 / 7.38 ±0.77 / 8.91 ms │    no change │
│ QQuery 2  │        144.02 / 144.46 ±0.39 / 144.98 ms │        144.58 / 144.92 ±0.19 / 145.15 ms │    no change │
│ QQuery 3  │        112.69 / 113.70 ±0.74 / 114.70 ms │        113.49 / 114.69 ±0.96 / 116.24 ms │    no change │
│ QQuery 4  │     1273.17 / 1281.38 ±4.50 / 1285.41 ms │    1284.95 / 1295.82 ±11.04 / 1313.65 ms │    no change │
│ QQuery 5  │        172.27 / 173.15 ±0.59 / 173.94 ms │        172.63 / 173.39 ±0.47 / 174.09 ms │    no change │
│ QQuery 6  │       845.01 / 860.05 ±13.62 / 881.86 ms │       838.26 / 865.13 ±20.00 / 891.40 ms │    no change │
│ QQuery 7  │        333.17 / 334.86 ±1.87 / 338.40 ms │        333.72 / 338.47 ±3.63 / 342.61 ms │    no change │
│ QQuery 8  │        112.44 / 113.33 ±1.10 / 115.34 ms │        113.16 / 114.90 ±1.36 / 117.11 ms │    no change │
│ QQuery 9  │        101.31 / 104.41 ±2.50 / 106.55 ms │        100.89 / 103.43 ±2.65 / 107.25 ms │    no change │
│ QQuery 10 │        100.90 / 101.80 ±0.76 / 103.16 ms │        102.53 / 104.04 ±1.69 / 107.21 ms │    no change │
│ QQuery 11 │        879.32 / 889.90 ±5.63 / 895.46 ms │        883.70 / 891.79 ±6.91 / 904.57 ms │    no change │
│ QQuery 12 │           43.13 / 43.47 ±0.29 / 43.92 ms │           43.16 / 43.68 ±0.41 / 44.14 ms │    no change │
│ QQuery 13 │        386.71 / 389.56 ±1.65 / 391.61 ms │        386.45 / 387.44 ±0.80 / 388.63 ms │    no change │
│ QQuery 14 │        973.51 / 987.03 ±7.84 / 997.61 ms │       988.82 / 995.56 ±4.45 / 1002.15 ms │    no change │
│ QQuery 15 │           14.77 / 14.97 ±0.17 / 15.17 ms │           14.69 / 15.50 ±0.87 / 17.10 ms │    no change │
│ QQuery 16 │              7.31 / 7.44 ±0.15 / 7.71 ms │              7.37 / 7.56 ±0.24 / 8.03 ms │    no change │
│ QQuery 17 │        221.75 / 223.91 ±1.96 / 227.49 ms │        223.19 / 225.55 ±1.62 / 227.73 ms │    no change │
│ QQuery 18 │        125.03 / 125.92 ±0.78 / 127.20 ms │        126.04 / 126.68 ±0.55 / 127.60 ms │    no change │
│ QQuery 19 │        152.85 / 153.86 ±1.19 / 155.84 ms │        154.80 / 156.70 ±1.59 / 158.69 ms │    no change │
│ QQuery 20 │           13.00 / 13.27 ±0.26 / 13.70 ms │           12.82 / 13.28 ±0.40 / 13.92 ms │    no change │
│ QQuery 21 │           19.03 / 19.13 ±0.10 / 19.26 ms │           19.43 / 19.72 ±0.36 / 20.41 ms │    no change │
│ QQuery 22 │        478.19 / 480.94 ±2.00 / 483.07 ms │        485.44 / 487.89 ±2.69 / 492.30 ms │    no change │
│ QQuery 23 │        809.89 / 816.15 ±4.29 / 821.79 ms │        814.92 / 817.30 ±2.28 / 820.57 ms │    no change │
│ QQuery 24 │        372.11 / 377.46 ±5.39 / 386.63 ms │        370.41 / 373.90 ±2.45 / 377.47 ms │    no change │
│ QQuery 25 │        331.51 / 333.23 ±0.99 / 334.56 ms │        329.85 / 333.08 ±1.91 / 335.44 ms │    no change │
│ QQuery 26 │           76.42 / 76.81 ±0.31 / 77.14 ms │           76.85 / 78.03 ±2.14 / 82.29 ms │    no change │
│ QQuery 27 │              6.90 / 7.03 ±0.10 / 7.21 ms │              6.84 / 6.99 ±0.15 / 7.29 ms │    no change │
│ QQuery 28 │        147.46 / 148.98 ±1.10 / 150.63 ms │        147.20 / 148.36 ±0.76 / 149.53 ms │    no change │
│ QQuery 29 │        271.40 / 274.33 ±4.07 / 282.29 ms │        270.56 / 274.03 ±3.11 / 277.84 ms │    no change │
│ QQuery 30 │           41.01 / 42.20 ±1.29 / 44.67 ms │           41.03 / 41.57 ±0.48 / 42.26 ms │    no change │
│ QQuery 31 │        162.71 / 165.67 ±2.25 / 169.63 ms │        164.73 / 166.14 ±1.41 / 168.71 ms │    no change │
│ QQuery 32 │           13.19 / 13.51 ±0.22 / 13.85 ms │           13.20 / 13.46 ±0.28 / 13.85 ms │    no change │
│ QQuery 33 │        138.67 / 139.64 ±0.78 / 140.73 ms │        138.93 / 139.95 ±1.38 / 142.58 ms │    no change │
│ QQuery 34 │              6.79 / 7.01 ±0.22 / 7.42 ms │              6.93 / 7.08 ±0.23 / 7.54 ms │    no change │
│ QQuery 35 │         99.75 / 102.44 ±1.96 / 105.47 ms │        100.11 / 101.48 ±0.83 / 102.40 ms │    no change │
│ QQuery 36 │              6.53 / 6.72 ±0.16 / 6.91 ms │              6.51 / 6.70 ±0.20 / 7.03 ms │    no change │
│ QQuery 37 │              8.01 / 8.17 ±0.09 / 8.28 ms │              8.09 / 8.18 ±0.06 / 8.24 ms │    no change │
│ QQuery 38 │           85.58 / 87.66 ±1.47 / 89.37 ms │           84.24 / 87.31 ±3.71 / 94.52 ms │    no change │
│ QQuery 39 │        117.93 / 119.67 ±2.85 / 125.36 ms │        116.26 / 117.19 ±0.99 / 118.63 ms │    no change │
│ QQuery 40 │        101.46 / 104.64 ±4.41 / 113.31 ms │        101.57 / 104.33 ±2.13 / 107.04 ms │    no change │
│ QQuery 41 │           13.91 / 14.42 ±0.56 / 15.43 ms │           14.04 / 14.17 ±0.18 / 14.51 ms │    no change │
│ QQuery 42 │        106.20 / 107.52 ±1.19 / 109.69 ms │        106.92 / 108.09 ±1.32 / 110.68 ms │    no change │
│ QQuery 43 │              5.64 / 5.72 ±0.11 / 5.93 ms │              5.66 / 5.79 ±0.16 / 6.11 ms │    no change │
│ QQuery 44 │           11.44 / 11.58 ±0.07 / 11.65 ms │           11.40 / 11.53 ±0.17 / 11.87 ms │    no change │
│ QQuery 45 │           48.16 / 48.69 ±0.30 / 49.11 ms │           48.35 / 50.27 ±1.90 / 53.82 ms │    no change │
│ QQuery 46 │              8.38 / 8.58 ±0.25 / 9.05 ms │              8.14 / 8.39 ±0.30 / 8.98 ms │    no change │
│ QQuery 47 │        682.40 / 687.53 ±3.58 / 693.59 ms │        685.64 / 689.51 ±3.66 / 696.37 ms │    no change │
│ QQuery 48 │        273.72 / 277.41 ±2.86 / 282.08 ms │        273.40 / 275.51 ±1.89 / 278.24 ms │    no change │
│ QQuery 49 │        249.89 / 250.64 ±0.97 / 252.54 ms │        249.20 / 250.41 ±1.07 / 252.40 ms │    no change │
│ QQuery 50 │        202.30 / 205.13 ±2.95 / 209.76 ms │        203.80 / 208.05 ±4.17 / 215.71 ms │    no change │
│ QQuery 51 │        175.43 / 177.61 ±1.41 / 179.81 ms │        176.13 / 179.56 ±3.09 / 185.11 ms │    no change │
│ QQuery 52 │        106.79 / 108.16 ±1.07 / 109.70 ms │        106.89 / 107.71 ±0.46 / 108.28 ms │    no change │
│ QQuery 53 │        101.74 / 102.44 ±0.63 / 103.51 ms │        101.28 / 103.12 ±1.68 / 106.07 ms │    no change │
│ QQuery 54 │        143.22 / 144.85 ±1.29 / 147.16 ms │        143.57 / 144.77 ±0.97 / 146.36 ms │    no change │
│ QQuery 55 │        106.28 / 106.84 ±0.78 / 108.39 ms │        106.29 / 106.82 ±0.44 / 107.57 ms │    no change │
│ QQuery 56 │        138.24 / 139.59 ±1.40 / 142.14 ms │        139.03 / 140.07 ±0.84 / 141.46 ms │    no change │
│ QQuery 57 │        163.32 / 165.10 ±1.43 / 167.63 ms │        164.61 / 165.10 ±0.31 / 165.56 ms │    no change │
│ QQuery 58 │        306.91 / 309.39 ±1.38 / 310.87 ms │        308.21 / 311.08 ±2.28 / 315.01 ms │    no change │
│ QQuery 59 │        192.73 / 194.12 ±2.17 / 198.38 ms │        193.25 / 194.56 ±1.16 / 196.65 ms │    no change │
│ QQuery 60 │        139.01 / 140.49 ±1.02 / 141.74 ms │        140.57 / 141.56 ±0.69 / 142.59 ms │    no change │
│ QQuery 61 │           13.16 / 14.02 ±1.39 / 16.78 ms │           13.23 / 13.44 ±0.23 / 13.86 ms │    no change │
│ QQuery 62 │        853.80 / 862.05 ±5.32 / 867.65 ms │        856.92 / 865.22 ±8.12 / 876.34 ms │    no change │
│ QQuery 63 │        100.99 / 102.06 ±0.68 / 103.07 ms │        102.28 / 103.79 ±2.62 / 109.00 ms │    no change │
│ QQuery 64 │        654.26 / 659.48 ±4.23 / 665.35 ms │        659.12 / 661.43 ±2.00 / 663.97 ms │    no change │
│ QQuery 65 │        243.10 / 247.48 ±3.53 / 252.32 ms │        243.51 / 245.69 ±2.35 / 250.23 ms │    no change │
│ QQuery 66 │       211.36 / 225.42 ±12.08 / 244.59 ms │        212.37 / 223.39 ±6.52 / 230.33 ms │    no change │
│ QQuery 67 │        289.26 / 292.10 ±3.21 / 297.95 ms │        295.90 / 299.52 ±3.03 / 303.51 ms │    no change │
│ QQuery 68 │              8.51 / 8.70 ±0.22 / 9.12 ms │            8.62 / 10.60 ±3.60 / 17.79 ms │ 1.22x slower │
│ QQuery 69 │           96.48 / 97.68 ±0.87 / 99.04 ms │          98.22 / 99.23 ±0.88 / 100.72 ms │    no change │
│ QQuery 70 │        310.56 / 317.59 ±6.00 / 326.63 ms │        313.10 / 328.40 ±8.65 / 339.66 ms │    no change │
│ QQuery 71 │        132.20 / 134.65 ±2.43 / 138.43 ms │        132.98 / 134.17 ±0.72 / 134.96 ms │    no change │
│ QQuery 72 │        580.22 / 587.37 ±6.20 / 597.41 ms │        584.72 / 595.86 ±5.83 / 600.29 ms │    no change │
│ QQuery 73 │              6.55 / 6.71 ±0.22 / 7.16 ms │              6.54 / 6.71 ±0.20 / 7.10 ms │    no change │
│ QQuery 74 │        552.99 / 560.25 ±6.26 / 570.13 ms │        550.14 / 565.98 ±8.10 / 572.72 ms │    no change │
│ QQuery 75 │        266.03 / 268.25 ±1.66 / 270.21 ms │        267.25 / 268.77 ±2.08 / 272.85 ms │    no change │
│ QQuery 76 │        129.08 / 130.71 ±1.25 / 132.64 ms │        128.61 / 129.60 ±1.34 / 132.22 ms │    no change │
│ QQuery 77 │        186.03 / 187.26 ±1.03 / 188.95 ms │        185.57 / 188.48 ±2.20 / 191.90 ms │    no change │
│ QQuery 78 │        325.17 / 328.48 ±2.46 / 332.29 ms │        327.09 / 330.19 ±2.42 / 333.95 ms │    no change │
│ QQuery 79 │        226.57 / 229.31 ±1.65 / 231.47 ms │        227.42 / 229.64 ±1.71 / 232.16 ms │    no change │
│ QQuery 80 │        319.03 / 320.84 ±1.03 / 322.24 ms │        318.38 / 320.82 ±1.96 / 324.06 ms │    no change │
│ QQuery 81 │           25.74 / 26.11 ±0.27 / 26.47 ms │           26.08 / 27.29 ±1.65 / 30.55 ms │    no change │
│ QQuery 82 │           38.88 / 39.18 ±0.19 / 39.48 ms │           39.12 / 39.43 ±0.21 / 39.65 ms │    no change │
│ QQuery 83 │           37.03 / 37.62 ±0.83 / 39.26 ms │           36.71 / 37.08 ±0.22 / 37.35 ms │    no change │
│ QQuery 84 │           45.94 / 46.10 ±0.17 / 46.43 ms │           46.03 / 46.19 ±0.11 / 46.31 ms │    no change │
│ QQuery 85 │        140.27 / 141.08 ±0.90 / 142.53 ms │        140.70 / 142.26 ±1.79 / 145.42 ms │    no change │
│ QQuery 86 │           37.02 / 38.29 ±1.07 / 40.20 ms │           37.30 / 37.50 ±0.20 / 37.87 ms │    no change │
│ QQuery 87 │              3.43 / 3.58 ±0.18 / 3.93 ms │              3.41 / 3.54 ±0.15 / 3.81 ms │    no change │
│ QQuery 88 │          98.78 / 99.90 ±1.46 / 102.60 ms │         99.38 / 101.37 ±2.50 / 106.26 ms │    no change │
│ QQuery 89 │        114.96 / 117.31 ±2.91 / 122.97 ms │        115.23 / 116.22 ±0.73 / 117.36 ms │    no change │
│ QQuery 90 │           22.44 / 23.17 ±1.10 / 25.34 ms │           22.11 / 22.59 ±0.45 / 23.43 ms │    no change │
│ QQuery 91 │           57.62 / 58.19 ±0.56 / 59.13 ms │           57.28 / 58.25 ±0.72 / 59.43 ms │    no change │
│ QQuery 92 │           56.26 / 56.88 ±0.37 / 57.30 ms │           56.12 / 56.67 ±0.33 / 57.14 ms │    no change │
│ QQuery 93 │        179.51 / 180.95 ±1.74 / 184.10 ms │        178.83 / 180.69 ±1.10 / 181.73 ms │    no change │
│ QQuery 94 │           60.12 / 61.10 ±1.33 / 63.62 ms │           60.19 / 61.09 ±0.86 / 62.59 ms │    no change │
│ QQuery 95 │        125.85 / 126.45 ±0.62 / 127.48 ms │        125.20 / 126.50 ±1.53 / 129.09 ms │    no change │
│ QQuery 96 │           67.97 / 70.09 ±1.81 / 72.90 ms │           67.59 / 68.92 ±0.90 / 70.19 ms │    no change │
│ QQuery 97 │        115.53 / 117.72 ±1.57 / 120.04 ms │        115.95 / 119.40 ±2.61 / 123.99 ms │    no change │
│ QQuery 98 │        148.77 / 149.58 ±0.80 / 151.00 ms │        148.74 / 150.02 ±0.82 / 150.92 ms │    no change │
│ QQuery 99 │ 10745.63 / 10789.04 ±34.04 / 10836.11 ms │ 10716.17 / 10786.29 ±38.70 / 10831.03 ms │    no change │
└───────────┴──────────────────────────────────────────┴──────────────────────────────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                 ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                 │ 30383.90ms │
│ Total Time (perf_bytes-view-v2)   │ 30476.97ms │
│ Average Time (HEAD)               │   306.91ms │
│ Average Time (perf_bytes-view-v2) │   307.85ms │
│ Queries Faster                    │          0 │
│ Queries Slower                    │          1 │
│ Queries with No Change            │         98 │
│ Queries with Failure              │          0 │
└───────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 155.0s
Peak memory 6.5 GiB
Avg memory 5.6 GiB
CPU user 254.7s
CPU sys 7.4s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 155.0s
Peak memory 6.2 GiB
Avg memory 5.5 GiB
CPU user 255.6s
CPU sys 7.6s
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 perf_bytes-view-v2
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                    perf_bytes-view-v2 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.19 / 4.51 ±6.56 / 17.63 ms │          1.19 / 4.57 ±6.70 / 17.97 ms │     no change │
│ QQuery 1  │        12.85 / 13.15 ±0.18 / 13.40 ms │        12.57 / 12.99 ±0.42 / 13.61 ms │     no change │
│ QQuery 2  │        37.24 / 37.52 ±0.39 / 38.28 ms │        36.64 / 36.95 ±0.25 / 37.39 ms │     no change │
│ QQuery 3  │        31.41 / 32.05 ±0.72 / 33.42 ms │        31.16 / 31.49 ±0.20 / 31.74 ms │     no change │
│ QQuery 4  │     243.47 / 246.37 ±2.33 / 249.31 ms │     242.77 / 245.28 ±2.83 / 250.74 ms │     no change │
│ QQuery 5  │     282.22 / 284.16 ±2.13 / 287.63 ms │     282.04 / 283.98 ±1.44 / 286.28 ms │     no change │
│ QQuery 6  │           6.19 / 6.97 ±0.61 / 7.96 ms │           6.42 / 7.08 ±0.44 / 7.78 ms │     no change │
│ QQuery 7  │        14.04 / 14.77 ±1.36 / 17.49 ms │        13.68 / 15.17 ±2.56 / 20.27 ms │     no change │
│ QQuery 8  │     327.38 / 329.45 ±2.03 / 332.56 ms │     332.18 / 335.98 ±2.17 / 338.42 ms │     no change │
│ QQuery 9  │    426.67 / 448.01 ±11.87 / 463.36 ms │     438.44 / 455.93 ±9.22 / 465.35 ms │     no change │
│ QQuery 10 │        73.20 / 73.83 ±0.38 / 74.28 ms │        72.74 / 73.74 ±0.80 / 75.08 ms │     no change │
│ QQuery 11 │        84.42 / 85.11 ±0.54 / 85.97 ms │        83.30 / 83.84 ±0.45 / 84.28 ms │     no change │
│ QQuery 12 │     271.13 / 275.44 ±2.39 / 277.54 ms │     277.56 / 281.13 ±2.77 / 284.37 ms │     no change │
│ QQuery 13 │     393.21 / 396.22 ±2.67 / 399.84 ms │     397.22 / 407.84 ±7.39 / 418.53 ms │     no change │
│ QQuery 14 │     284.72 / 287.82 ±3.20 / 293.89 ms │     292.49 / 296.38 ±3.75 / 301.34 ms │     no change │
│ QQuery 15 │     279.13 / 283.42 ±2.62 / 286.59 ms │     286.85 / 292.90 ±6.90 / 306.29 ms │     no change │
│ QQuery 16 │    617.03 / 629.16 ±19.04 / 667.13 ms │     621.12 / 627.00 ±3.47 / 630.64 ms │     no change │
│ QQuery 17 │     619.36 / 626.25 ±4.39 / 630.94 ms │     629.71 / 633.88 ±3.83 / 640.26 ms │     no change │
│ QQuery 18 │ 1245.56 / 1261.89 ±14.82 / 1286.35 ms │  1256.55 / 1274.07 ±9.71 / 1284.49 ms │     no change │
│ QQuery 19 │        28.89 / 33.47 ±8.53 / 50.50 ms │        28.81 / 29.22 ±0.39 / 29.72 ms │ +1.15x faster │
│ QQuery 20 │     516.13 / 522.74 ±9.17 / 540.83 ms │     524.01 / 529.56 ±5.96 / 538.26 ms │     no change │
│ QQuery 21 │     595.22 / 600.47 ±5.28 / 610.15 ms │     595.95 / 602.79 ±4.07 / 607.16 ms │     no change │
│ QQuery 22 │  1059.54 / 1069.16 ±7.21 / 1077.98 ms │ 1055.34 / 1072.79 ±13.24 / 1088.43 ms │     no change │
│ QQuery 23 │ 3298.61 / 3312.30 ±11.09 / 3328.75 ms │ 3302.82 / 3325.02 ±14.49 / 3344.53 ms │     no change │
│ QQuery 24 │        42.21 / 44.47 ±2.71 / 49.26 ms │        42.63 / 50.28 ±8.97 / 66.09 ms │  1.13x slower │
│ QQuery 25 │     113.60 / 114.78 ±1.13 / 116.81 ms │     112.97 / 116.83 ±3.72 / 121.72 ms │     no change │
│ QQuery 26 │        42.51 / 44.13 ±1.15 / 46.06 ms │        42.30 / 42.74 ±0.35 / 43.30 ms │     no change │
│ QQuery 27 │     671.24 / 673.45 ±2.08 / 677.16 ms │     673.87 / 679.77 ±6.97 / 693.16 ms │     no change │
│ QQuery 28 │ 2989.07 / 3021.81 ±17.17 / 3036.02 ms │ 3004.74 / 3020.08 ±10.82 / 3033.74 ms │     no change │
│ QQuery 29 │        41.94 / 45.31 ±5.59 / 56.43 ms │        42.65 / 47.29 ±8.80 / 64.89 ms │     no change │
│ QQuery 30 │     309.76 / 313.88 ±3.22 / 319.25 ms │     314.50 / 317.93 ±2.07 / 320.73 ms │     no change │
│ QQuery 31 │     306.18 / 315.60 ±5.15 / 319.72 ms │     302.81 / 312.81 ±8.08 / 324.04 ms │     no change │
│ QQuery 32 │ 1031.49 / 1052.87 ±26.65 / 1101.72 ms │ 1021.82 / 1035.32 ±10.77 / 1050.03 ms │     no change │
│ QQuery 33 │  1451.12 / 1459.22 ±5.35 / 1466.36 ms │ 1459.20 / 1478.43 ±19.80 / 1515.94 ms │     no change │
│ QQuery 34 │ 1443.19 / 1461.73 ±14.50 / 1487.49 ms │ 1454.44 / 1471.63 ±17.58 / 1496.66 ms │     no change │
│ QQuery 35 │    290.58 / 303.08 ±13.09 / 325.91 ms │    291.02 / 329.59 ±46.81 / 399.39 ms │  1.09x slower │
│ QQuery 36 │        62.60 / 67.69 ±5.12 / 75.85 ms │        65.62 / 67.27 ±1.45 / 69.84 ms │     no change │
│ QQuery 37 │        35.72 / 39.44 ±6.74 / 52.91 ms │        35.39 / 38.25 ±4.96 / 48.16 ms │     no change │
│ QQuery 38 │        40.14 / 42.40 ±1.38 / 43.66 ms │        41.75 / 45.97 ±3.88 / 53.10 ms │  1.08x slower │
│ QQuery 39 │     132.21 / 137.37 ±4.54 / 142.88 ms │     121.94 / 135.07 ±8.83 / 148.92 ms │     no change │
│ QQuery 40 │        14.38 / 14.52 ±0.11 / 14.68 ms │        14.31 / 14.51 ±0.14 / 14.72 ms │     no change │
│ QQuery 41 │        13.73 / 16.15 ±4.00 / 24.11 ms │        13.72 / 16.23 ±3.22 / 21.87 ms │     no change │
│ QQuery 42 │        13.37 / 13.73 ±0.29 / 14.20 ms │        13.56 / 14.67 ±1.82 / 18.30 ms │  1.07x slower │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                 ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                 │ 20055.87ms │
│ Total Time (perf_bytes-view-v2)   │ 20194.24ms │
│ Average Time (HEAD)               │   466.42ms │
│ Average Time (perf_bytes-view-v2) │   469.63ms │
│ Queries Faster                    │          1 │
│ Queries Slower                    │          4 │
│ Queries with No Change            │         38 │
│ Queries with Failure              │          0 │
└───────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 105.0s
Peak memory 29.5 GiB
Avg memory 22.8 GiB
CPU user 1062.0s
CPU sys 63.1s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 105.0s
Peak memory 29.9 GiB
Avg memory 23.1 GiB
CPU user 1067.2s
CPU sys 65.1s
Peak spill 0 B

File an issue against this benchmark runner

Three follow-up changes addressing PR review and CI feedback on apache#21794:

1. Remove `required-features = ["test_utils"]` from the `aggregate_vectorized`
   bench target. The gate caused the bench to be silently skipped when CI ran
   `cargo bench --features=parquet --bench aggregate_vectorized`. The bench
   compiles fine in a workspace build where `arrow/test_utils` is already
   enabled via feature unification through `datafusion-physical-expr`.

2. Replace `arrow::util::test_util::seedable_rng()` with
   `StdRng::seed_from_u64(42)` from the already-present `rand` crate.
   This was the only import from `test_util` (as opposed to `bench_util`)
   and removes the last explicit dependency on the `test_utils` feature
   in the benchmark.

3. Optimize the slow path in `vectorized_append_inner` (non-inline strings,
   `!data_buffers().is_empty()`), addressing Dandandan's review comment.
   Instead of calling `do_append_val_inner` which goes through
   `array.value(row)` (buffer lookup + slice construction) and then
   `make_view` (re-reads the first 4 bytes to build the prefix), the new
   path reads `arr.views()[row]` directly and copies `src.prefix` from the
   source `ByteView`. Benchmarks show 41–53% improvement for 64-byte strings
   and 6–16% improvement for random-length strings (null_density=0.0).
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.

Optimize ByteViewGroupValueBuilder vectorized_append

3 participants