Skip to content

[Variant] Compare field names as bytes in name lookups - #11505

Closed
cetra3 wants to merge 2 commits into
apache:mainfrom
pydantic:variant-name-lookup-bytes
Closed

cetra3 wants to merge 2 commits into
apache:mainfrom
pydantic:variant-name-lookup-bytes

Conversation

@cetra3

@cetra3 cetra3 commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • N/A

Rationale for this change

VariantObject::get and VariantMetadata::get_entry look up a field by name. Each probe of the binary search (or linear scan) reads a dictionary entry through an accessor that returns &str. When the metadata has not been fully validated, those accessors UTF-8 validate every name they return. That is the common case for variant_get over arrays with per-row metadata, such as the output of json_to_variant or data read from Parquet.

A lookup only compares names, so this validation is unnecessary. Byte order is str order. An entry whose bytes equal the requested name is valid UTF-8, because the requested name is a &str.

In a profile of variant_get_unshredded_object_path_262k_rows, UTF-8 validation from these probes (core::str::from_utf8 and VariantMetadata::get) is about 5–7% of samples. On real-world telemetry data with per-row metadata, we measured variant_get on unshredded object fields at 10–25% faster with this change. Lookups for keys that are rare or absent gain the most, because they probe more names.

What changes are included in this PR?

  • VariantMetadata::get_bytes (crate-private) returns the raw bytes of a dictionary entry. Offsets are still bounds-checked.
  • VariantObject::get binary-searches by comparing those bytes with the requested name.
  • VariantMetadata::get_entry compares bytes in both its binary search and its linear scan, and converts only the matching entry to &str.

Are these changes tested?

Existing tests of VariantObject::get, VariantMetadata::get_entry, variant_get and shredding cover these code paths.

Benchmarks (variant_kernels, local run, main vs this PR):

benchmark main this PR change
variant_get_unshredded_object_path_262k_rows 22.28 ms 21.43 ms −3.8%
shred_variant_unmatched_object_8k_rows 18.88 ms 18.12 ms −4.0%
shred_variant_partial_object_8k_rows 14.08 ms 13.90 ms −1.3%

Local run on an Apple Silicon laptop. The remaining variant_kernels benchmarks don't call these functions and moved within run-to-run noise.

Are there any significant user-facing changes?

No. A dictionary name that is not valid UTF-8 now fails to match a lookup, where before it panicked mid-search. Malformed offsets still panic, as before.

`VariantObject::get` and `VariantMetadata::get_entry` UTF-8 validated every
dictionary entry they probed, because the probes went through accessors that
return `&str`. A lookup only compares names, and byte order is `str` order, so
the probes now compare raw bytes. An entry equal to the needle is valid UTF-8
because the needle is a `&str`. Offsets are still bounds-checked.
@cetra3

cetra3 commented Oct 10, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark variant_kernels

env:
BENCH_FILTER: "^(variant_get|shred_variant)"

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: variant_kernels

Sharding factor: 1 (1 workers).

Comparing variant-name-lookup-bytes (1ad76a4) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get|shred_variant)
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@github-actions github-actions Bot added the parquet-variant parquet-variant* crates label Oct 10, 2026
@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: variant_kernels

Comparing variant-name-lookup-bytes (1ad76a4) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get|shred_variant)
shards: 1
Details
group                                                                            base                                   changed
-----                                                                            ----                                   -------
shred_variant_partial_object_8k_rows                                             1.02     20.9±0.10ms        ? ?/sec    1.00     20.6±0.10ms        ? ?/sec
shred_variant_unmatched_object_8k_rows                                           1.01     26.0±0.19ms        ? ?/sec    1.00     25.8±0.13ms        ? ?/sec
variant_get_binary_from_string                                                   1.00    479.8±0.65µs        ? ?/sec    1.01    482.4±0.65µs        ? ?/sec
variant_get_binary_from_unshredded_binary                                        1.00    463.1±3.20µs        ? ?/sec    1.00    463.8±2.89µs        ? ?/sec
variant_get_decimal_double_to_decimal128(20,3)_non_finite_8192_safe              1.00    495.1±1.22µs        ? ?/sec    1.01    500.4±1.47µs        ? ?/sec
variant_get_decimal_double_to_decimal128(20,3)_valid_8192_safe                   1.00    511.1±1.55µs        ? ?/sec    1.01    517.4±1.61µs        ? ?/sec
variant_get_decimal_double_to_decimal128(20,3)_valid_8192_strict                 1.00    538.1±1.92µs        ? ?/sec    1.01    542.8±1.82µs        ? ?/sec
variant_get_decimal_double_to_decimal256(40,-2)_scale_down_8192_safe             1.00    917.5±3.99µs        ? ?/sec    1.00    918.8±4.34µs        ? ?/sec
variant_get_decimal_double_to_decimal64(3,0)_precision_overflow_8192_safe        1.00    436.3±0.93µs        ? ?/sec    1.01    439.7±1.25µs        ? ?/sec
variant_get_decimal_float_to_decimal32(7,2)_valid_8192_safe                      1.00    455.5±1.53µs        ? ?/sec    1.00    455.0±1.98µs        ? ?/sec
variant_get_decimal_float_to_decimal32(7,2)_valid_8192_strict                    1.00    501.1±2.48µs        ? ?/sec    1.00    499.7±2.04µs        ? ?/sec
variant_get_decimal_float_to_decimal64(3,0)_precision_overflow_8192_safe         1.00    449.0±1.13µs        ? ?/sec    1.00    450.5±1.71µs        ? ?/sec
variant_get_decimal_int32_to_decimal32(8,0)_precision_overflow_8192_safe         1.00    481.4±1.43µs        ? ?/sec    1.01    485.0±1.45µs        ? ?/sec
variant_get_decimal_int32_to_decimal32(9,0)_valid_8192_safe                      1.00    468.1±1.02µs        ? ?/sec    1.01    472.2±1.38µs        ? ?/sec
variant_get_decimal_int32_to_decimal32(9,0)_valid_8192_strict                    1.00    508.4±2.21µs        ? ?/sec    1.00    509.1±1.66µs        ? ?/sec
variant_get_decimal_int64_to_decimal128(38,2)_scale_up_8192_safe                 1.00    518.0±1.98µs        ? ?/sec    1.00    520.5±2.40µs        ? ?/sec
variant_get_decimal_int64_to_decimal128(38,2)_scale_up_8192_strict               1.00    563.5±3.10µs        ? ?/sec    1.00    562.4±3.89µs        ? ?/sec
variant_get_decimal_int64_to_decimal256(76,-1)_scale_down_8192_safe              1.00    527.8±1.61µs        ? ?/sec    1.01    531.7±1.70µs        ? ?/sec
variant_get_decimal_int64_to_decimal32(9,-1)_scale_before_narrowing_8192_safe    1.00    479.6±0.70µs        ? ?/sec    1.01    485.1±0.87µs        ? ?/sec
variant_get_decimal_int64_to_decimal32(9,-20)_all_zero_8192_safe                 1.00    485.4±0.65µs        ? ?/sec    1.01    490.9±0.66µs        ? ?/sec
variant_get_list_index_all_oob_int64_64_rows                                     1.00  1777.6±21.51ns        ? ?/sec    1.00  1768.8±15.29ns        ? ?/sec
variant_get_list_index_shredded                                                  1.01     45.9±1.51µs        ? ?/sec    1.00     45.6±1.53µs        ? ?/sec
variant_get_list_index_unshredded                                                1.00  1005.0±13.11µs        ? ?/sec    1.00  1007.1±12.91µs        ? ?/sec
variant_get_primitive                                                            1.00    564.3±6.71ns        ? ?/sec    1.00    562.1±5.92ns        ? ?/sec
variant_get_shredded_utf8                                                        1.00    715.8±6.95ns        ? ?/sec    1.00    712.7±5.50ns        ? ?/sec
variant_get_unshredded_object_path_262k_rows                                     1.00     37.0±0.55ms        ? ?/sec    1.06     39.2±0.60ms        ? ?/sec
variant_get_utf8_from_date                                                       1.00    568.6±5.18µs        ? ?/sec    1.00    569.6±4.98µs        ? ?/sec
variant_get_utf8_from_decimal                                                    1.00    474.0±6.41µs        ? ?/sec    1.00    473.7±6.28µs        ? ?/sec
variant_get_utf8_from_float                                                      1.00    444.1±1.32µs        ? ?/sec    1.01    447.8±1.20µs        ? ?/sec
variant_get_utf8_from_int                                                        1.00    444.5±1.35µs        ? ?/sec    1.01    446.9±1.20µs        ? ?/sec
variant_get_utf8_from_list                                                       1.02   651.4±10.64µs        ? ?/sec    1.00   637.8±10.72µs        ? ?/sec
variant_get_utf8_from_map_in_list                                                1.01   677.9±11.17µs        ? ?/sec    1.00   674.3±11.98µs        ? ?/sec
variant_get_utf8_from_time                                                       1.00    781.8±2.25µs        ? ?/sec    1.01    787.1±1.43µs        ? ?/sec
variant_get_utf8_from_timestamp_with_timezone                                    1.00    569.5±2.88µs        ? ?/sec    1.00    569.3±2.97µs        ? ?/sec
variant_get_utf8_from_timestamp_without_timezone                                 1.00    569.8±2.96µs        ? ?/sec    1.00    570.1±2.95µs        ? ?/sec
variant_get_utf8_from_unshredded_string                                          1.00    495.5±1.49µs        ? ?/sec    1.00    498.0±1.44µs        ? ?/sec

Per-runner information
variant_kernels — shard 1/1

Node: gk3-benchmark-cluster-nap-2qfawgvw-acb8204f-5z8k

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

uname:

Linux bench-c6102642721-3278-vzmn2 6.12.94+ #1 SMP Fri Aug 21 08:00:16 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_kernels
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
Resource Usage

base (merge-base)

Metric Value
Wall time 385.1s
Peak memory 370.0 MiB
Avg memory 278.1 MiB
CPU user 382.0s
CPU sys 0.2s
Peak spill 0 B

branch

Metric Value
Wall time 390.1s
Peak memory 349.2 MiB
Avg memory 273.2 MiB
CPU user 386.3s
CPU sys 0.2s
Peak spill 0 B

File an issue against this benchmark runner

@cetra3

cetra3 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark variant_kernels

env:
BENCH_FILTER: "^(variant_get_unshredded_object_path|shred_variant)"

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: variant_kernels

Sharding factor: 1 (1 workers).

Comparing variant-name-lookup-bytes (1ad76a4) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: variant_kernels

Comparing variant-name-lookup-bytes (1ad76a4) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
shards: 1
Details
group                                           base                                   changed
-----                                           ----                                   -------
shred_variant_partial_object_8k_rows            1.02     20.8±0.10ms        ? ?/sec    1.00     20.5±0.08ms        ? ?/sec
shred_variant_unmatched_object_8k_rows          1.01     26.1±0.18ms        ? ?/sec    1.00     25.7±0.16ms        ? ?/sec
variant_get_unshredded_object_path_262k_rows    1.00     36.9±0.58ms        ? ?/sec    1.06     39.3±0.56ms        ? ?/sec

Per-runner information
variant_kernels — shard 1/1

Node: gk3-benchmark-cluster-nap-l7c1iybw-0bd6f8b7-j4dr

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

uname:

Linux bench-c6103774428-3279-s6lsp 6.12.94+ #1 SMP Fri Aug 21 08:00:16 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_kernels
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
Resource Usage

base (merge-base)

Metric Value
Wall time 40.0s
Peak memory 392.2 MiB
Avg memory 21.8 MiB
CPU user 33.6s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 35.0s
Peak memory 87.3 MiB
Avg memory 16.5 MiB
CPU user 33.0s
CPU sys 0.0s
Peak spill 0 B

File an issue against this benchmark runner

Inlining `try_field_name_bytes` into `VariantObject::get` grew `get` and
changed its per-probe call pattern from one call to two. Keeping it out of
line restores the shape that `get` has on main, so the only difference in
the probe loop is the removed UTF-8 validation.
@cetra3

cetra3 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark variant_kernels

env:
BENCH_FILTER: "^(variant_get_unshredded_object_path|shred_variant)"

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: variant_kernels

Sharding factor: 1 (1 workers).

Comparing variant-name-lookup-bytes (1ad76a4) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: variant_kernels

Comparing variant-name-lookup-bytes (1ad76a4) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
shards: 1
Details
group                                           base                                   changed
-----                                           ----                                   -------
shred_variant_partial_object_8k_rows            1.02     20.8±0.11ms        ? ?/sec    1.00     20.5±0.09ms        ? ?/sec
shred_variant_unmatched_object_8k_rows          1.01     26.1±0.18ms        ? ?/sec    1.00     25.7±0.14ms        ? ?/sec
variant_get_unshredded_object_path_262k_rows    1.00     37.0±0.59ms        ? ?/sec    1.07     39.5±0.61ms        ? ?/sec

Per-runner information
variant_kernels — shard 1/1

Node: gk3-benchmark-cluster-nap-1e2slyq9-17b83c53-m287

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

uname:

Linux bench-c6104013304-3280-bdx48 6.12.94+ #1 SMP Fri Aug 21 08:00:16 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_kernels
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
Resource Usage

base (merge-base)

Metric Value
Wall time 40.0s
Peak memory 386.0 MiB
Avg memory 21.6 MiB
CPU user 33.7s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 35.0s
Peak memory 96.7 MiB
Avg memory 16.8 MiB
CPU user 33.0s
CPU sys 0.0s
Peak spill 0 B

File an issue against this benchmark runner

@cetra3

cetra3 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark variant_kernels

env:
BENCH_FILTER: "^(variant_get_unshredded_object_path|shred_variant)"

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: variant_kernels

Sharding factor: 1 (1 workers).

Comparing variant-name-lookup-bytes (6cc5aba) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: variant_kernels

Comparing variant-name-lookup-bytes (6cc5aba) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
shards: 1
Details
group                                           base                                   changed
-----                                           ----                                   -------
shred_variant_partial_object_8k_rows            1.01     20.8±0.12ms        ? ?/sec    1.00     20.5±0.09ms        ? ?/sec
shred_variant_unmatched_object_8k_rows          1.01     26.1±0.19ms        ? ?/sec    1.00     25.8±0.14ms        ? ?/sec
variant_get_unshredded_object_path_262k_rows    1.00     38.0±2.51ms        ? ?/sec    1.04     39.4±0.60ms        ? ?/sec

Per-runner information
variant_kernels — shard 1/1

Node: gk3-benchmark-cluster-nap-2296k9vs-42f36a1d-gcqv

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

uname:

Linux bench-c6104151785-3281-dppw9 6.12.94+ #1 SMP Fri Aug 21 08:00:16 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_kernels
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
Resource Usage

base (merge-base)

Metric Value
Wall time 40.0s
Peak memory 332.3 MiB
Avg memory 20.3 MiB
CPU user 33.7s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 40.0s
Peak memory 63.2 MiB
Avg memory 13.8 MiB
CPU user 33.0s
CPU sys 0.0s
Peak spill 0 B

File an issue against this benchmark runner

@cetra3

cetra3 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark variant_kernels

env:
BENCH_FILTER: "^(variant_get_unshredded_object_path|shred_variant)"
RUSTFLAGS: "-C llvm-args=-align-all-functions=6 -C llvm-args=-align-loops=64"

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: variant_kernels

Sharding factor: 1 (1 workers).

Comparing variant-name-lookup-bytes (6cc5aba) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
  RUSTFLAGS: -C llvm-args=-align-all-functions=6 -C llvm-args=-align-loops=64
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: variant_kernels

Comparing variant-name-lookup-bytes (6cc5aba) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
  RUSTFLAGS: -C llvm-args=-align-all-functions=6 -C llvm-args=-align-loops=64
shards: 1
Details
group                                           base                                   changed
-----                                           ----                                   -------
shred_variant_partial_object_8k_rows            1.03     20.8±0.08ms        ? ?/sec    1.00     20.3±0.11ms        ? ?/sec
shred_variant_unmatched_object_8k_rows          1.03     26.3±0.16ms        ? ?/sec    1.00     25.4±0.20ms        ? ?/sec
variant_get_unshredded_object_path_262k_rows    1.00     37.3±0.97ms        ? ?/sec    1.06     39.7±0.82ms        ? ?/sec

Per-runner information
variant_kernels — shard 1/1

Node: gk3-benchmark-cluster-nap-1lc0y3px-00d6e3ee-gthj

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

uname:

Linux bench-c6104281363-3282-68f68 6.12.94+ #1 SMP Fri Aug 21 08:00:16 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_kernels
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
Resource Usage

base (merge-base)

Metric Value
Wall time 40.0s
Peak memory 331.6 MiB
Avg memory 20.7 MiB
CPU user 33.6s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 35.0s
Peak memory 105.9 MiB
Avg memory 17.2 MiB
CPU user 33.0s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@cetra3

cetra3 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark variant_kernels

env:
BENCH_FILTER: "^(variant_get_unshredded_object_path|shred_variant)"

changed:
ref: "dfef34e67737ee6847ded8b15f49751719375f1b"

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: variant_kernels

Sharding factor: 1 (1 workers).

Comparing dfef34e (dfef34e) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
changed:
  ref: dfef34e67737ee6847ded8b15f49751719375f1b
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@cetra3

cetra3 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark variant_kernels

env:
BENCH_FILTER: "^(variant_get_unshredded_object_path|shred_variant)"

baseline:
ref: "6cc5abae8a4933f3261a8672d4ae018e29632c1b"
changed:
ref: "dfef34e67737ee6847ded8b15f49751719375f1b"

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: variant_kernels

Sharding factor: 1 (1 workers).

Comparing dfef34e (dfef34e) to 6cc5aba diff

Run configuration
run benchmark variant_kernels
baseline:
  ref: 6cc5abae8a4933f3261a8672d4ae018e29632c1b
changed:
  ref: dfef34e67737ee6847ded8b15f49751719375f1b
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: variant_kernels

Comparing dfef34e (dfef34e) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
changed:
  ref: dfef34e67737ee6847ded8b15f49751719375f1b
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
shards: 1
Details
group                                           base                                   changed
-----                                           ----                                   -------
shred_variant_partial_object_8k_rows            1.00     20.8±0.12ms        ? ?/sec    1.00     20.8±0.11ms        ? ?/sec
shred_variant_unmatched_object_8k_rows          1.01     26.2±0.18ms        ? ?/sec    1.00     26.0±0.22ms        ? ?/sec
variant_get_unshredded_object_path_262k_rows    1.01     37.9±1.51ms        ? ?/sec    1.00     37.4±1.05ms        ? ?/sec

Per-runner information
variant_kernels — shard 1/1

Node: gk3-benchmark-cluster-nap-f51nlzff-c186da4b-d9p5

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

uname:

Linux bench-c6104346021-3283-5m9jz 6.12.94+ #1 SMP Fri Aug 21 08:00:16 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_kernels
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
Resource Usage

base (merge-base)

Metric Value
Wall time 40.0s
Peak memory 162.9 MiB
Avg memory 16.5 MiB
CPU user 33.7s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 35.0s
Peak memory 289.6 MiB
Avg memory 21.8 MiB
CPU user 33.0s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: variant_kernels

Comparing dfef34e (dfef34e) to 6cc5aba diff

Run configuration
run benchmark variant_kernels
baseline:
  ref: 6cc5abae8a4933f3261a8672d4ae018e29632c1b
changed:
  ref: dfef34e67737ee6847ded8b15f49751719375f1b
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
shards: 1
Details
group                                           base                                   changed
-----                                           ----                                   -------
shred_variant_partial_object_8k_rows            1.00     20.5±0.08ms        ? ?/sec    1.02     20.9±0.17ms        ? ?/sec
shred_variant_unmatched_object_8k_rows          1.00     25.8±0.13ms        ? ?/sec    1.01     26.2±0.31ms        ? ?/sec
variant_get_unshredded_object_path_262k_rows    1.07     39.6±0.52ms        ? ?/sec    1.00     37.1±0.55ms        ? ?/sec

Per-runner information
variant_kernels — shard 1/1

Node: gk3-benchmark-cluster-nap-f51nlzff-9ee824a0-jf4q

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

uname:

Linux bench-c6104348912-3284-wlmbg 6.12.94+ #1 SMP Fri Aug 21 08:00:16 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_kernels
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
Resource Usage

base (merge-base)

Metric Value
Wall time 40.0s
Peak memory 85.7 MiB
Avg memory 14.6 MiB
CPU user 33.7s
CPU sys 0.0s
Peak spill 0 B

branch

Metric Value
Wall time 35.0s
Peak memory 277.3 MiB
Avg memory 21.5 MiB
CPU user 33.0s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@cetra3

cetra3 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark variant_kernels

env:
BENCH_FILTER: "^(variant_get_unshredded_object_path|shred_variant)"

resources:
arch: amd64

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: variant_kernels

Sharding factor: 1 (1 workers).

Comparing variant-name-lookup-bytes (6cc5aba) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
resources:
  arch: amd64
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: variant_kernels

Comparing variant-name-lookup-bytes (6cc5aba) to dfef34e (merge-base) diff

Run configuration
run benchmark variant_kernels
env:
  BENCH_FILTER: ^(variant_get_unshredded_object_path|shred_variant)
resources:
  arch: amd64
shards: 1
Details
group                                           base                                   changed
-----                                           ----                                   -------
shred_variant_partial_object_8k_rows            1.00     14.5±0.20ms        ? ?/sec    1.03     14.9±0.35ms        ? ?/sec
shred_variant_unmatched_object_8k_rows          1.00     19.1±0.30ms        ? ?/sec    1.00     19.1±0.42ms        ? ?/sec
variant_get_unshredded_object_path_262k_rows    1.06     28.2±0.43ms        ? ?/sec    1.00     26.7±0.58ms        ? ?/sec

Per-runner information
variant_kernels — shard 1/1

Node: gk3-benchmark-cluster-nap-4jw8ggek-3b23b608-529l

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

uname:

Linux bench-c6104679512-3286-vnz4z 6.12.94+ #1 SMP Fri Aug 21 07:56:42 UTC 2026 x86_64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_kernels
CPU Details (lscpu)
Architecture:                            x86_64
CPU op-mode(s):                          32-bit, 64-bit
Address sizes:                           52 bits physical, 57 bits virtual
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               GenuineIntel
Model name:                              INTEL(R) XEON(R) PLATINUM 8581C CPU @ 2.30GHz
CPU family:                              6
Model:                                   207
Thread(s) per core:                      2
Core(s) per socket:                      8
Socket(s):                               1
Stepping:                                2
BogoMIPS:                                4600.00
Flags:                                   fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx_vnni avx512_bf16 wbnoinvd arat avx512vbmi umip avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid cldemote movdiri movdir64b fsrm md_clear serialize tsxldtrk amx_bf16 avx512_fp16 amx_tile amx_int8 arch_capabilities
Hypervisor vendor:                       KVM
Virtualization type:                     full
L1d cache:                               384 KiB (8 instances)
L1i cache:                               256 KiB (8 instances)
L2 cache:                                16 MiB (8 instances)
L3 cache:                                260 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; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS SW sequence; BHI BHI_DIS_S
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Resource Usage

base (merge-base)

Metric Value
Wall time 35.0s
Peak memory 428.8 MiB
Avg memory 25.4 MiB
CPU user 30.7s
CPU sys 0.2s
Peak spill 0 B

branch

Metric Value
Wall time 35.0s
Peak memory 409.9 MiB
Avg memory 24.5 MiB
CPU user 29.9s
CPU sys 0.2s
Peak spill 0 B

File an issue against this benchmark runner

@cetra3

cetra3 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

Benchmark summary for variant_get_unshredded_object_path_262k_rows:

CPU change
Neoverse V2 (bot, c4a) +6% (slower)
Intel Xeon 8581C (bot, c4, arch: amd64) −5%
Apple Silicon (local) −3 to −5%

So it looks like this regresses on the ARM runner, but it's about a 5% improvement on x86 and macOS. The ARM result reproduces across several runs, including an A/A run (flat) and a run with base and PR swapped, so it doesn't look like runner noise. We're looking into why Neoverse V2 behaves differently.

@cetra3

cetra3 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

superceded by #11511

@cetra3 cetra3 closed this Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet-variant parquet-variant* crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants