Skip to content

Skip hash table probe for consecutive duplicate values in ArrowBytesViewMap#21604

Closed
Dandandan wants to merge 3 commits into
apache:mainfrom
Dandandan:skip-duplicate-hash-probe
Closed

Skip hash table probe for consecutive duplicate values in ArrowBytesViewMap#21604
Dandandan wants to merge 3 commits into
apache:mainfrom
Dandandan:skip-duplicate-hash-probe

Conversation

@Dandandan
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

N/A - Performance optimization

Rationale for this change

Profiling ClickBench query 5 (SELECT COUNT(DISTINCT "SearchPhrase") FROM hits) shows ~29% of time in GroupValuesBytesView (hash table probing) and ~13% in create_hashes. In this workload ~90% of SearchPhrase values are empty strings, meaning most hash table probes find an already-existing entry for the same value as the previous row.

What changes are included in this PR?

Adds a single-entry "last value" cache in ArrowBytesViewMap::insert_if_new_inner. Before probing the hash table, the loop checks whether the current view_u128 matches the previous row's view. If so, it reuses the cached payload and skips the hash table find() entirely.

This is correct for all string lengths:

  • Inline strings (≤12 bytes): the u128 view deterministically encodes the complete value
  • Non-inline strings (>12 bytes): within the same input array, matching views means identical buffer_index + offset + length, so they reference the exact same bytes

The cost is one u128 comparison per row (~1 cycle, register/L1). The saving is the hash table find() (random memory access pattern) for every consecutive duplicate.

Are these changes tested?

Existing tests in binary_view_map::tests pass (8/8). The optimization is transparent — same semantics, same output, just fewer hash table probes.

Are there any user-facing changes?

No. This is a performance improvement only.

🤖 Generated with Claude Code

…iewMap

Add a last-value cache in insert_if_new_inner that skips the hash table
probe when the current view matches the previous one. For inline strings
(<=12 bytes), matching views guarantees equal values. For non-inline
strings within the same input array, matching views means identical
buffer_index + offset, so they point to the same bytes.

This is effective for workloads with repeated values such as ClickBench
query 5 (COUNT(DISTINCT SearchPhrase)) where ~90% of rows are empty
strings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the physical-expr Changes to the physical-expr crates label Apr 14, 2026
@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmarks

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4242079456-1206-zqshm 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 skip-duplicate-hash-probe (9db8715) to 29c5dd5 (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-c4242079456-1205-lbcxg 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 skip-duplicate-hash-probe (9db8715) to 29c5dd5 (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 running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4242079456-1207-w66b7 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 skip-duplicate-hash-probe (9db8715) to 29c5dd5 (merge-base) diff using: tpch
Results will be posted here when complete


File an issue against this benchmark runner

…iewMap

Add two fast-path caches in insert_if_new_inner that skip hash table
probes for duplicate values:

1. Empty-string cache: catches *all* empty strings (view == 0) even when
   non-consecutive. Comparing against zero is essentially free.

2. Last-value cache: catches consecutive runs of any repeated value.
   For inline strings (<=12 bytes) matching views guarantees equal values.
   For non-inline strings within the same input array, matching views
   means identical buffer_index + offset, i.e. the same bytes.

This is effective for workloads with repeated values such as ClickBench
query 5 (COUNT(DISTINCT SearchPhrase)) where ~90% of rows are empty
strings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@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 skip-duplicate-hash-probe
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                     HEAD ┃                skip-duplicate-hash-probe ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │              6.66 / 7.09 ±0.78 / 8.64 ms │              6.78 / 7.21 ±0.78 / 8.76 ms │     no change │
│ QQuery 2  │        144.74 / 145.95 ±1.02 / 147.64 ms │        144.22 / 144.83 ±0.51 / 145.60 ms │     no change │
│ QQuery 3  │        113.91 / 114.32 ±0.50 / 115.31 ms │        114.92 / 115.32 ±0.36 / 115.92 ms │     no change │
│ QQuery 4  │    1352.72 / 1379.48 ±25.42 / 1412.86 ms │    1326.06 / 1349.76 ±15.14 / 1370.25 ms │     no change │
│ QQuery 5  │        173.22 / 175.60 ±1.67 / 178.20 ms │        173.47 / 174.76 ±1.27 / 176.91 ms │     no change │
│ QQuery 6  │       848.20 / 873.31 ±21.51 / 909.85 ms │       853.60 / 881.79 ±20.80 / 914.42 ms │     no change │
│ QQuery 7  │        344.67 / 348.04 ±2.19 / 351.41 ms │        341.32 / 343.61 ±1.43 / 345.50 ms │     no change │
│ QQuery 8  │        118.22 / 118.78 ±0.34 / 119.22 ms │        117.33 / 118.96 ±1.10 / 120.16 ms │     no change │
│ QQuery 9  │         98.31 / 104.48 ±3.85 / 108.55 ms │       101.34 / 112.08 ±10.23 / 130.51 ms │  1.07x slower │
│ QQuery 10 │        107.47 / 108.75 ±0.89 / 110.21 ms │        107.05 / 108.57 ±0.83 / 109.28 ms │     no change │
│ QQuery 11 │       974.44 / 988.41 ±9.47 / 1001.13 ms │       929.64 / 948.63 ±12.51 / 968.98 ms │     no change │
│ QQuery 12 │           44.65 / 45.96 ±0.95 / 47.29 ms │           45.16 / 46.83 ±1.23 / 48.77 ms │     no change │
│ QQuery 13 │        395.75 / 400.20 ±2.82 / 404.00 ms │        398.03 / 403.04 ±3.75 / 408.08 ms │     no change │
│ QQuery 14 │      993.00 / 1008.61 ±9.08 / 1020.44 ms │      988.27 / 1005.03 ±9.93 / 1019.38 ms │     no change │
│ QQuery 15 │           15.35 / 16.61 ±1.12 / 18.28 ms │           15.36 / 16.47 ±1.35 / 18.98 ms │     no change │
│ QQuery 16 │              7.10 / 7.71 ±0.67 / 9.01 ms │              7.29 / 8.27 ±0.92 / 9.49 ms │  1.07x slower │
│ QQuery 17 │        227.71 / 230.12 ±1.43 / 231.98 ms │        226.54 / 228.59 ±1.52 / 230.59 ms │     no change │
│ QQuery 18 │        126.01 / 127.18 ±0.94 / 128.63 ms │        127.98 / 128.95 ±0.81 / 130.08 ms │     no change │
│ QQuery 19 │        155.24 / 156.55 ±0.83 / 157.49 ms │        156.49 / 157.64 ±1.00 / 159.50 ms │     no change │
│ QQuery 20 │           14.20 / 14.55 ±0.24 / 14.90 ms │           14.46 / 14.94 ±0.44 / 15.73 ms │     no change │
│ QQuery 21 │           20.12 / 20.70 ±0.43 / 21.35 ms │           20.15 / 20.30 ±0.16 / 20.57 ms │     no change │
│ QQuery 22 │        485.21 / 486.66 ±1.66 / 489.27 ms │        481.74 / 486.79 ±3.88 / 490.32 ms │     no change │
│ QQuery 23 │       869.71 / 891.78 ±11.99 / 904.52 ms │       861.28 / 877.95 ±11.75 / 897.85 ms │     no change │
│ QQuery 24 │        385.19 / 388.25 ±2.73 / 392.24 ms │        377.16 / 382.86 ±3.13 / 385.58 ms │     no change │
│ QQuery 25 │        342.59 / 344.16 ±1.62 / 346.69 ms │        338.45 / 341.07 ±1.87 / 343.39 ms │     no change │
│ QQuery 26 │           80.98 / 82.62 ±1.05 / 83.72 ms │           79.95 / 81.08 ±1.54 / 84.10 ms │     no change │
│ QQuery 27 │              6.93 / 7.22 ±0.18 / 7.48 ms │              6.83 / 7.15 ±0.21 / 7.44 ms │     no change │
│ QQuery 28 │        149.27 / 150.17 ±0.76 / 151.53 ms │        148.08 / 149.74 ±1.00 / 150.99 ms │     no change │
│ QQuery 29 │        281.62 / 283.41 ±1.50 / 285.88 ms │        280.03 / 282.29 ±1.87 / 285.07 ms │     no change │
│ QQuery 30 │           42.42 / 44.91 ±1.33 / 46.06 ms │           43.68 / 45.07 ±1.48 / 47.93 ms │     no change │
│ QQuery 31 │        167.41 / 171.58 ±2.23 / 173.67 ms │        171.20 / 173.00 ±1.56 / 175.15 ms │     no change │
│ QQuery 32 │           56.45 / 57.73 ±1.27 / 60.14 ms │           56.73 / 58.17 ±0.91 / 59.41 ms │     no change │
│ QQuery 33 │        140.64 / 141.34 ±0.53 / 142.05 ms │        143.21 / 144.55 ±0.88 / 145.56 ms │     no change │
│ QQuery 34 │              7.00 / 7.42 ±0.33 / 7.87 ms │              6.91 / 7.14 ±0.34 / 7.81 ms │     no change │
│ QQuery 35 │        106.74 / 108.18 ±0.95 / 109.50 ms │        109.68 / 110.68 ±0.85 / 112.25 ms │     no change │
│ QQuery 36 │              6.75 / 7.52 ±0.69 / 8.73 ms │              6.47 / 6.67 ±0.20 / 6.97 ms │ +1.13x faster │
│ QQuery 37 │             8.77 / 9.30 ±0.49 / 10.16 ms │              8.28 / 8.68 ±0.25 / 8.93 ms │ +1.07x faster │
│ QQuery 38 │           83.71 / 87.92 ±4.40 / 96.43 ms │           85.20 / 88.88 ±3.67 / 95.89 ms │     no change │
│ QQuery 39 │        125.48 / 127.65 ±1.62 / 129.74 ms │        125.44 / 128.57 ±2.17 / 131.13 ms │     no change │
│ QQuery 40 │        110.39 / 115.97 ±6.38 / 128.30 ms │        108.71 / 115.60 ±6.29 / 125.02 ms │     no change │
│ QQuery 41 │           14.20 / 15.47 ±0.74 / 16.19 ms │           14.38 / 15.00 ±0.54 / 15.85 ms │     no change │
│ QQuery 42 │        106.58 / 109.50 ±1.54 / 110.95 ms │        110.04 / 111.08 ±0.84 / 112.16 ms │     no change │
│ QQuery 43 │              5.93 / 6.10 ±0.12 / 6.30 ms │              6.03 / 6.57 ±0.49 / 7.25 ms │  1.08x slower │
│ QQuery 44 │           11.65 / 11.82 ±0.12 / 11.93 ms │           11.87 / 12.30 ±0.57 / 13.38 ms │     no change │
│ QQuery 45 │           50.97 / 51.58 ±0.57 / 52.57 ms │           49.63 / 50.88 ±0.92 / 52.04 ms │     no change │
│ QQuery 46 │              8.82 / 8.96 ±0.18 / 9.30 ms │              8.59 / 9.11 ±0.47 / 9.98 ms │     no change │
│ QQuery 47 │        715.51 / 721.39 ±3.68 / 727.06 ms │        704.56 / 712.80 ±6.23 / 722.16 ms │     no change │
│ QQuery 48 │        289.03 / 292.86 ±4.74 / 302.12 ms │        285.79 / 289.95 ±3.69 / 294.35 ms │     no change │
│ QQuery 49 │        249.60 / 253.58 ±3.39 / 259.84 ms │        252.16 / 254.18 ±1.73 / 257.11 ms │     no change │
│ QQuery 50 │        221.70 / 225.31 ±4.17 / 233.11 ms │        223.81 / 227.97 ±3.81 / 234.62 ms │     no change │
│ QQuery 51 │        183.80 / 185.76 ±1.75 / 189.01 ms │        181.93 / 183.14 ±0.94 / 184.44 ms │     no change │
│ QQuery 52 │        108.70 / 109.71 ±0.62 / 110.59 ms │        110.40 / 111.52 ±1.09 / 113.06 ms │     no change │
│ QQuery 53 │        103.11 / 104.46 ±1.33 / 106.58 ms │        103.07 / 103.77 ±0.45 / 104.22 ms │     no change │
│ QQuery 54 │        146.23 / 148.49 ±1.23 / 149.94 ms │        147.18 / 149.83 ±3.10 / 153.99 ms │     no change │
│ QQuery 55 │        107.49 / 108.31 ±0.82 / 109.86 ms │        107.37 / 108.54 ±0.87 / 109.92 ms │     no change │
│ QQuery 56 │        140.84 / 142.52 ±2.01 / 146.27 ms │        141.21 / 143.33 ±1.85 / 146.65 ms │     no change │
│ QQuery 57 │        174.04 / 176.08 ±1.44 / 178.50 ms │        171.30 / 173.83 ±1.96 / 176.47 ms │     no change │
│ QQuery 58 │        290.45 / 298.89 ±5.29 / 305.40 ms │        289.88 / 297.60 ±6.37 / 308.71 ms │     no change │
│ QQuery 59 │        198.42 / 199.71 ±1.25 / 202.05 ms │        196.65 / 198.82 ±2.04 / 202.54 ms │     no change │
│ QQuery 60 │        144.61 / 146.57 ±1.44 / 148.33 ms │        144.01 / 146.14 ±1.46 / 147.88 ms │     no change │
│ QQuery 61 │           13.10 / 13.46 ±0.37 / 14.05 ms │           12.96 / 13.25 ±0.27 / 13.73 ms │     no change │
│ QQuery 62 │       894.79 / 938.49 ±31.91 / 993.85 ms │      874.72 / 940.86 ±63.70 / 1061.78 ms │     no change │
│ QQuery 63 │        105.25 / 107.82 ±2.31 / 111.03 ms │        103.35 / 106.54 ±3.05 / 111.58 ms │     no change │
│ QQuery 64 │        681.27 / 686.12 ±3.78 / 692.91 ms │        682.51 / 689.41 ±7.32 / 703.27 ms │     no change │
│ QQuery 65 │        252.80 / 257.84 ±3.72 / 262.35 ms │        252.48 / 254.57 ±1.47 / 256.35 ms │     no change │
│ QQuery 66 │       224.95 / 250.01 ±14.06 / 266.89 ms │       240.81 / 254.79 ±18.36 / 291.12 ms │     no change │
│ QQuery 67 │        307.83 / 317.26 ±6.74 / 327.71 ms │        307.15 / 318.90 ±6.14 / 324.13 ms │     no change │
│ QQuery 68 │             8.66 / 9.69 ±0.89 / 10.74 ms │            9.45 / 10.48 ±0.71 / 11.43 ms │  1.08x slower │
│ QQuery 69 │        103.19 / 106.03 ±3.60 / 112.98 ms │        104.14 / 106.22 ±1.85 / 109.29 ms │     no change │
│ QQuery 70 │       336.59 / 349.93 ±11.94 / 365.50 ms │       326.40 / 349.17 ±13.42 / 363.70 ms │     no change │
│ QQuery 71 │        134.53 / 136.05 ±0.88 / 137.18 ms │        137.54 / 139.41 ±1.78 / 141.99 ms │     no change │
│ QQuery 72 │        614.81 / 624.43 ±8.56 / 639.75 ms │        603.14 / 617.23 ±7.55 / 624.35 ms │     no change │
│ QQuery 73 │              6.67 / 7.46 ±0.80 / 8.83 ms │             7.34 / 9.01 ±1.02 / 10.44 ms │  1.21x slower │
│ QQuery 74 │        583.93 / 592.87 ±5.46 / 599.78 ms │        583.87 / 592.45 ±8.11 / 606.89 ms │     no change │
│ QQuery 75 │        278.17 / 279.72 ±1.85 / 283.23 ms │        277.17 / 280.50 ±2.29 / 283.38 ms │     no change │
│ QQuery 76 │        132.71 / 134.71 ±1.15 / 136.04 ms │        131.71 / 133.68 ±1.30 / 135.38 ms │     no change │
│ QQuery 77 │        187.17 / 190.74 ±2.09 / 193.43 ms │        189.88 / 191.63 ±1.63 / 194.24 ms │     no change │
│ QQuery 78 │        339.02 / 343.24 ±3.02 / 347.45 ms │        338.77 / 341.82 ±3.29 / 347.03 ms │     no change │
│ QQuery 79 │        229.91 / 234.66 ±2.96 / 237.91 ms │        236.38 / 238.36 ±1.58 / 240.07 ms │     no change │
│ QQuery 80 │        320.99 / 323.56 ±1.98 / 326.11 ms │        319.98 / 323.44 ±2.71 / 327.23 ms │     no change │
│ QQuery 81 │           26.87 / 27.56 ±0.74 / 28.53 ms │           26.22 / 27.56 ±1.02 / 28.71 ms │     no change │
│ QQuery 82 │        202.44 / 206.15 ±3.13 / 211.62 ms │        201.18 / 203.35 ±1.41 / 204.86 ms │     no change │
│ QQuery 83 │           39.29 / 40.55 ±0.75 / 41.32 ms │           38.89 / 39.39 ±0.56 / 40.38 ms │     no change │
│ QQuery 84 │           48.24 / 49.17 ±1.00 / 50.70 ms │           47.81 / 48.71 ±0.68 / 49.57 ms │     no change │
│ QQuery 85 │        146.49 / 150.35 ±2.67 / 154.66 ms │        147.08 / 149.86 ±1.81 / 151.73 ms │     no change │
│ QQuery 86 │           39.39 / 40.71 ±1.29 / 42.65 ms │           39.33 / 39.81 ±0.45 / 40.58 ms │     no change │
│ QQuery 87 │           86.01 / 88.25 ±2.82 / 93.39 ms │           85.18 / 89.88 ±3.05 / 94.22 ms │     no change │
│ QQuery 88 │        101.20 / 101.82 ±0.95 / 103.71 ms │       101.24 / 110.64 ±17.01 / 144.64 ms │  1.09x slower │
│ QQuery 89 │        117.98 / 120.55 ±1.95 / 123.91 ms │        116.97 / 119.44 ±1.70 / 121.97 ms │     no change │
│ QQuery 90 │           23.52 / 24.26 ±0.64 / 25.35 ms │           23.56 / 24.30 ±0.44 / 24.76 ms │     no change │
│ QQuery 91 │           61.18 / 63.77 ±1.81 / 65.73 ms │           62.68 / 65.04 ±2.44 / 69.66 ms │     no change │
│ QQuery 92 │           56.89 / 58.60 ±1.52 / 61.34 ms │           57.91 / 59.19 ±1.09 / 60.89 ms │     no change │
│ QQuery 93 │        186.33 / 187.65 ±1.76 / 191.01 ms │        183.05 / 186.14 ±2.05 / 189.20 ms │     no change │
│ QQuery 94 │           61.39 / 61.95 ±0.44 / 62.73 ms │           61.62 / 62.26 ±0.34 / 62.58 ms │     no change │
│ QQuery 95 │        128.40 / 129.17 ±0.60 / 129.99 ms │        126.80 / 127.66 ±0.78 / 128.61 ms │     no change │
│ QQuery 96 │           71.36 / 73.98 ±1.34 / 75.05 ms │           73.34 / 74.87 ±1.02 / 76.10 ms │     no change │
│ QQuery 97 │        126.62 / 128.46 ±1.48 / 130.43 ms │        125.01 / 127.56 ±2.09 / 131.39 ms │     no change │
│ QQuery 98 │        152.95 / 154.99 ±1.89 / 157.51 ms │        153.10 / 154.24 ±1.06 / 155.95 ms │     no change │
│ QQuery 99 │ 10768.86 / 10816.65 ±39.64 / 10868.73 ms │ 10742.75 / 10795.98 ±37.62 / 10844.09 ms │     no change │
└───────────┴──────────────────────────────────────────┴──────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                        ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                        │ 31651.90ms │
│ Total Time (skip-duplicate-hash-probe)   │ 31555.47ms │
│ Average Time (HEAD)                      │   319.72ms │
│ Average Time (skip-duplicate-hash-probe) │   318.74ms │
│ Queries Faster                           │          2 │
│ Queries Slower                           │          6 │
│ Queries with No Change                   │         91 │
│ Queries with Failure                     │          0 │
└──────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 158.6s
Peak memory 5.8 GiB
Avg memory 4.8 GiB
CPU user 261.7s
CPU sys 17.2s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 158.1s
Peak memory 5.4 GiB
Avg memory 4.5 GiB
CPU user 260.0s
CPU sys 17.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 skip-duplicate-hash-probe
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃             skip-duplicate-hash-probe ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.21 / 4.39 ±6.30 / 16.99 ms │          1.20 / 4.44 ±6.35 / 17.15 ms │     no change │
│ QQuery 1  │        14.08 / 14.64 ±0.36 / 15.17 ms │        14.05 / 14.38 ±0.21 / 14.67 ms │     no change │
│ QQuery 2  │        43.73 / 44.18 ±0.33 / 44.74 ms │        43.48 / 44.92 ±1.82 / 48.49 ms │     no change │
│ QQuery 3  │        43.18 / 44.85 ±1.03 / 46.41 ms │        43.83 / 45.80 ±1.57 / 48.03 ms │     no change │
│ QQuery 4  │     282.01 / 287.63 ±3.64 / 292.26 ms │     278.18 / 291.14 ±8.83 / 301.96 ms │     no change │
│ QQuery 5  │     339.76 / 341.34 ±1.46 / 343.76 ms │     320.39 / 322.79 ±2.55 / 327.04 ms │ +1.06x faster │
│ QQuery 6  │           5.49 / 6.06 ±0.59 / 7.17 ms │           5.24 / 5.68 ±0.34 / 6.14 ms │ +1.07x faster │
│ QQuery 7  │        16.58 / 18.42 ±2.32 / 22.68 ms │        16.66 / 17.74 ±0.88 / 18.84 ms │     no change │
│ QQuery 8  │     411.81 / 418.47 ±6.16 / 429.26 ms │     423.70 / 428.62 ±4.58 / 436.90 ms │     no change │
│ QQuery 9  │     631.00 / 640.51 ±6.52 / 650.67 ms │    630.94 / 648.65 ±10.75 / 660.70 ms │     no change │
│ QQuery 10 │        89.20 / 92.60 ±2.94 / 97.17 ms │        91.30 / 94.27 ±2.73 / 98.50 ms │     no change │
│ QQuery 11 │     102.20 / 103.87 ±1.13 / 105.44 ms │     104.42 / 105.38 ±0.74 / 106.63 ms │     no change │
│ QQuery 12 │     340.21 / 346.89 ±6.32 / 355.24 ms │     331.21 / 337.94 ±9.26 / 356.08 ms │     no change │
│ QQuery 13 │     463.50 / 466.34 ±1.82 / 469.11 ms │    454.77 / 468.02 ±13.10 / 488.03 ms │     no change │
│ QQuery 14 │     335.53 / 340.88 ±4.28 / 345.28 ms │     344.79 / 348.78 ±4.80 / 358.14 ms │     no change │
│ QQuery 15 │    353.22 / 366.07 ±11.40 / 386.83 ms │    353.12 / 368.66 ±13.33 / 389.55 ms │     no change │
│ QQuery 16 │    704.33 / 720.57 ±13.98 / 741.78 ms │    711.83 / 731.99 ±16.41 / 752.10 ms │     no change │
│ QQuery 17 │     702.92 / 706.67 ±2.17 / 709.60 ms │    706.40 / 751.60 ±37.11 / 795.45 ms │  1.06x slower │
│ QQuery 18 │ 1403.40 / 1448.68 ±28.23 / 1486.86 ms │ 1420.12 / 1467.43 ±29.70 / 1510.56 ms │     no change │
│ QQuery 19 │        35.27 / 40.39 ±7.42 / 54.83 ms │       35.64 / 42.44 ±12.80 / 68.03 ms │  1.05x slower │
│ QQuery 20 │    722.73 / 741.04 ±21.62 / 777.07 ms │    718.47 / 732.18 ±18.68 / 769.09 ms │     no change │
│ QQuery 21 │     761.26 / 765.49 ±3.70 / 771.08 ms │     765.21 / 769.37 ±5.52 / 780.29 ms │     no change │
│ QQuery 22 │  1133.45 / 1139.61 ±6.14 / 1150.82 ms │  1128.31 / 1133.53 ±4.06 / 1140.31 ms │     no change │
│ QQuery 23 │ 3042.10 / 3074.70 ±21.67 / 3103.69 ms │  3070.46 / 3083.82 ±8.12 / 3092.20 ms │     no change │
│ QQuery 24 │      98.65 / 100.94 ±1.71 / 103.46 ms │      99.63 / 101.94 ±1.35 / 103.13 ms │     no change │
│ QQuery 25 │     137.45 / 140.47 ±2.16 / 144.16 ms │     137.38 / 140.55 ±1.76 / 142.31 ms │     no change │
│ QQuery 26 │     100.56 / 102.39 ±1.46 / 104.74 ms │      96.52 / 100.52 ±2.87 / 104.03 ms │     no change │
│ QQuery 27 │     848.27 / 852.99 ±2.65 / 855.67 ms │     847.10 / 853.13 ±4.95 / 859.03 ms │     no change │
│ QQuery 28 │ 3249.37 / 3301.28 ±26.47 / 3323.26 ms │ 3259.35 / 3283.41 ±12.29 / 3293.64 ms │     no change │
│ QQuery 29 │      55.75 / 91.11 ±34.97 / 149.32 ms │        50.95 / 54.81 ±4.86 / 64.33 ms │ +1.66x faster │
│ QQuery 30 │    357.44 / 377.56 ±28.02 / 432.48 ms │     353.82 / 365.91 ±6.95 / 374.07 ms │     no change │
│ QQuery 31 │    352.41 / 396.15 ±24.28 / 425.23 ms │     364.73 / 372.77 ±6.81 / 385.39 ms │ +1.06x faster │
│ QQuery 32 │ 1214.65 / 1262.76 ±29.43 / 1305.98 ms │ 1162.55 / 1287.12 ±90.16 / 1424.62 ms │     no change │
│ QQuery 33 │ 1465.04 / 1503.96 ±29.69 / 1555.83 ms │ 1424.27 / 1463.51 ±41.85 / 1538.61 ms │     no change │
│ QQuery 34 │ 1476.82 / 1507.62 ±33.98 / 1568.79 ms │ 1416.12 / 1425.99 ±11.04 / 1446.78 ms │ +1.06x faster │
│ QQuery 35 │     375.16 / 390.16 ±8.93 / 402.28 ms │     386.32 / 389.24 ±4.44 / 398.08 ms │     no change │
│ QQuery 36 │     117.65 / 119.43 ±1.26 / 120.98 ms │     112.54 / 120.65 ±4.28 / 124.25 ms │     no change │
│ QQuery 37 │        47.77 / 49.63 ±1.30 / 51.14 ms │        48.19 / 48.85 ±0.59 / 49.91 ms │     no change │
│ QQuery 38 │        74.90 / 77.47 ±2.01 / 80.07 ms │        77.01 / 78.97 ±1.16 / 80.32 ms │     no change │
│ QQuery 39 │     202.25 / 210.32 ±4.44 / 215.19 ms │     205.98 / 215.41 ±6.12 / 223.35 ms │     no change │
│ QQuery 40 │        22.31 / 24.95 ±1.66 / 26.97 ms │        21.46 / 25.21 ±2.43 / 27.50 ms │     no change │
│ QQuery 41 │        20.98 / 21.95 ±0.84 / 23.05 ms │        20.75 / 21.55 ±1.19 / 23.91 ms │     no change │
│ QQuery 42 │        19.07 / 19.59 ±0.66 / 20.90 ms │        19.01 / 20.42 ±0.86 / 21.59 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                        ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                        │ 22725.02ms │
│ Total Time (skip-duplicate-hash-probe)   │ 22629.57ms │
│ Average Time (HEAD)                      │   528.49ms │
│ Average Time (skip-duplicate-hash-probe) │   526.27ms │
│ Queries Faster                           │          5 │
│ Queries Slower                           │          2 │
│ Queries with No Change                   │         36 │
│ Queries with Failure                     │          0 │
└──────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 114.7s
Peak memory 41.5 GiB
Avg memory 28.6 GiB
CPU user 1066.3s
CPU sys 100.1s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 114.3s
Peak memory 43.6 GiB
Avg memory 29.0 GiB
CPU user 1062.1s
CPU sys 98.9s
Peak spill 0 B

File an issue against this benchmark runner

@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmark clickbench_partiitioned

@adriangbot
Copy link
Copy Markdown

🤖 Criterion benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4242226977-1211-74r2z 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 skip-duplicate-hash-probe (0e94b9a) to 29c5dd5 (merge-base) diff
BENCH_NAME=clickbench_partiitioned
BENCH_COMMAND=cargo bench --features=parquet --bench clickbench_partiitioned
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
    struct_query_sql
    substr
    substr_index
    substring
    sum
    to_char
    to_hex
    to_local_time
    to_time
    to_timestamp
    topk_aggregate
    topk_repartition
    translate
    trim
    trunc
    unhex
    upper
    uuid
    window_query_sql
    with_hashes

File an issue against this benchmark runner

…d view

Replace the full u128 view + payload in each hash table entry with a
compact u32 view_index. The view is already stored in the `views` vec,
and the payload (group index) always equals the view index for all
callers. This shrinks each entry from 32 bytes to 12 bytes, reducing
memory usage and halving the cost of rehashing when the hash table grows.

The ArrowBytesViewMap is no longer generic over a payload type V. Instead,
the observe callback receives the view index (usize) directly, which
callers use as the group index.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the physical-plan Changes to the physical-plan crate label Apr 14, 2026
@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmark clickbench_partitioned

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4242383822-1213-px4c9 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 skip-duplicate-hash-probe (ec94be3) to 29c5dd5 (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 skip-duplicate-hash-probe
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃             skip-duplicate-hash-probe ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.18 / 4.34 ±6.24 / 16.81 ms │          1.18 / 4.37 ±6.28 / 16.92 ms │     no change │
│ QQuery 1  │        14.15 / 14.51 ±0.20 / 14.75 ms │        14.18 / 14.38 ±0.12 / 14.50 ms │     no change │
│ QQuery 2  │        43.24 / 43.72 ±0.30 / 44.14 ms │        42.87 / 43.59 ±0.39 / 44.03 ms │     no change │
│ QQuery 3  │        41.79 / 45.12 ±2.08 / 47.39 ms │        39.97 / 43.93 ±2.91 / 47.98 ms │     no change │
│ QQuery 4  │     282.79 / 297.35 ±9.64 / 310.13 ms │     291.67 / 295.32 ±3.89 / 302.53 ms │     no change │
│ QQuery 5  │     342.78 / 346.55 ±2.94 / 350.71 ms │     335.43 / 343.09 ±5.54 / 349.37 ms │     no change │
│ QQuery 6  │           5.46 / 6.44 ±0.73 / 7.65 ms │           5.71 / 6.41 ±0.58 / 7.32 ms │     no change │
│ QQuery 7  │        16.92 / 17.78 ±0.71 / 18.89 ms │        16.59 / 16.77 ±0.14 / 16.95 ms │ +1.06x faster │
│ QQuery 8  │     409.12 / 422.02 ±7.06 / 429.07 ms │     412.46 / 418.73 ±6.23 / 430.22 ms │     no change │
│ QQuery 9  │     640.21 / 648.60 ±5.71 / 658.10 ms │     643.87 / 648.64 ±4.65 / 656.53 ms │     no change │
│ QQuery 10 │       89.77 / 94.45 ±3.41 / 100.14 ms │        92.21 / 94.30 ±2.75 / 99.60 ms │     no change │
│ QQuery 11 │     103.31 / 104.56 ±0.97 / 106.06 ms │     102.68 / 104.28 ±1.21 / 105.97 ms │     no change │
│ QQuery 12 │     335.13 / 344.21 ±7.58 / 353.57 ms │     357.33 / 363.56 ±3.59 / 367.08 ms │  1.06x slower │
│ QQuery 13 │    437.56 / 462.09 ±14.43 / 477.40 ms │    473.88 / 487.87 ±11.32 / 502.06 ms │  1.06x slower │
│ QQuery 14 │     342.90 / 345.86 ±3.06 / 351.40 ms │     342.32 / 345.20 ±3.46 / 351.93 ms │     no change │
│ QQuery 15 │     353.09 / 367.39 ±9.70 / 380.83 ms │    352.52 / 384.88 ±25.14 / 425.13 ms │     no change │
│ QQuery 16 │    707.24 / 724.88 ±18.74 / 758.49 ms │    729.02 / 754.48 ±21.13 / 786.91 ms │     no change │
│ QQuery 17 │     704.23 / 714.87 ±6.95 / 724.38 ms │    709.37 / 716.07 ±10.67 / 737.35 ms │     no change │
│ QQuery 18 │ 1414.44 / 1460.60 ±38.03 / 1500.67 ms │ 1353.39 / 1370.88 ±14.92 / 1389.45 ms │ +1.07x faster │
│ QQuery 19 │        35.89 / 37.80 ±1.34 / 39.62 ms │        36.15 / 38.37 ±1.56 / 40.70 ms │     no change │
│ QQuery 20 │    722.35 / 738.08 ±15.91 / 760.48 ms │    714.72 / 724.64 ±12.96 / 750.06 ms │     no change │
│ QQuery 21 │     763.72 / 771.27 ±6.62 / 782.24 ms │     763.48 / 767.59 ±2.47 / 770.14 ms │     no change │
│ QQuery 22 │ 1127.28 / 1139.68 ±10.54 / 1157.96 ms │  1134.25 / 1139.50 ±3.04 / 1142.69 ms │     no change │
│ QQuery 23 │ 3076.02 / 3092.91 ±15.85 / 3119.68 ms │ 3073.00 / 3098.16 ±20.75 / 3125.79 ms │     no change │
│ QQuery 24 │     101.16 / 103.57 ±1.81 / 106.57 ms │     102.06 / 103.67 ±1.35 / 105.84 ms │     no change │
│ QQuery 25 │     138.56 / 140.81 ±1.69 / 142.83 ms │     139.85 / 141.74 ±1.31 / 143.46 ms │     no change │
│ QQuery 26 │      97.49 / 100.72 ±2.15 / 104.26 ms │     101.50 / 101.99 ±0.47 / 102.61 ms │     no change │
│ QQuery 27 │     851.15 / 855.93 ±4.01 / 861.85 ms │     854.70 / 859.35 ±6.94 / 873.05 ms │     no change │
│ QQuery 28 │ 3263.90 / 3294.80 ±22.03 / 3332.00 ms │ 3268.76 / 3297.87 ±19.36 / 3320.81 ms │     no change │
│ QQuery 29 │        51.31 / 53.53 ±2.24 / 57.48 ms │        50.55 / 54.24 ±3.28 / 59.49 ms │     no change │
│ QQuery 30 │     363.62 / 365.34 ±2.37 / 370.02 ms │     359.79 / 366.40 ±3.99 / 371.21 ms │     no change │
│ QQuery 31 │     360.93 / 374.10 ±9.24 / 384.01 ms │    355.09 / 367.94 ±11.37 / 381.64 ms │     no change │
│ QQuery 32 │ 1153.30 / 1270.90 ±78.17 / 1389.80 ms │ 1026.60 / 1040.00 ±11.18 / 1056.42 ms │ +1.22x faster │
│ QQuery 33 │ 1449.13 / 1482.12 ±36.12 / 1552.56 ms │  1516.40 / 1529.34 ±8.41 / 1539.55 ms │     no change │
│ QQuery 34 │ 1452.56 / 1471.19 ±11.06 / 1482.55 ms │ 1509.49 / 1537.36 ±23.38 / 1575.10 ms │     no change │
│ QQuery 35 │     376.87 / 383.48 ±3.95 / 388.01 ms │    382.00 / 394.91 ±15.52 / 425.42 ms │     no change │
│ QQuery 36 │     109.88 / 116.61 ±4.60 / 121.99 ms │     113.70 / 119.00 ±4.09 / 125.32 ms │     no change │
│ QQuery 37 │        47.58 / 49.31 ±1.36 / 51.29 ms │        49.32 / 50.20 ±0.72 / 51.21 ms │     no change │
│ QQuery 38 │        74.52 / 76.16 ±2.11 / 80.01 ms │        74.92 / 77.04 ±1.38 / 79.12 ms │     no change │
│ QQuery 39 │     205.18 / 217.45 ±7.53 / 226.37 ms │    202.04 / 217.20 ±10.79 / 230.13 ms │     no change │
│ QQuery 40 │        23.55 / 25.40 ±1.67 / 27.37 ms │        22.61 / 25.72 ±1.83 / 27.87 ms │     no change │
│ QQuery 41 │        20.29 / 21.24 ±0.94 / 22.67 ms │        19.22 / 20.72 ±1.83 / 24.21 ms │     no change │
│ QQuery 42 │        19.78 / 20.15 ±0.21 / 20.41 ms │        19.54 / 20.00 ±0.24 / 20.17 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                        ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                        │ 22667.92ms │
│ Total Time (skip-duplicate-hash-probe)   │ 22549.70ms │
│ Average Time (HEAD)                      │   527.16ms │
│ Average Time (skip-duplicate-hash-probe) │   524.41ms │
│ Queries Faster                           │          3 │
│ Queries Slower                           │          2 │
│ Queries with No Change                   │         38 │
│ Queries with Failure                     │          0 │
└──────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 114.5s
Peak memory 39.3 GiB
Avg memory 30.3 GiB
CPU user 1067.8s
CPU sys 96.0s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 113.8s
Peak memory 40.1 GiB
Avg memory 32.6 GiB
CPU user 1078.6s
CPU sys 82.5s
Peak spill 0 B

File an issue against this benchmark runner

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

Labels

physical-expr Changes to the physical-expr crates physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants