Skip to content

perf : Optimize memory allocation hash join collision check#21412

Closed
coderfender wants to merge 6 commits intoapache:mainfrom
coderfender:optimize_mem_hash_join_arrow
Closed

perf : Optimize memory allocation hash join collision check#21412
coderfender wants to merge 6 commits intoapache:mainfrom
coderfender:optimize_mem_hash_join_arrow

Conversation

@coderfender
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • Closes #.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the physical-plan Changes to the physical-plan crate label Apr 6, 2026
@Dandandan
Copy link
Copy Markdown
Contributor

run benchmark tpch tpch10 tpcds

@adriangbot
Copy link
Copy Markdown

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

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

Comparing optimize_mem_hash_join_arrow (9c4cea8) to 3d2e6b2 (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-c4193634235-898-bl4rv 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

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

Comparing optimize_mem_hash_join_arrow (9c4cea8) to 3d2e6b2 (merge-base) diff using: tpch
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

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

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

Comparing optimize_mem_hash_join_arrow (9c4cea8) to 3d2e6b2 (merge-base) diff using: tpch10
Results will be posted here when complete


File an issue against this benchmark runner

@coderfender coderfender changed the title feat : Optimize memory allocation hash join collision check perf : Optimize memory allocation hash join collision check Apr 6, 2026
@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and optimize_mem_hash_join_arrow
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃                               HEAD ┃       optimize_mem_hash_join_arrow ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 1  │  368.07 / 371.41 ±2.41 / 374.45 ms │  366.89 / 367.96 ±0.82 / 369.03 ms │    no change │
│ QQuery 2  │  137.30 / 140.18 ±1.59 / 141.85 ms │  137.36 / 139.04 ±1.29 / 140.69 ms │    no change │
│ QQuery 3  │  289.90 / 294.66 ±4.52 / 302.62 ms │  290.41 / 296.55 ±4.81 / 302.66 ms │    no change │
│ QQuery 4  │  155.44 / 156.80 ±0.91 / 158.06 ms │  154.35 / 156.05 ±1.64 / 158.05 ms │    no change │
│ QQuery 5  │  428.42 / 441.97 ±8.78 / 453.97 ms │  440.56 / 444.42 ±2.98 / 448.12 ms │    no change │
│ QQuery 6  │  131.56 / 132.82 ±1.12 / 134.63 ms │  130.86 / 132.18 ±1.05 / 133.40 ms │    no change │
│ QQuery 7  │  561.44 / 569.30 ±7.49 / 582.40 ms │  596.94 / 609.78 ±8.99 / 620.88 ms │ 1.07x slower │
│ QQuery 8  │  474.26 / 481.20 ±7.09 / 492.17 ms │  472.45 / 479.17 ±3.86 / 482.53 ms │    no change │
│ QQuery 9  │  681.47 / 688.61 ±5.82 / 697.04 ms │  709.78 / 720.59 ±5.62 / 724.72 ms │    no change │
│ QQuery 10 │  330.76 / 340.42 ±7.39 / 350.31 ms │  332.67 / 343.18 ±9.39 / 360.71 ms │    no change │
│ QQuery 11 │  106.60 / 110.50 ±3.07 / 116.04 ms │  110.10 / 116.24 ±4.38 / 120.98 ms │ 1.05x slower │
│ QQuery 12 │  204.18 / 205.82 ±1.56 / 208.03 ms │  205.09 / 207.29 ±1.82 / 209.28 ms │    no change │
│ QQuery 13 │  312.35 / 321.39 ±6.57 / 332.12 ms │  331.75 / 347.38 ±9.38 / 358.86 ms │ 1.08x slower │
│ QQuery 14 │  180.92 / 182.91 ±1.28 / 184.88 ms │  182.21 / 185.15 ±2.02 / 187.83 ms │    no change │
│ QQuery 15 │  329.91 / 333.21 ±3.51 / 339.30 ms │  329.22 / 332.91 ±3.00 / 338.29 ms │    no change │
│ QQuery 16 │     85.08 / 88.46 ±2.14 / 91.54 ms │     86.04 / 89.97 ±2.10 / 92.21 ms │    no change │
│ QQuery 17 │  750.37 / 757.04 ±5.29 / 763.78 ms │  750.82 / 756.47 ±5.27 / 763.81 ms │    no change │
│ QQuery 18 │ 834.96 / 872.24 ±21.42 / 897.64 ms │ 912.03 / 932.82 ±25.32 / 981.99 ms │ 1.07x slower │
│ QQuery 19 │  266.27 / 272.22 ±5.25 / 280.62 ms │  265.84 / 268.64 ±5.29 / 279.21 ms │    no change │
│ QQuery 20 │  319.41 / 326.41 ±4.09 / 331.80 ms │ 327.19 / 335.73 ±12.52 / 360.59 ms │    no change │
│ QQuery 21 │ 843.06 / 854.73 ±10.59 / 868.67 ms │ 843.81 / 862.35 ±14.70 / 875.56 ms │    no change │
│ QQuery 22 │     79.88 / 82.66 ±1.67 / 85.12 ms │     84.20 / 86.11 ±1.25 / 87.88 ms │    no change │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                           ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                           │ 8024.97ms │
│ Total Time (optimize_mem_hash_join_arrow)   │ 8209.97ms │
│ Average Time (HEAD)                         │  364.77ms │
│ Average Time (optimize_mem_hash_join_arrow) │  373.18ms │
│ Queries Faster                              │         0 │
│ Queries Slower                              │         4 │
│ Queries with No Change                      │        18 │
│ Queries with Failure                        │         0 │
└─────────────────────────────────────────────┴───────────┘

Resource Usage

tpch10 — base (merge-base)

Metric Value
Wall time 40.5s
Peak memory 10.4 GiB
Avg memory 7.8 GiB
CPU user 426.3s
CPU sys 25.5s
Peak spill 0 B

tpch10 — branch

Metric Value
Wall time 41.4s
Peak memory 9.8 GiB
Avg memory 7.6 GiB
CPU user 434.5s
CPU sys 26.6s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and optimize_mem_hash_join_arrow
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                     HEAD ┃             optimize_mem_hash_join_arrow ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │              6.80 / 7.29 ±0.79 / 8.85 ms │              6.70 / 7.15 ±0.80 / 8.74 ms │     no change │
│ QQuery 2  │        148.23 / 148.87 ±0.64 / 149.82 ms │        153.75 / 155.80 ±1.32 / 157.84 ms │     no change │
│ QQuery 3  │        114.90 / 115.87 ±0.89 / 117.38 ms │        113.84 / 114.26 ±0.27 / 114.62 ms │     no change │
│ QQuery 4  │    1368.03 / 1401.66 ±23.18 / 1423.01 ms │    1417.81 / 1453.07 ±24.10 / 1492.53 ms │     no change │
│ QQuery 5  │        172.60 / 174.16 ±1.08 / 175.66 ms │        172.03 / 174.39 ±2.12 / 178.38 ms │     no change │
│ QQuery 6  │    1026.67 / 1041.88 ±13.76 / 1067.71 ms │    1041.99 / 1071.53 ±28.96 / 1126.41 ms │     no change │
│ QQuery 7  │        353.12 / 356.11 ±3.19 / 362.06 ms │        353.84 / 358.14 ±2.25 / 360.16 ms │     no change │
│ QQuery 8  │        115.91 / 116.99 ±0.87 / 118.43 ms │        116.06 / 116.59 ±0.57 / 117.58 ms │     no change │
│ QQuery 9  │       102.26 / 110.28 ±10.78 / 131.32 ms │        101.69 / 106.15 ±2.42 / 108.41 ms │     no change │
│ QQuery 10 │        109.14 / 110.54 ±1.24 / 112.18 ms │        108.32 / 109.48 ±1.34 / 111.83 ms │     no change │
│ QQuery 11 │       966.39 / 981.43 ±14.09 / 997.93 ms │     1030.86 / 1046.42 ±8.60 / 1054.83 ms │  1.07x slower │
│ QQuery 12 │           46.62 / 48.05 ±1.82 / 51.57 ms │           44.06 / 46.12 ±1.56 / 47.96 ms │     no change │
│ QQuery 13 │        406.36 / 411.49 ±5.75 / 422.68 ms │        401.32 / 405.07 ±2.63 / 408.03 ms │     no change │
│ QQuery 14 │     1027.21 / 1035.12 ±6.27 / 1041.97 ms │     1054.50 / 1062.10 ±7.05 / 1072.69 ms │     no change │
│ QQuery 15 │           17.11 / 17.74 ±0.75 / 19.20 ms │           16.01 / 17.03 ±0.88 / 18.29 ms │     no change │
│ QQuery 16 │              7.35 / 8.42 ±0.73 / 9.47 ms │              7.31 / 8.02 ±0.92 / 9.83 ms │     no change │
│ QQuery 17 │        242.20 / 244.06 ±2.62 / 249.16 ms │        241.21 / 243.51 ±2.14 / 246.82 ms │     no change │
│ QQuery 18 │        130.27 / 131.13 ±0.67 / 131.92 ms │        128.48 / 131.02 ±2.24 / 134.79 ms │     no change │
│ QQuery 19 │        155.91 / 157.78 ±1.14 / 159.28 ms │        154.90 / 156.39 ±1.70 / 159.56 ms │     no change │
│ QQuery 20 │           14.74 / 15.15 ±0.38 / 15.80 ms │           13.78 / 14.21 ±0.38 / 14.81 ms │ +1.07x faster │
│ QQuery 21 │           19.85 / 20.43 ±0.37 / 20.99 ms │           20.00 / 20.27 ±0.29 / 20.82 ms │     no change │
│ QQuery 22 │        495.58 / 498.78 ±3.60 / 504.58 ms │        495.21 / 497.55 ±2.16 / 500.81 ms │     no change │
│ QQuery 23 │        912.43 / 926.99 ±9.94 / 938.01 ms │       920.58 / 930.57 ±11.42 / 949.20 ms │     no change │
│ QQuery 24 │        395.22 / 401.59 ±3.86 / 405.07 ms │        396.57 / 400.80 ±2.87 / 404.74 ms │     no change │
│ QQuery 25 │        352.50 / 354.81 ±1.90 / 357.98 ms │        351.96 / 356.05 ±2.62 / 358.60 ms │     no change │
│ QQuery 26 │           81.99 / 83.78 ±0.94 / 84.68 ms │           81.04 / 83.62 ±1.52 / 85.34 ms │     no change │
│ QQuery 27 │              7.05 / 7.35 ±0.28 / 7.85 ms │              6.91 / 7.18 ±0.24 / 7.54 ms │     no change │
│ QQuery 28 │        149.32 / 151.06 ±1.31 / 153.38 ms │        148.68 / 149.44 ±0.66 / 150.52 ms │     no change │
│ QQuery 29 │        295.99 / 299.11 ±3.40 / 305.58 ms │        295.17 / 299.74 ±3.84 / 306.53 ms │     no change │
│ QQuery 30 │           44.55 / 45.53 ±0.72 / 46.29 ms │           44.32 / 45.08 ±0.42 / 45.58 ms │     no change │
│ QQuery 31 │        170.82 / 175.33 ±3.56 / 181.74 ms │        170.00 / 171.78 ±1.50 / 173.57 ms │     no change │
│ QQuery 32 │           57.64 / 58.70 ±1.04 / 60.65 ms │           56.99 / 58.74 ±1.38 / 60.34 ms │     no change │
│ QQuery 33 │        140.87 / 142.86 ±1.49 / 145.01 ms │        141.02 / 143.28 ±2.23 / 146.77 ms │     no change │
│ QQuery 34 │              7.15 / 7.52 ±0.26 / 7.89 ms │              6.84 / 7.13 ±0.30 / 7.67 ms │ +1.06x faster │
│ QQuery 35 │        107.10 / 109.72 ±1.53 / 111.80 ms │        110.76 / 111.64 ±1.01 / 113.62 ms │     no change │
│ QQuery 36 │              6.70 / 6.90 ±0.14 / 7.12 ms │              6.78 / 7.19 ±0.33 / 7.60 ms │     no change │
│ QQuery 37 │              8.29 / 8.76 ±0.36 / 9.24 ms │              8.45 / 8.71 ±0.21 / 9.06 ms │     no change │
│ QQuery 38 │           85.85 / 89.29 ±2.89 / 93.87 ms │          87.23 / 93.30 ±4.87 / 102.06 ms │     no change │
│ QQuery 39 │        129.69 / 130.42 ±0.87 / 131.88 ms │        124.85 / 129.50 ±2.83 / 132.98 ms │     no change │
│ QQuery 40 │        111.75 / 121.17 ±5.75 / 129.56 ms │        109.79 / 118.15 ±8.52 / 133.65 ms │     no change │
│ QQuery 41 │           14.97 / 15.72 ±0.72 / 16.82 ms │           15.50 / 16.11 ±0.69 / 17.16 ms │     no change │
│ QQuery 42 │        109.44 / 110.43 ±1.11 / 112.09 ms │        107.53 / 109.21 ±0.93 / 110.29 ms │     no change │
│ QQuery 43 │              6.03 / 6.28 ±0.26 / 6.62 ms │              6.05 / 6.32 ±0.25 / 6.69 ms │     no change │
│ QQuery 44 │           11.51 / 11.95 ±0.37 / 12.55 ms │           11.65 / 12.12 ±0.64 / 13.39 ms │     no change │
│ QQuery 45 │           53.87 / 54.97 ±1.12 / 57.05 ms │           51.03 / 53.84 ±1.83 / 56.77 ms │     no change │
│ QQuery 46 │              8.58 / 8.91 ±0.25 / 9.25 ms │              8.37 / 8.66 ±0.27 / 9.17 ms │     no change │
│ QQuery 47 │        739.79 / 742.96 ±1.87 / 745.62 ms │        755.61 / 760.60 ±6.58 / 773.48 ms │     no change │
│ QQuery 48 │        288.95 / 294.73 ±4.30 / 300.16 ms │        286.25 / 288.66 ±3.03 / 294.06 ms │     no change │
│ QQuery 49 │        260.04 / 262.11 ±2.34 / 266.61 ms │        256.21 / 257.29 ±0.90 / 258.40 ms │     no change │
│ QQuery 50 │        230.05 / 235.12 ±4.12 / 242.02 ms │        230.68 / 239.55 ±5.59 / 247.69 ms │     no change │
│ QQuery 51 │        183.92 / 187.51 ±2.59 / 190.05 ms │        183.90 / 187.06 ±2.63 / 190.10 ms │     no change │
│ QQuery 52 │        108.27 / 109.87 ±1.80 / 113.12 ms │        106.90 / 108.97 ±1.92 / 112.12 ms │     no change │
│ QQuery 53 │        103.54 / 103.99 ±0.49 / 104.60 ms │        102.01 / 102.75 ±0.88 / 104.44 ms │     no change │
│ QQuery 54 │        146.23 / 148.74 ±1.69 / 151.05 ms │        145.48 / 147.64 ±1.26 / 149.35 ms │     no change │
│ QQuery 55 │        107.85 / 109.84 ±1.90 / 112.62 ms │        105.69 / 106.83 ±0.77 / 108.10 ms │     no change │
│ QQuery 56 │        140.99 / 142.79 ±1.19 / 144.10 ms │        140.99 / 142.51 ±0.94 / 143.82 ms │     no change │
│ QQuery 57 │        175.93 / 178.14 ±1.18 / 179.37 ms │        181.49 / 184.30 ±1.71 / 186.72 ms │     no change │
│ QQuery 58 │        296.37 / 307.55 ±6.05 / 313.79 ms │        295.60 / 300.42 ±3.64 / 305.63 ms │     no change │
│ QQuery 59 │        201.79 / 204.00 ±1.70 / 207.04 ms │        208.90 / 211.69 ±1.95 / 214.24 ms │     no change │
│ QQuery 60 │        145.51 / 148.06 ±1.78 / 150.84 ms │        142.60 / 143.92 ±1.12 / 145.30 ms │     no change │
│ QQuery 61 │           13.07 / 13.33 ±0.25 / 13.64 ms │           12.90 / 13.22 ±0.34 / 13.87 ms │     no change │
│ QQuery 62 │       910.34 / 938.11 ±21.29 / 975.92 ms │      941.36 / 974.98 ±39.81 / 1051.74 ms │     no change │
│ QQuery 63 │        107.05 / 108.38 ±1.78 / 111.85 ms │        103.34 / 106.51 ±3.45 / 113.12 ms │     no change │
│ QQuery 64 │        711.87 / 717.12 ±4.84 / 725.32 ms │        703.93 / 710.80 ±5.52 / 719.17 ms │     no change │
│ QQuery 65 │        261.76 / 269.25 ±3.80 / 271.70 ms │        257.04 / 259.91 ±1.76 / 261.70 ms │     no change │
│ QQuery 66 │       248.63 / 261.73 ±11.29 / 277.02 ms │        254.41 / 259.65 ±4.79 / 267.74 ms │     no change │
│ QQuery 67 │        317.29 / 323.70 ±5.53 / 333.28 ms │        316.59 / 324.76 ±6.89 / 335.95 ms │     no change │
│ QQuery 68 │            9.43 / 10.53 ±1.00 / 12.09 ms │            8.70 / 10.37 ±1.24 / 11.68 ms │     no change │
│ QQuery 69 │        103.05 / 106.03 ±2.94 / 110.30 ms │        102.43 / 104.52 ±1.29 / 106.35 ms │     no change │
│ QQuery 70 │       330.68 / 346.69 ±13.87 / 370.16 ms │        366.27 / 381.96 ±8.27 / 389.47 ms │  1.10x slower │
│ QQuery 71 │        134.10 / 135.86 ±1.21 / 137.24 ms │        131.97 / 136.28 ±3.38 / 141.71 ms │     no change │
│ QQuery 72 │        710.70 / 729.10 ±9.81 / 736.87 ms │        713.48 / 725.84 ±9.36 / 738.13 ms │     no change │
│ QQuery 73 │              7.14 / 7.69 ±0.71 / 9.01 ms │             6.82 / 8.73 ±1.49 / 11.24 ms │  1.14x slower │
│ QQuery 74 │        622.12 / 628.45 ±4.98 / 634.91 ms │        659.92 / 664.36 ±3.17 / 669.25 ms │  1.06x slower │
│ QQuery 75 │        279.04 / 282.44 ±2.36 / 286.44 ms │        278.68 / 280.93 ±1.63 / 282.91 ms │     no change │
│ QQuery 76 │        135.21 / 137.06 ±1.35 / 138.92 ms │        132.30 / 134.02 ±1.17 / 135.78 ms │     no change │
│ QQuery 77 │        190.11 / 192.35 ±2.38 / 196.75 ms │        186.18 / 188.80 ±2.31 / 192.24 ms │     no change │
│ QQuery 78 │        353.88 / 359.13 ±3.55 / 363.97 ms │        353.59 / 359.86 ±4.38 / 365.19 ms │     no change │
│ QQuery 79 │        237.91 / 239.26 ±1.77 / 242.57 ms │        233.11 / 239.06 ±3.51 / 242.90 ms │     no change │
│ QQuery 80 │        327.97 / 331.37 ±2.53 / 335.81 ms │        328.07 / 331.81 ±2.46 / 335.22 ms │     no change │
│ QQuery 81 │           26.92 / 27.87 ±0.70 / 29.05 ms │           26.95 / 27.99 ±1.19 / 29.75 ms │     no change │
│ QQuery 82 │        200.74 / 203.83 ±1.83 / 206.00 ms │        196.36 / 199.55 ±3.47 / 205.85 ms │     no change │
│ QQuery 83 │           39.80 / 41.77 ±1.38 / 43.57 ms │           39.76 / 41.60 ±1.09 / 42.96 ms │     no change │
│ QQuery 84 │           48.78 / 50.46 ±1.24 / 51.60 ms │           48.47 / 49.33 ±0.73 / 50.30 ms │     no change │
│ QQuery 85 │        149.56 / 151.04 ±1.14 / 152.58 ms │        148.17 / 152.05 ±2.83 / 155.84 ms │     no change │
│ QQuery 86 │           38.72 / 39.95 ±0.64 / 40.54 ms │           40.13 / 40.77 ±0.59 / 41.52 ms │     no change │
│ QQuery 87 │           87.37 / 90.95 ±2.85 / 95.47 ms │           89.17 / 93.98 ±3.23 / 97.91 ms │     no change │
│ QQuery 88 │        100.85 / 102.10 ±0.84 / 102.87 ms │        101.27 / 102.85 ±1.27 / 104.14 ms │     no change │
│ QQuery 89 │        120.68 / 121.31 ±0.46 / 122.03 ms │        120.23 / 120.98 ±0.54 / 121.61 ms │     no change │
│ QQuery 90 │           24.18 / 24.72 ±0.42 / 25.38 ms │           23.79 / 24.21 ±0.26 / 24.51 ms │     no change │
│ QQuery 91 │           64.44 / 65.32 ±1.61 / 68.53 ms │           63.94 / 65.43 ±1.68 / 68.63 ms │     no change │
│ QQuery 92 │           58.66 / 59.60 ±1.08 / 61.62 ms │           56.93 / 57.90 ±0.62 / 58.76 ms │     no change │
│ QQuery 93 │        194.56 / 197.34 ±2.75 / 201.79 ms │        193.29 / 196.95 ±2.75 / 201.43 ms │     no change │
│ QQuery 94 │           61.79 / 62.28 ±0.53 / 63.16 ms │           61.01 / 61.75 ±0.55 / 62.31 ms │     no change │
│ QQuery 95 │        135.36 / 137.38 ±1.38 / 139.03 ms │        135.55 / 137.17 ±0.95 / 138.20 ms │     no change │
│ QQuery 96 │           74.97 / 75.42 ±0.33 / 75.92 ms │           73.84 / 75.87 ±1.49 / 77.95 ms │     no change │
│ QQuery 97 │        131.89 / 134.54 ±1.61 / 136.74 ms │        135.04 / 136.84 ±1.31 / 138.40 ms │     no change │
│ QQuery 98 │        155.55 / 158.07 ±1.75 / 160.60 ms │        154.26 / 156.77 ±2.10 / 159.29 ms │     no change │
│ QQuery 99 │ 10822.25 / 10857.02 ±32.89 / 10909.18 ms │ 10854.74 / 10883.81 ±24.91 / 10930.10 ms │     no change │
└───────────┴──────────────────────────────────────────┴──────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                           ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                           │ 32396.33ms │
│ Total Time (optimize_mem_hash_join_arrow)   │ 32666.83ms │
│ Average Time (HEAD)                         │   327.24ms │
│ Average Time (optimize_mem_hash_join_arrow) │   329.97ms │
│ Queries Faster                              │          2 │
│ Queries Slower                              │          4 │
│ Queries with No Change                      │         93 │
│ Queries with Failure                        │          0 │
└─────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 162.3s
Peak memory 5.2 GiB
Avg memory 4.4 GiB
CPU user 265.9s
CPU sys 17.2s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 163.6s
Peak memory 5.3 GiB
Avg memory 4.5 GiB
CPU user 269.8s
CPU sys 16.9s
Peak spill 0 B

File an issue against this benchmark runner

@coderfender
Copy link
Copy Markdown
Contributor Author

investigating why there is slowness (results on my machine showed ~ 10 % speed with Q3)

@coderfender
Copy link
Copy Markdown
Contributor Author

Seems like SIMD comparison over continuous memory is better than custom row-by-row comparison (although the latter consumes less memory)

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

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants