Skip to content

perf: strength reduce hash partition modulo (up to 1.16x faster)#21900

Open
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:perf-strength-reduce-hash-partition
Open

perf: strength reduce hash partition modulo (up to 1.16x faster)#21900
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:perf-strength-reduce-hash-partition

Conversation

@Dandandan
Copy link
Copy Markdown
Contributor

@Dandandan Dandandan commented Apr 28, 2026

Which issue does this PR close?

Rationale for this change

Performance improvement on large hash-repartitions.

TPC-H at bigger scale factor shows biggest benefit:

Details
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                               HEAD ┃ perf-strength-reduce-hash-partition ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │  327.64 / 329.66 ±1.44 / 331.84 ms │   327.82 / 330.00 ±1.68 / 331.48 ms │     no change │
│ QQuery 2  │  131.35 / 138.32 ±3.91 / 143.24 ms │   125.94 / 126.49 ±0.61 / 127.42 ms │ +1.09x faster │
│ QQuery 3  │  286.47 / 300.24 ±8.19 / 308.99 ms │   273.76 / 276.01 ±1.80 / 277.98 ms │ +1.09x faster │
│ QQuery 4  │  158.30 / 160.81 ±2.21 / 163.54 ms │   137.56 / 138.79 ±0.98 / 139.80 ms │ +1.16x faster │
│ QQuery 5  │  428.90 / 437.68 ±4.45 / 440.83 ms │   390.52 / 396.51 ±4.30 / 403.67 ms │ +1.10x faster │
│ QQuery 6  │  131.88 / 132.83 ±1.17 / 134.81 ms │   133.06 / 134.70 ±1.22 / 135.83 ms │     no change │
│ QQuery 7  │  541.09 / 545.88 ±4.21 / 552.67 ms │  508.51 / 531.75 ±16.82 / 548.21 ms │     no change │
│ QQuery 8  │  467.86 / 476.44 ±6.95 / 483.87 ms │   427.19 / 439.03 ±9.88 / 453.56 ms │ +1.09x faster │
│ QQuery 9  │ 649.16 / 660.07 ±10.12 / 676.72 ms │   605.25 / 611.87 ±5.72 / 620.70 ms │ +1.08x faster │
│ QQuery 10 │  327.64 / 339.90 ±6.92 / 348.85 ms │   321.66 / 330.67 ±4.76 / 334.89 ms │     no change │
│ QQuery 11 │  104.93 / 107.54 ±1.71 / 110.18 ms │   92.80 / 101.35 ±12.27 / 125.63 ms │ +1.06x faster │
│ QQuery 12 │  198.96 / 202.37 ±2.45 / 206.21 ms │   195.07 / 197.77 ±4.26 / 206.26 ms │     no change │
│ QQuery 13 │  300.44 / 312.37 ±6.87 / 321.90 ms │  291.85 / 308.47 ±10.23 / 317.55 ms │     no change │
│ QQuery 14 │  188.06 / 193.71 ±4.81 / 200.69 ms │   182.89 / 186.72 ±3.67 / 192.75 ms │     no change │
│ QQuery 15 │  334.88 / 339.95 ±5.81 / 350.78 ms │   330.79 / 336.21 ±4.31 / 342.71 ms │     no change │
│ QQuery 16 │     78.38 / 81.25 ±2.51 / 84.55 ms │      74.35 / 76.61 ±2.80 / 81.94 ms │ +1.06x faster │
│ QQuery 17 │ 744.08 / 761.70 ±12.84 / 781.69 ms │  703.40 / 724.66 ±23.35 / 770.05 ms │     no change │
│ QQuery 18 │ 760.17 / 782.23 ±12.12 / 796.85 ms │  725.45 / 744.71 ±15.59 / 765.59 ms │     no change │
│ QQuery 19 │ 267.90 / 280.99 ±14.61 / 306.80 ms │  275.58 / 298.23 ±27.69 / 351.75 ms │  1.06x slower │
│ QQuery 20 │ 311.46 / 323.12 ±10.13 / 341.26 ms │   312.13 / 319.42 ±4.39 / 324.46 ms │     no change │
│ QQuery 21 │ 816.40 / 837.33 ±19.78 / 870.18 ms │   766.23 / 778.58 ±8.98 / 792.31 ms │ +1.08x faster │
│ QQuery 22 │     81.46 / 84.94 ±2.58 / 88.20 ms │      75.31 / 77.73 ±1.39 / 79.55 ms │ +1.09x faster │
└───────────┴────────────────────────────────────┴─────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 7829.34ms │
│ Total Time (perf-strength-reduce-hash-partition)   │ 7466.29ms │
│ Average Time (HEAD)                                │  355.88ms │
│ Average Time (perf-strength-reduce-hash-partition) │  339.38ms │
│ Queries Faster                                     │        10 │
│ Queries Slower                                     │         1 │
│ Queries with No Change                             │        11 │
│ Queries with Failure                               │         0 │
└────────────────────────────────────────────────────┴───────────┘

What changes are included in this PR?

Use strength-reduce to speed up hash % partition

Are these changes tested?

Existing tests

-## Are there any user-facing changes?

No.

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

run benchmarks

1 similar comment
@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmarks

@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmark tpch10

@adriangbot
Copy link
Copy Markdown

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

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

Comparing perf-strength-reduce-hash-partition (b0091c6) to 65f337d (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-c4338749432-1876-qzs7f 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

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

Comparing perf-strength-reduce-hash-partition (b0091c6) to 65f337d (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-c4338749432-1877-kzqzk 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

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

Comparing perf-strength-reduce-hash-partition (b0091c6) to 65f337d (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-c4338764222-1879-9x8g9 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

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

Comparing perf-strength-reduce-hash-partition (b0091c6) to 65f337d (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-c4338764222-1880-7vjkj 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

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

Comparing perf-strength-reduce-hash-partition (b0091c6) to 65f337d (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-c4338764222-1881-kqfh9 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

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

Comparing perf-strength-reduce-hash-partition (b0091c6) to 65f337d (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 completed (GKE) | trigger

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

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

Comparing HEAD and perf-strength-reduce-hash-partition
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃ perf-strength-reduce-hash-partition ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 40.64 / 41.83 ±1.35 / 43.54 ms │      40.56 / 41.44 ±0.96 / 43.27 ms │     no change │
│ QQuery 2  │ 20.89 / 21.14 ±0.14 / 21.32 ms │      21.05 / 21.35 ±0.21 / 21.69 ms │     no change │
│ QQuery 3  │ 37.89 / 39.86 ±1.28 / 41.59 ms │      36.72 / 38.25 ±1.17 / 39.48 ms │     no change │
│ QQuery 4  │ 18.37 / 18.86 ±0.56 / 19.89 ms │      18.53 / 19.00 ±0.53 / 20.01 ms │     no change │
│ QQuery 5  │ 49.28 / 51.76 ±1.46 / 53.79 ms │      44.11 / 46.32 ±1.29 / 47.71 ms │ +1.12x faster │
│ QQuery 6  │ 17.13 / 17.33 ±0.11 / 17.44 ms │      17.43 / 18.02 ±0.63 / 19.25 ms │     no change │
│ QQuery 7  │ 54.18 / 56.84 ±2.45 / 60.69 ms │      51.53 / 53.42 ±1.46 / 55.52 ms │ +1.06x faster │
│ QQuery 8  │ 48.08 / 48.44 ±0.23 / 48.72 ms │      47.34 / 48.06 ±0.70 / 49.19 ms │     no change │
│ QQuery 9  │ 53.33 / 54.47 ±0.66 / 55.12 ms │      52.22 / 52.46 ±0.18 / 52.67 ms │     no change │
│ QQuery 10 │ 65.82 / 67.42 ±1.32 / 69.69 ms │      66.21 / 67.29 ±1.26 / 68.88 ms │     no change │
│ QQuery 11 │ 14.35 / 14.44 ±0.09 / 14.55 ms │      14.20 / 14.63 ±0.28 / 14.96 ms │     no change │
│ QQuery 12 │ 27.46 / 27.80 ±0.43 / 28.65 ms │      26.68 / 27.30 ±0.92 / 29.12 ms │     no change │
│ QQuery 13 │ 38.07 / 39.02 ±0.86 / 40.62 ms │      35.58 / 36.44 ±0.57 / 37.31 ms │ +1.07x faster │
│ QQuery 14 │ 27.87 / 28.14 ±0.29 / 28.70 ms │      27.07 / 27.37 ±0.31 / 27.97 ms │     no change │
│ QQuery 15 │ 33.61 / 34.11 ±0.67 / 35.42 ms │      33.99 / 34.33 ±0.51 / 35.35 ms │     no change │
│ QQuery 16 │ 15.38 / 15.70 ±0.43 / 16.56 ms │      15.39 / 15.52 ±0.13 / 15.78 ms │     no change │
│ QQuery 17 │ 79.25 / 80.58 ±0.95 / 82.02 ms │      78.36 / 79.06 ±0.67 / 80.18 ms │     no change │
│ QQuery 18 │ 75.87 / 76.76 ±0.64 / 77.61 ms │      69.57 / 70.15 ±0.59 / 71.09 ms │ +1.09x faster │
│ QQuery 19 │ 37.59 / 37.92 ±0.18 / 38.14 ms │      38.09 / 38.65 ±0.50 / 39.37 ms │     no change │
│ QQuery 20 │ 39.66 / 41.60 ±2.98 / 47.42 ms │      39.38 / 39.60 ±0.21 / 40.01 ms │     no change │
│ QQuery 21 │ 65.16 / 66.87 ±1.05 / 68.00 ms │      61.41 / 62.27 ±0.74 / 63.23 ms │ +1.07x faster │
│ QQuery 22 │ 17.23 / 17.74 ±0.44 / 18.49 ms │      17.40 / 17.47 ±0.08 / 17.62 ms │     no change │
└───────────┴────────────────────────────────┴─────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 898.64ms │
│ Total Time (perf-strength-reduce-hash-partition)   │ 868.39ms │
│ Average Time (HEAD)                                │  40.85ms │
│ Average Time (perf-strength-reduce-hash-partition) │  39.47ms │
│ Queries Faster                                     │        5 │
│ Queries Slower                                     │        0 │
│ Queries with No Change                             │       17 │
│ Queries with Failure                               │        0 │
└────────────────────────────────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

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

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 5.2 GiB
Avg memory 4.8 GiB
CPU user 32.8s
CPU sys 2.6s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and perf-strength-reduce-hash-partition
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃ perf-strength-reduce-hash-partition ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 40.38 / 41.37 ±1.48 / 44.26 ms │      40.24 / 41.14 ±1.45 / 44.02 ms │     no change │
│ QQuery 2  │ 20.81 / 21.41 ±0.55 / 22.41 ms │      21.02 / 21.48 ±0.60 / 22.65 ms │     no change │
│ QQuery 3  │ 38.37 / 39.02 ±0.86 / 40.71 ms │      36.31 / 37.72 ±1.94 / 41.53 ms │     no change │
│ QQuery 4  │ 18.32 / 18.55 ±0.29 / 19.12 ms │      18.54 / 18.76 ±0.26 / 19.24 ms │     no change │
│ QQuery 5  │ 47.55 / 50.49 ±2.40 / 54.24 ms │      44.18 / 46.39 ±1.18 / 47.62 ms │ +1.09x faster │
│ QQuery 6  │ 17.05 / 17.28 ±0.12 / 17.40 ms │      17.47 / 17.60 ±0.16 / 17.91 ms │     no change │
│ QQuery 7  │ 54.05 / 56.89 ±2.17 / 59.44 ms │      49.87 / 51.07 ±1.12 / 53.03 ms │ +1.11x faster │
│ QQuery 8  │ 47.86 / 48.71 ±0.85 / 50.06 ms │      46.89 / 47.50 ±0.35 / 47.94 ms │     no change │
│ QQuery 9  │ 53.14 / 54.17 ±0.92 / 55.37 ms │      51.77 / 53.27 ±1.20 / 55.25 ms │     no change │
│ QQuery 10 │ 65.36 / 66.00 ±0.77 / 67.14 ms │      65.42 / 65.90 ±0.26 / 66.11 ms │     no change │
│ QQuery 11 │ 13.83 / 14.15 ±0.29 / 14.62 ms │      14.26 / 14.69 ±0.60 / 15.86 ms │     no change │
│ QQuery 12 │ 27.27 / 27.55 ±0.22 / 27.93 ms │      26.75 / 26.95 ±0.17 / 27.14 ms │     no change │
│ QQuery 13 │ 37.24 / 37.89 ±0.43 / 38.23 ms │      35.56 / 36.10 ±0.32 / 36.50 ms │     no change │
│ QQuery 14 │ 27.66 / 28.15 ±0.44 / 28.97 ms │      27.02 / 27.13 ±0.13 / 27.38 ms │     no change │
│ QQuery 15 │ 33.39 / 33.84 ±0.43 / 34.62 ms │      33.75 / 34.52 ±0.81 / 35.85 ms │     no change │
│ QQuery 16 │ 15.20 / 15.38 ±0.13 / 15.59 ms │      15.30 / 15.44 ±0.14 / 15.71 ms │     no change │
│ QQuery 17 │ 78.12 / 78.42 ±0.18 / 78.62 ms │      77.08 / 77.62 ±0.61 / 78.76 ms │     no change │
│ QQuery 18 │ 74.61 / 75.35 ±0.55 / 76.03 ms │      69.09 / 69.77 ±0.57 / 70.82 ms │ +1.08x faster │
│ QQuery 19 │ 37.53 / 37.76 ±0.26 / 38.15 ms │      37.56 / 37.99 ±0.29 / 38.28 ms │     no change │
│ QQuery 20 │ 39.11 / 39.57 ±0.36 / 40.10 ms │      39.27 / 39.59 ±0.25 / 40.01 ms │     no change │
│ QQuery 21 │ 63.36 / 64.88 ±1.26 / 66.30 ms │      61.21 / 62.30 ±0.97 / 64.10 ms │     no change │
│ QQuery 22 │ 17.12 / 17.42 ±0.24 / 17.78 ms │      16.96 / 17.24 ±0.15 / 17.42 ms │     no change │
└───────────┴────────────────────────────────┴─────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 884.24ms │
│ Total Time (perf-strength-reduce-hash-partition)   │ 860.18ms │
│ Average Time (HEAD)                                │  40.19ms │
│ Average Time (perf-strength-reduce-hash-partition) │  39.10ms │
│ Queries Faster                                     │        3 │
│ Queries Slower                                     │        0 │
│ Queries with No Change                             │       19 │
│ Queries with Failure                               │        0 │
└────────────────────────────────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 5.2 GiB
Avg memory 4.8 GiB
CPU user 33.5s
CPU sys 2.4s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 5.2 GiB
Avg memory 4.8 GiB
CPU user 32.6s
CPU sys 2.4s
Peak spill 0 B

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-c4338764766-1882-b8hbm 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

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

Comparing perf-strength-reduce-hash-partition (b0091c6) to 65f337d (merge-base) diff using: tpch10
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and perf-strength-reduce-hash-partition
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                   HEAD ┃   perf-strength-reduce-hash-partition ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │           1.15 / 4.55 ±6.70 / 17.96 ms │          1.24 / 4.86 ±7.04 / 18.94 ms │  1.07x slower │
│ QQuery 1  │         12.68 / 13.11 ±0.22 / 13.27 ms │        13.05 / 13.62 ±0.34 / 14.08 ms │     no change │
│ QQuery 2  │         37.29 / 37.71 ±0.39 / 38.31 ms │        38.30 / 39.06 ±0.43 / 39.58 ms │     no change │
│ QQuery 3  │         31.08 / 32.03 ±1.15 / 34.30 ms │        33.36 / 33.55 ±0.16 / 33.74 ms │     no change │
│ QQuery 4  │      257.53 / 261.21 ±3.00 / 264.64 ms │     260.08 / 267.18 ±5.40 / 275.48 ms │     no change │
│ QQuery 5  │      282.36 / 286.00 ±3.16 / 291.76 ms │    279.94 / 294.39 ±12.13 / 309.15 ms │     no change │
│ QQuery 6  │            6.55 / 7.05 ±0.33 / 7.52 ms │           6.09 / 6.82 ±0.59 / 7.85 ms │     no change │
│ QQuery 7  │         14.01 / 14.12 ±0.09 / 14.23 ms │        14.21 / 14.26 ±0.07 / 14.39 ms │     no change │
│ QQuery 8  │      328.87 / 330.47 ±1.29 / 331.98 ms │     320.20 / 333.42 ±8.38 / 343.99 ms │     no change │
│ QQuery 9  │      444.36 / 448.71 ±3.95 / 455.52 ms │     448.31 / 458.25 ±8.85 / 474.62 ms │     no change │
│ QQuery 10 │         73.91 / 75.83 ±1.91 / 79.20 ms │        73.31 / 76.45 ±4.22 / 84.72 ms │     no change │
│ QQuery 11 │         85.90 / 86.36 ±0.52 / 87.34 ms │        85.49 / 87.38 ±2.55 / 92.41 ms │     no change │
│ QQuery 12 │      273.77 / 284.16 ±6.75 / 293.52 ms │     272.95 / 277.34 ±3.91 / 282.70 ms │     no change │
│ QQuery 13 │      414.87 / 425.52 ±7.96 / 435.77 ms │    421.90 / 435.66 ±15.66 / 455.41 ms │     no change │
│ QQuery 14 │      307.62 / 313.79 ±6.51 / 326.01 ms │     314.56 / 318.87 ±3.29 / 323.41 ms │     no change │
│ QQuery 15 │      324.29 / 329.99 ±4.41 / 335.68 ms │    284.29 / 296.49 ±11.23 / 317.57 ms │ +1.11x faster │
│ QQuery 16 │     628.47 / 645.70 ±21.55 / 687.42 ms │    609.43 / 623.27 ±10.11 / 641.00 ms │     no change │
│ QQuery 17 │      619.90 / 629.71 ±6.49 / 637.56 ms │     611.73 / 619.24 ±6.76 / 631.23 ms │     no change │
│ QQuery 18 │  1251.55 / 1354.64 ±73.10 / 1455.17 ms │ 1218.37 / 1291.83 ±53.71 / 1364.85 ms │     no change │
│ QQuery 19 │         30.51 / 31.12 ±0.53 / 31.93 ms │       30.40 / 44.58 ±25.69 / 95.82 ms │  1.43x slower │
│ QQuery 20 │     523.29 / 535.66 ±10.14 / 551.36 ms │     529.89 / 539.76 ±6.72 / 549.70 ms │     no change │
│ QQuery 21 │      596.38 / 599.46 ±2.91 / 604.75 ms │     599.98 / 606.79 ±7.07 / 617.30 ms │     no change │
│ QQuery 22 │   1058.93 / 1068.59 ±8.14 / 1082.65 ms │  1071.60 / 1075.88 ±4.52 / 1084.33 ms │     no change │
│ QQuery 23 │ 3338.81 / 3481.74 ±114.35 / 3651.47 ms │ 3346.62 / 3432.22 ±79.64 / 3545.01 ms │     no change │
│ QQuery 24 │        43.98 / 53.08 ±10.12 / 68.40 ms │        42.04 / 42.74 ±0.58 / 43.65 ms │ +1.24x faster │
│ QQuery 25 │      118.02 / 119.56 ±1.05 / 120.94 ms │     114.08 / 116.42 ±3.03 / 122.27 ms │     no change │
│ QQuery 26 │         44.45 / 46.87 ±3.40 / 53.46 ms │        42.47 / 44.96 ±2.76 / 49.04 ms │     no change │
│ QQuery 27 │      673.33 / 686.99 ±8.94 / 697.29 ms │     671.25 / 680.10 ±7.26 / 689.38 ms │     no change │
│ QQuery 28 │  2990.11 / 3039.60 ±46.03 / 3124.08 ms │ 3022.27 / 3104.96 ±47.12 / 3168.68 ms │     no change │
│ QQuery 29 │         42.07 / 42.33 ±0.23 / 42.72 ms │       42.93 / 55.16 ±10.55 / 69.21 ms │  1.30x slower │
│ QQuery 30 │     307.59 / 320.05 ±15.59 / 348.49 ms │     309.93 / 318.05 ±8.81 / 335.10 ms │     no change │
│ QQuery 31 │      304.27 / 308.70 ±5.74 / 319.81 ms │     302.80 / 311.61 ±6.66 / 322.63 ms │     no change │
│ QQuery 32 │  1009.20 / 1052.24 ±27.24 / 1084.42 ms │   977.95 / 992.86 ±11.66 / 1011.06 ms │ +1.06x faster │
│ QQuery 33 │ 1457.90 / 1595.22 ±100.03 / 1708.48 ms │ 1464.63 / 1543.88 ±66.18 / 1648.21 ms │     no change │
│ QQuery 34 │  1441.22 / 1480.26 ±35.55 / 1533.08 ms │ 1426.47 / 1447.63 ±14.50 / 1469.71 ms │     no change │
│ QQuery 35 │     285.58 / 343.31 ±64.65 / 465.44 ms │    338.22 / 358.36 ±18.49 / 382.68 ms │     no change │
│ QQuery 36 │         65.96 / 73.07 ±8.95 / 90.17 ms │        67.21 / 76.04 ±6.02 / 83.88 ms │     no change │
│ QQuery 37 │         37.78 / 38.44 ±0.53 / 39.41 ms │        37.52 / 39.28 ±2.51 / 44.24 ms │     no change │
│ QQuery 38 │         42.34 / 46.78 ±2.76 / 50.62 ms │        42.68 / 44.76 ±1.83 / 47.25 ms │     no change │
│ QQuery 39 │     134.21 / 150.69 ±12.26 / 171.70 ms │     143.40 / 151.87 ±9.66 / 170.73 ms │     no change │
│ QQuery 40 │         16.04 / 17.68 ±2.81 / 23.29 ms │        15.70 / 17.78 ±3.45 / 24.67 ms │     no change │
│ QQuery 41 │         15.02 / 17.01 ±2.51 / 21.48 ms │        15.08 / 15.19 ±0.09 / 15.32 ms │ +1.12x faster │
│ QQuery 42 │         14.54 / 14.72 ±0.15 / 14.97 ms │        14.53 / 14.63 ±0.09 / 14.79 ms │     no change │
└───────────┴────────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 20743.84ms │
│ Total Time (perf-strength-reduce-hash-partition)   │ 20567.44ms │
│ Average Time (HEAD)                                │   482.41ms │
│ Average Time (perf-strength-reduce-hash-partition) │   478.31ms │
│ Queries Faster                                     │          4 │
│ Queries Slower                                     │          3 │
│ Queries with No Change                             │         36 │
│ Queries with Failure                               │          0 │
└────────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 105.0s
Peak memory 30.1 GiB
Avg memory 23.1 GiB
CPU user 1091.0s
CPU sys 69.0s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 105.0s
Peak memory 30.7 GiB
Avg memory 23.2 GiB
CPU user 1085.7s
CPU sys 68.0s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and perf-strength-reduce-hash-partition
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                     HEAD ┃      perf-strength-reduce-hash-partition ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │              6.82 / 7.41 ±0.84 / 9.07 ms │              6.83 / 7.37 ±0.82 / 9.00 ms │     no change │
│ QQuery 2  │        145.73 / 146.44 ±0.56 / 147.35 ms │        146.47 / 146.76 ±0.18 / 146.97 ms │     no change │
│ QQuery 3  │        113.42 / 114.31 ±0.63 / 115.00 ms │        113.92 / 114.85 ±0.87 / 115.99 ms │     no change │
│ QQuery 4  │    1340.02 / 1351.65 ±11.62 / 1370.27 ms │     1332.84 / 1341.27 ±9.04 / 1358.82 ms │     no change │
│ QQuery 5  │        173.26 / 173.66 ±0.21 / 173.88 ms │        174.21 / 174.79 ±0.61 / 175.71 ms │     no change │
│ QQuery 6  │        841.37 / 851.48 ±9.94 / 868.90 ms │       825.18 / 865.84 ±22.20 / 886.66 ms │     no change │
│ QQuery 7  │        337.50 / 338.11 ±0.50 / 338.80 ms │        320.73 / 324.30 ±2.91 / 328.38 ms │     no change │
│ QQuery 8  │        114.14 / 114.74 ±0.42 / 115.29 ms │        113.71 / 114.60 ±0.82 / 116.09 ms │     no change │
│ QQuery 9  │       105.08 / 111.31 ±10.78 / 132.85 ms │        101.80 / 105.96 ±2.20 / 108.06 ms │     no change │
│ QQuery 10 │        104.08 / 104.58 ±0.41 / 105.27 ms │        103.52 / 106.05 ±3.09 / 111.86 ms │     no change │
│ QQuery 11 │        948.13 / 951.29 ±4.98 / 961.18 ms │        943.96 / 956.74 ±8.36 / 969.55 ms │     no change │
│ QQuery 12 │           43.57 / 44.24 ±0.41 / 44.85 ms │           44.03 / 44.56 ±0.44 / 45.05 ms │     no change │
│ QQuery 13 │        392.59 / 394.72 ±1.09 / 395.59 ms │        395.04 / 398.84 ±2.71 / 402.94 ms │     no change │
│ QQuery 14 │        981.18 / 983.80 ±4.41 / 992.59 ms │        956.80 / 960.00 ±2.61 / 963.55 ms │     no change │
│ QQuery 15 │           15.10 / 15.43 ±0.22 / 15.68 ms │           14.74 / 14.92 ±0.15 / 15.18 ms │     no change │
│ QQuery 16 │              7.25 / 7.47 ±0.20 / 7.83 ms │              7.33 / 7.56 ±0.25 / 8.04 ms │     no change │
│ QQuery 17 │        223.83 / 224.77 ±0.78 / 225.98 ms │        204.50 / 206.55 ±2.27 / 210.93 ms │ +1.09x faster │
│ QQuery 18 │        126.94 / 128.56 ±0.92 / 129.57 ms │        124.61 / 125.51 ±0.95 / 127.24 ms │     no change │
│ QQuery 19 │        154.44 / 155.39 ±0.98 / 157.29 ms │        153.48 / 157.17 ±2.78 / 160.60 ms │     no change │
│ QQuery 20 │           13.41 / 13.53 ±0.12 / 13.77 ms │           13.10 / 13.33 ±0.16 / 13.50 ms │     no change │
│ QQuery 21 │           19.21 / 19.48 ±0.22 / 19.72 ms │           19.36 / 19.55 ±0.18 / 19.88 ms │     no change │
│ QQuery 22 │        488.71 / 491.44 ±3.13 / 497.30 ms │        480.97 / 486.03 ±5.51 / 496.26 ms │     no change │
│ QQuery 23 │        834.52 / 839.02 ±3.12 / 843.96 ms │        794.99 / 797.74 ±1.41 / 798.96 ms │     no change │
│ QQuery 24 │        374.02 / 380.66 ±5.43 / 389.20 ms │        338.21 / 345.69 ±4.40 / 350.78 ms │ +1.10x faster │
│ QQuery 25 │        331.50 / 334.79 ±2.54 / 339.01 ms │        310.41 / 312.22 ±1.26 / 313.99 ms │ +1.07x faster │
│ QQuery 26 │           78.41 / 79.19 ±0.66 / 80.29 ms │           76.23 / 76.61 ±0.31 / 77.08 ms │     no change │
│ QQuery 27 │              6.95 / 7.12 ±0.16 / 7.42 ms │              6.99 / 7.13 ±0.17 / 7.46 ms │     no change │
│ QQuery 28 │        148.95 / 149.48 ±0.61 / 150.64 ms │        149.73 / 149.99 ±0.24 / 150.29 ms │     no change │
│ QQuery 29 │        271.79 / 275.14 ±2.03 / 277.57 ms │        247.75 / 250.82 ±2.37 / 254.57 ms │ +1.10x faster │
│ QQuery 30 │           42.13 / 42.50 ±0.46 / 43.39 ms │           42.03 / 42.46 ±0.46 / 43.29 ms │     no change │
│ QQuery 31 │        163.67 / 166.19 ±2.10 / 169.91 ms │        165.05 / 167.41 ±2.55 / 172.12 ms │     no change │
│ QQuery 32 │           13.37 / 14.40 ±1.42 / 17.19 ms │           13.54 / 13.75 ±0.20 / 14.06 ms │     no change │
│ QQuery 33 │        138.01 / 139.76 ±1.36 / 141.92 ms │        139.64 / 140.66 ±0.52 / 141.08 ms │     no change │
│ QQuery 34 │              7.02 / 7.19 ±0.16 / 7.49 ms │              7.31 / 7.40 ±0.13 / 7.65 ms │     no change │
│ QQuery 35 │        101.43 / 102.49 ±0.83 / 103.87 ms │        101.83 / 103.21 ±1.26 / 105.53 ms │     no change │
│ QQuery 36 │              6.55 / 6.75 ±0.13 / 6.88 ms │              6.79 / 6.94 ±0.09 / 7.07 ms │     no change │
│ QQuery 37 │              8.24 / 8.30 ±0.03 / 8.34 ms │              8.36 / 8.45 ±0.08 / 8.61 ms │     no change │
│ QQuery 38 │           87.70 / 89.51 ±1.20 / 91.00 ms │           85.38 / 87.62 ±2.76 / 92.95 ms │     no change │
│ QQuery 39 │        117.89 / 123.51 ±6.05 / 135.15 ms │        118.30 / 120.08 ±2.46 / 124.89 ms │     no change │
│ QQuery 40 │        101.76 / 106.48 ±4.47 / 112.78 ms │          94.74 / 98.06 ±2.65 / 102.04 ms │ +1.09x faster │
│ QQuery 41 │           14.52 / 15.03 ±0.86 / 16.74 ms │           14.42 / 14.55 ±0.15 / 14.84 ms │     no change │
│ QQuery 42 │        107.22 / 107.54 ±0.24 / 107.83 ms │        107.42 / 109.38 ±2.46 / 114.19 ms │     no change │
│ QQuery 43 │              5.63 / 5.84 ±0.25 / 6.33 ms │              5.82 / 5.94 ±0.13 / 6.19 ms │     no change │
│ QQuery 44 │           11.68 / 11.77 ±0.08 / 11.90 ms │           11.88 / 12.12 ±0.16 / 12.37 ms │     no change │
│ QQuery 45 │           49.07 / 49.48 ±0.39 / 50.21 ms │           45.12 / 45.53 ±0.30 / 45.99 ms │ +1.09x faster │
│ QQuery 46 │              8.45 / 8.62 ±0.17 / 8.94 ms │             8.40 / 8.93 ±0.72 / 10.34 ms │     no change │
│ QQuery 47 │        721.11 / 728.81 ±6.71 / 739.05 ms │        712.66 / 727.85 ±8.87 / 737.07 ms │     no change │
│ QQuery 48 │        273.56 / 279.47 ±3.40 / 282.46 ms │        275.74 / 279.85 ±3.00 / 282.91 ms │     no change │
│ QQuery 49 │        249.38 / 250.79 ±1.38 / 253.29 ms │        243.57 / 245.73 ±3.01 / 251.62 ms │     no change │
│ QQuery 50 │        211.11 / 215.58 ±5.61 / 226.62 ms │        188.68 / 191.47 ±3.15 / 197.40 ms │ +1.13x faster │
│ QQuery 51 │        177.55 / 181.32 ±4.09 / 188.35 ms │        171.87 / 174.52 ±3.25 / 180.31 ms │     no change │
│ QQuery 52 │        107.27 / 107.78 ±0.39 / 108.43 ms │        107.69 / 107.95 ±0.15 / 108.09 ms │     no change │
│ QQuery 53 │        102.58 / 104.49 ±1.11 / 106.02 ms │        102.28 / 103.20 ±0.87 / 104.83 ms │     no change │
│ QQuery 54 │        147.05 / 147.81 ±1.00 / 149.68 ms │        144.82 / 146.59 ±1.36 / 148.40 ms │     no change │
│ QQuery 55 │        106.73 / 107.14 ±0.39 / 107.83 ms │        105.87 / 107.30 ±0.82 / 108.23 ms │     no change │
│ QQuery 56 │        141.38 / 142.06 ±0.53 / 142.85 ms │        139.46 / 140.46 ±0.81 / 141.61 ms │     no change │
│ QQuery 57 │        165.39 / 168.77 ±2.14 / 171.94 ms │        162.27 / 164.31 ±1.51 / 166.76 ms │     no change │
│ QQuery 58 │        310.40 / 311.72 ±1.00 / 313.40 ms │        282.71 / 284.64 ±1.19 / 286.12 ms │ +1.10x faster │
│ QQuery 59 │        196.80 / 199.64 ±1.89 / 202.36 ms │        195.70 / 197.68 ±2.01 / 201.06 ms │     no change │
│ QQuery 60 │        142.99 / 144.05 ±0.69 / 145.05 ms │        141.39 / 141.92 ±0.43 / 142.48 ms │     no change │
│ QQuery 61 │           13.51 / 13.72 ±0.15 / 13.89 ms │           13.40 / 14.59 ±2.12 / 18.82 ms │  1.06x slower │
│ QQuery 62 │        894.52 / 901.10 ±6.57 / 912.82 ms │        867.53 / 876.05 ±6.90 / 884.20 ms │     no change │
│ QQuery 63 │        101.81 / 103.36 ±1.23 / 105.54 ms │        102.56 / 103.27 ±0.67 / 104.17 ms │     no change │
│ QQuery 64 │        672.30 / 677.18 ±4.57 / 683.40 ms │        633.93 / 643.07 ±6.86 / 651.69 ms │ +1.05x faster │
│ QQuery 65 │        252.05 / 257.11 ±3.88 / 261.72 ms │        247.95 / 250.70 ±2.21 / 254.42 ms │     no change │
│ QQuery 66 │       217.25 / 224.32 ±10.33 / 244.59 ms │        213.85 / 221.04 ±6.56 / 231.91 ms │     no change │
│ QQuery 67 │       300.52 / 309.45 ±10.36 / 323.98 ms │       295.22 / 303.00 ±11.41 / 325.42 ms │     no change │
│ QQuery 68 │              8.75 / 8.91 ±0.18 / 9.25 ms │              8.61 / 8.77 ±0.17 / 9.11 ms │     no change │
│ QQuery 69 │         98.76 / 100.40 ±1.50 / 102.95 ms │         99.20 / 101.70 ±4.19 / 110.06 ms │     no change │
│ QQuery 70 │       316.30 / 330.46 ±12.84 / 354.73 ms │        312.75 / 323.98 ±9.85 / 338.46 ms │     no change │
│ QQuery 71 │        133.22 / 134.92 ±0.93 / 135.95 ms │        134.13 / 135.45 ±1.90 / 139.19 ms │     no change │
│ QQuery 72 │        592.47 / 604.29 ±8.50 / 616.24 ms │        546.97 / 553.13 ±6.66 / 565.53 ms │ +1.09x faster │
│ QQuery 73 │              6.85 / 6.96 ±0.11 / 7.16 ms │              6.64 / 6.83 ±0.18 / 7.15 ms │     no change │
│ QQuery 74 │        601.89 / 612.30 ±7.09 / 623.95 ms │        590.60 / 594.95 ±2.81 / 599.17 ms │     no change │
│ QQuery 75 │        268.04 / 270.51 ±1.81 / 273.04 ms │        268.07 / 269.62 ±1.35 / 271.89 ms │     no change │
│ QQuery 76 │        130.05 / 132.34 ±1.78 / 135.12 ms │        130.54 / 131.90 ±1.46 / 134.63 ms │     no change │
│ QQuery 77 │        187.37 / 188.89 ±1.69 / 192.08 ms │        186.96 / 188.49 ±1.14 / 189.92 ms │     no change │
│ QQuery 78 │        332.61 / 335.31 ±2.79 / 339.19 ms │        310.77 / 313.49 ±2.37 / 317.50 ms │ +1.07x faster │
│ QQuery 79 │        232.16 / 237.36 ±4.05 / 244.01 ms │        230.79 / 233.28 ±1.96 / 236.40 ms │     no change │
│ QQuery 80 │        319.69 / 321.23 ±1.40 / 323.88 ms │        301.52 / 302.78 ±1.00 / 304.19 ms │ +1.06x faster │
│ QQuery 81 │           26.20 / 26.78 ±0.43 / 27.42 ms │           26.07 / 26.30 ±0.15 / 26.46 ms │     no change │
│ QQuery 82 │           39.23 / 39.68 ±0.39 / 40.23 ms │           39.67 / 40.06 ±0.43 / 40.85 ms │     no change │
│ QQuery 83 │           37.72 / 38.02 ±0.22 / 38.31 ms │           36.00 / 36.37 ±0.46 / 37.24 ms │     no change │
│ QQuery 84 │           46.96 / 47.19 ±0.20 / 47.56 ms │           46.75 / 46.86 ±0.10 / 47.00 ms │     no change │
│ QQuery 85 │        141.94 / 143.24 ±1.11 / 145.23 ms │        142.33 / 143.94 ±1.83 / 147.04 ms │     no change │
│ QQuery 86 │           37.65 / 38.06 ±0.27 / 38.44 ms │           37.56 / 38.11 ±0.44 / 38.83 ms │     no change │
│ QQuery 87 │              3.46 / 3.60 ±0.18 / 3.93 ms │              3.49 / 3.60 ±0.19 / 3.98 ms │     no change │
│ QQuery 88 │        100.42 / 103.31 ±3.11 / 107.75 ms │         99.69 / 100.18 ±0.31 / 100.60 ms │     no change │
│ QQuery 89 │        116.87 / 117.76 ±1.09 / 119.87 ms │        117.15 / 118.86 ±1.94 / 122.49 ms │     no change │
│ QQuery 90 │           22.76 / 23.01 ±0.24 / 23.43 ms │           22.72 / 23.02 ±0.20 / 23.27 ms │     no change │
│ QQuery 91 │           58.55 / 59.88 ±0.88 / 60.75 ms │           58.69 / 59.29 ±0.57 / 60.17 ms │     no change │
│ QQuery 92 │           56.85 / 57.11 ±0.24 / 57.53 ms │           56.63 / 57.41 ±0.78 / 58.81 ms │     no change │
│ QQuery 93 │        180.76 / 182.78 ±1.43 / 184.56 ms │        162.42 / 163.37 ±0.94 / 164.84 ms │ +1.12x faster │
│ QQuery 94 │           60.78 / 61.39 ±0.35 / 61.76 ms │           61.18 / 61.53 ±0.53 / 62.59 ms │     no change │
│ QQuery 95 │        126.80 / 127.74 ±0.78 / 128.60 ms │        111.81 / 112.73 ±0.68 / 113.42 ms │ +1.13x faster │
│ QQuery 96 │           68.10 / 69.58 ±1.26 / 71.14 ms │           67.25 / 69.44 ±2.07 / 73.33 ms │     no change │
│ QQuery 97 │        117.11 / 118.55 ±1.57 / 121.55 ms │        112.06 / 113.17 ±0.89 / 114.31 ms │     no change │
│ QQuery 98 │        149.65 / 151.58 ±1.23 / 153.40 ms │        149.67 / 151.59 ±1.15 / 152.76 ms │     no change │
│ QQuery 99 │ 10817.90 / 10877.58 ±82.16 / 11036.81 ms │ 10801.80 / 10876.01 ±72.49 / 10980.77 ms │     no change │
└───────────┴──────────────────────────────────────────┴──────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 30960.91ms │
│ Total Time (perf-strength-reduce-hash-partition)   │ 30456.67ms │
│ Average Time (HEAD)                                │   312.74ms │
│ Average Time (perf-strength-reduce-hash-partition) │   307.64ms │
│ Queries Faster                                     │         14 │
│ Queries Slower                                     │          1 │
│ Queries with No Change                             │         84 │
│ Queries with Failure                               │          0 │
└────────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 160.0s
Peak memory 6.3 GiB
Avg memory 5.5 GiB
CPU user 259.1s
CPU sys 8.5s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 155.0s
Peak memory 6.6 GiB
Avg memory 5.5 GiB
CPU user 254.5s
CPU sys 8.1s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and perf-strength-reduce-hash-partition
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                     HEAD ┃       perf-strength-reduce-hash-partition ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │              6.78 / 7.39 ±0.82 / 9.02 ms │               7.04 / 7.48 ±0.71 / 8.89 ms │     no change │
│ QQuery 2  │        145.52 / 145.78 ±0.22 / 146.08 ms │         146.38 / 146.80 ±0.25 / 147.15 ms │     no change │
│ QQuery 3  │        113.42 / 114.48 ±0.67 / 115.23 ms │         113.21 / 114.23 ±0.95 / 115.98 ms │     no change │
│ QQuery 4  │     1327.95 / 1337.03 ±8.77 / 1351.05 ms │      1329.81 / 1335.48 ±4.28 / 1341.10 ms │     no change │
│ QQuery 5  │        172.79 / 173.72 ±0.48 / 174.19 ms │         173.62 / 175.64 ±1.90 / 178.74 ms │     no change │
│ QQuery 6  │        846.21 / 859.28 ±8.69 / 871.10 ms │        813.57 / 848.98 ±27.46 / 887.43 ms │     no change │
│ QQuery 7  │        334.91 / 336.28 ±0.84 / 337.37 ms │         322.04 / 324.51 ±3.10 / 330.45 ms │     no change │
│ QQuery 8  │        113.10 / 113.61 ±0.54 / 114.60 ms │         113.57 / 113.84 ±0.31 / 114.45 ms │     no change │
│ QQuery 9  │        100.25 / 103.54 ±2.62 / 106.36 ms │         102.10 / 109.03 ±9.13 / 126.81 ms │  1.05x slower │
│ QQuery 10 │        103.04 / 104.22 ±0.64 / 104.88 ms │         103.07 / 104.66 ±1.44 / 107.35 ms │     no change │
│ QQuery 11 │        935.10 / 939.58 ±3.77 / 943.96 ms │         932.82 / 942.12 ±8.46 / 955.34 ms │     no change │
│ QQuery 12 │           44.26 / 44.73 ±0.42 / 45.48 ms │            43.84 / 44.07 ±0.19 / 44.33 ms │     no change │
│ QQuery 13 │        390.03 / 393.99 ±3.01 / 399.02 ms │         393.39 / 394.59 ±1.18 / 396.69 ms │     no change │
│ QQuery 14 │       982.99 / 992.09 ±9.29 / 1006.57 ms │         943.88 / 955.36 ±6.25 / 961.80 ms │     no change │
│ QQuery 15 │           15.43 / 15.72 ±0.23 / 16.02 ms │            14.88 / 16.19 ±1.64 / 19.38 ms │     no change │
│ QQuery 16 │              7.28 / 7.44 ±0.19 / 7.80 ms │               7.34 / 7.50 ±0.17 / 7.83 ms │     no change │
│ QQuery 17 │        225.60 / 227.00 ±1.16 / 228.47 ms │         202.74 / 204.41 ±1.10 / 206.13 ms │ +1.11x faster │
│ QQuery 18 │        128.32 / 129.56 ±0.66 / 130.26 ms │         123.09 / 124.38 ±0.67 / 124.98 ms │     no change │
│ QQuery 19 │        156.55 / 157.29 ±0.44 / 157.84 ms │         155.22 / 156.63 ±1.38 / 159.02 ms │     no change │
│ QQuery 20 │           13.15 / 13.40 ±0.14 / 13.54 ms │            13.10 / 13.27 ±0.12 / 13.42 ms │     no change │
│ QQuery 21 │           19.23 / 19.93 ±0.75 / 21.39 ms │            19.43 / 19.60 ±0.12 / 19.78 ms │     no change │
│ QQuery 22 │        493.23 / 497.87 ±2.87 / 501.32 ms │         482.34 / 484.82 ±1.67 / 486.33 ms │     no change │
│ QQuery 23 │        826.65 / 834.06 ±6.20 / 844.40 ms │         787.82 / 792.26 ±3.09 / 795.67 ms │ +1.05x faster │
│ QQuery 24 │        372.57 / 376.45 ±3.18 / 381.91 ms │         337.25 / 341.00 ±2.40 / 344.59 ms │ +1.10x faster │
│ QQuery 25 │        333.76 / 335.59 ±1.21 / 337.56 ms │         308.52 / 310.64 ±1.59 / 313.44 ms │ +1.08x faster │
│ QQuery 26 │           78.27 / 78.71 ±0.38 / 79.27 ms │            76.52 / 77.35 ±1.10 / 79.45 ms │     no change │
│ QQuery 27 │              6.86 / 6.96 ±0.19 / 7.35 ms │               6.76 / 6.93 ±0.16 / 7.23 ms │     no change │
│ QQuery 28 │        149.21 / 149.93 ±0.79 / 151.38 ms │         149.68 / 151.15 ±1.57 / 153.13 ms │     no change │
│ QQuery 29 │        274.31 / 277.54 ±3.45 / 283.42 ms │         247.03 / 248.21 ±1.22 / 249.79 ms │ +1.12x faster │
│ QQuery 30 │           42.02 / 42.89 ±1.10 / 45.03 ms │            41.83 / 42.27 ±0.34 / 42.82 ms │     no change │
│ QQuery 31 │        165.43 / 167.33 ±2.24 / 171.70 ms │         164.82 / 166.06 ±1.30 / 168.38 ms │     no change │
│ QQuery 32 │           13.82 / 13.96 ±0.21 / 14.38 ms │            13.68 / 13.98 ±0.20 / 14.20 ms │     no change │
│ QQuery 33 │        139.80 / 141.38 ±1.57 / 144.15 ms │         139.20 / 140.47 ±0.80 / 141.35 ms │     no change │
│ QQuery 34 │              7.12 / 7.23 ±0.16 / 7.53 ms │               6.93 / 7.08 ±0.18 / 7.42 ms │     no change │
│ QQuery 35 │        101.33 / 102.34 ±0.97 / 103.85 ms │         100.57 / 102.96 ±2.24 / 106.01 ms │     no change │
│ QQuery 36 │              6.66 / 6.92 ±0.15 / 7.05 ms │               6.50 / 6.73 ±0.18 / 6.98 ms │     no change │
│ QQuery 37 │              8.43 / 8.53 ±0.05 / 8.60 ms │               8.38 / 8.55 ±0.26 / 9.06 ms │     no change │
│ QQuery 38 │           86.69 / 88.73 ±1.08 / 89.88 ms │            86.30 / 87.95 ±1.54 / 90.02 ms │     no change │
│ QQuery 39 │        119.46 / 122.11 ±3.68 / 129.22 ms │         116.84 / 120.49 ±5.23 / 130.87 ms │     no change │
│ QQuery 40 │        104.12 / 108.15 ±3.99 / 115.41 ms │          97.96 / 100.34 ±1.91 / 102.82 ms │ +1.08x faster │
│ QQuery 41 │           14.38 / 15.80 ±2.58 / 20.94 ms │            14.30 / 14.48 ±0.17 / 14.81 ms │ +1.09x faster │
│ QQuery 42 │        107.33 / 108.54 ±0.75 / 109.49 ms │         107.44 / 108.92 ±2.00 / 112.78 ms │     no change │
│ QQuery 43 │              5.65 / 5.78 ±0.11 / 5.97 ms │               5.53 / 5.74 ±0.18 / 6.07 ms │     no change │
│ QQuery 44 │           11.68 / 11.87 ±0.10 / 11.99 ms │            11.58 / 11.73 ±0.09 / 11.85 ms │     no change │
│ QQuery 45 │           48.71 / 49.07 ±0.29 / 49.48 ms │            45.32 / 46.72 ±2.25 / 51.19 ms │     no change │
│ QQuery 46 │              8.39 / 8.56 ±0.17 / 8.88 ms │               8.31 / 8.52 ±0.18 / 8.81 ms │     no change │
│ QQuery 47 │        716.95 / 722.81 ±4.62 / 728.71 ms │         719.32 / 724.20 ±2.64 / 726.83 ms │     no change │
│ QQuery 48 │        273.86 / 279.65 ±5.29 / 287.20 ms │         276.75 / 278.53 ±1.99 / 281.74 ms │     no change │
│ QQuery 49 │        247.57 / 250.62 ±2.40 / 253.81 ms │         244.58 / 245.53 ±0.50 / 245.96 ms │     no change │
│ QQuery 50 │        204.37 / 212.28 ±5.23 / 219.40 ms │         187.26 / 192.56 ±4.79 / 201.25 ms │ +1.10x faster │
│ QQuery 51 │        175.13 / 177.54 ±2.13 / 181.25 ms │         172.47 / 173.81 ±1.39 / 176.10 ms │     no change │
│ QQuery 52 │        106.66 / 107.71 ±0.91 / 108.86 ms │         107.64 / 108.96 ±1.66 / 112.10 ms │     no change │
│ QQuery 53 │        101.03 / 102.34 ±1.87 / 106.01 ms │         103.07 / 103.62 ±0.40 / 104.28 ms │     no change │
│ QQuery 54 │        145.00 / 146.16 ±0.78 / 146.88 ms │         144.32 / 145.86 ±1.29 / 148.13 ms │     no change │
│ QQuery 55 │        106.33 / 107.14 ±0.52 / 107.86 ms │         106.18 / 107.33 ±0.80 / 108.53 ms │     no change │
│ QQuery 56 │        138.88 / 140.51 ±1.29 / 142.32 ms │         139.86 / 140.31 ±0.41 / 141.06 ms │     no change │
│ QQuery 57 │        163.94 / 165.36 ±0.90 / 166.25 ms │         163.90 / 165.91 ±1.41 / 168.10 ms │     no change │
│ QQuery 58 │        309.14 / 310.72 ±1.68 / 312.82 ms │         283.95 / 285.95 ±1.95 / 289.29 ms │ +1.09x faster │
│ QQuery 59 │        193.79 / 195.89 ±1.25 / 197.53 ms │         193.26 / 194.50 ±0.85 / 195.48 ms │     no change │
│ QQuery 60 │        141.43 / 142.37 ±1.22 / 144.61 ms │         140.77 / 142.28 ±1.11 / 144.01 ms │     no change │
│ QQuery 61 │           13.46 / 13.59 ±0.12 / 13.83 ms │            13.34 / 13.43 ±0.12 / 13.68 ms │     no change │
│ QQuery 62 │        885.17 / 892.94 ±7.51 / 903.56 ms │        876.62 / 884.83 ±10.00 / 903.25 ms │     no change │
│ QQuery 63 │        101.57 / 103.90 ±2.91 / 109.59 ms │         102.90 / 104.56 ±2.42 / 109.35 ms │     no change │
│ QQuery 64 │        664.35 / 669.43 ±4.14 / 675.24 ms │         637.93 / 640.48 ±2.14 / 643.93 ms │     no change │
│ QQuery 65 │        247.98 / 250.80 ±2.31 / 254.10 ms │         248.47 / 251.17 ±2.52 / 255.81 ms │     no change │
│ QQuery 66 │        215.83 / 224.60 ±7.11 / 236.58 ms │         217.18 / 226.88 ±9.06 / 240.34 ms │     no change │
│ QQuery 67 │        294.94 / 299.50 ±5.51 / 310.35 ms │         294.54 / 301.53 ±6.71 / 312.69 ms │     no change │
│ QQuery 68 │            8.55 / 11.95 ±4.04 / 18.09 ms │             8.71 / 10.29 ±2.89 / 16.06 ms │ +1.16x faster │
│ QQuery 69 │          98.73 / 99.75 ±0.92 / 101.31 ms │          98.92 / 100.41 ±1.11 / 102.00 ms │     no change │
│ QQuery 70 │        314.33 / 321.93 ±5.59 / 330.31 ms │         327.39 / 332.12 ±4.10 / 339.77 ms │     no change │
│ QQuery 71 │        133.21 / 134.22 ±1.19 / 136.49 ms │         133.68 / 134.59 ±0.87 / 136.22 ms │     no change │
│ QQuery 72 │        588.56 / 596.20 ±7.54 / 609.08 ms │         538.78 / 550.31 ±5.91 / 555.21 ms │ +1.08x faster │
│ QQuery 73 │              6.51 / 6.65 ±0.19 / 7.01 ms │               6.60 / 6.73 ±0.19 / 7.11 ms │     no change │
│ QQuery 74 │        591.10 / 598.82 ±4.84 / 605.87 ms │         590.35 / 595.52 ±3.17 / 598.83 ms │     no change │
│ QQuery 75 │        266.03 / 268.88 ±2.81 / 273.64 ms │         267.07 / 269.34 ±2.17 / 272.02 ms │     no change │
│ QQuery 76 │        129.82 / 130.52 ±0.39 / 130.83 ms │         129.50 / 131.01 ±1.05 / 132.32 ms │     no change │
│ QQuery 77 │        185.28 / 187.90 ±2.44 / 192.32 ms │         186.43 / 187.45 ±0.67 / 188.39 ms │     no change │
│ QQuery 78 │        329.53 / 331.34 ±1.84 / 334.80 ms │         311.01 / 313.83 ±2.64 / 318.71 ms │ +1.06x faster │
│ QQuery 79 │        230.58 / 233.60 ±2.74 / 238.11 ms │         229.81 / 233.77 ±2.51 / 236.70 ms │     no change │
│ QQuery 80 │        317.97 / 319.76 ±1.10 / 320.88 ms │         300.59 / 302.41 ±1.26 / 303.86 ms │ +1.06x faster │
│ QQuery 81 │           26.27 / 26.56 ±0.21 / 26.91 ms │            26.57 / 26.73 ±0.15 / 26.94 ms │     no change │
│ QQuery 82 │           39.30 / 39.59 ±0.30 / 40.17 ms │            39.49 / 39.77 ±0.30 / 40.32 ms │     no change │
│ QQuery 83 │           37.10 / 37.52 ±0.32 / 37.90 ms │            35.44 / 35.71 ±0.18 / 35.96 ms │     no change │
│ QQuery 84 │           46.47 / 46.81 ±0.37 / 47.53 ms │            46.34 / 47.01 ±0.45 / 47.69 ms │     no change │
│ QQuery 85 │        142.17 / 143.57 ±1.21 / 145.68 ms │         141.44 / 142.56 ±1.02 / 144.02 ms │     no change │
│ QQuery 86 │           37.47 / 38.66 ±2.05 / 42.75 ms │            37.37 / 38.63 ±1.92 / 42.39 ms │     no change │
│ QQuery 87 │              3.44 / 3.55 ±0.19 / 3.92 ms │               3.43 / 3.55 ±0.19 / 3.94 ms │     no change │
│ QQuery 88 │          99.19 / 99.69 ±0.51 / 100.54 ms │          99.54 / 100.47 ±1.45 / 103.36 ms │     no change │
│ QQuery 89 │        116.05 / 117.00 ±1.72 / 120.43 ms │         117.41 / 119.45 ±3.43 / 126.23 ms │     no change │
│ QQuery 90 │           22.28 / 23.43 ±1.62 / 26.63 ms │            22.53 / 22.94 ±0.30 / 23.47 ms │     no change │
│ QQuery 91 │           58.97 / 60.09 ±0.70 / 60.93 ms │            59.57 / 60.60 ±0.99 / 61.99 ms │     no change │
│ QQuery 92 │           56.53 / 56.91 ±0.23 / 57.22 ms │            56.72 / 57.15 ±0.23 / 57.39 ms │     no change │
│ QQuery 93 │        179.34 / 181.50 ±1.51 / 183.77 ms │         162.76 / 165.42 ±2.02 / 168.85 ms │ +1.10x faster │
│ QQuery 94 │           60.01 / 60.81 ±0.47 / 61.37 ms │            60.85 / 61.35 ±0.40 / 61.82 ms │     no change │
│ QQuery 95 │        125.77 / 127.03 ±1.00 / 128.43 ms │         111.62 / 112.63 ±1.18 / 114.87 ms │ +1.13x faster │
│ QQuery 96 │           68.94 / 70.22 ±1.06 / 71.91 ms │            68.27 / 69.55 ±0.89 / 70.74 ms │     no change │
│ QQuery 97 │        116.19 / 118.01 ±1.56 / 120.46 ms │         112.73 / 114.26 ±1.65 / 117.31 ms │     no change │
│ QQuery 98 │        150.86 / 152.05 ±1.07 / 154.03 ms │         149.52 / 152.00 ±2.33 / 155.99 ms │     no change │
│ QQuery 99 │ 10789.42 / 10840.79 ±35.21 / 10886.03 ms │ 10788.21 / 10860.60 ±108.62 / 11076.55 ms │     no change │
└───────────┴──────────────────────────────────────────┴───────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 30803.51ms │
│ Total Time (perf-strength-reduce-hash-partition)   │ 30394.50ms │
│ Average Time (HEAD)                                │   311.15ms │
│ Average Time (perf-strength-reduce-hash-partition) │   307.02ms │
│ Queries Faster                                     │         15 │
│ Queries Slower                                     │          1 │
│ Queries with No Change                             │         83 │
│ Queries with Failure                               │          0 │
└────────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 155.0s
Peak memory 6.5 GiB
Avg memory 5.5 GiB
CPU user 257.7s
CPU sys 8.2s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 155.0s
Peak memory 6.1 GiB
Avg memory 5.5 GiB
CPU user 253.7s
CPU sys 8.2s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and perf-strength-reduce-hash-partition
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃   perf-strength-reduce-hash-partition ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.19 / 4.68 ±6.84 / 18.36 ms │          1.20 / 4.79 ±7.05 / 18.90 ms │     no change │
│ QQuery 1  │        12.37 / 12.82 ±0.24 / 13.09 ms │        12.95 / 13.62 ±0.65 / 14.84 ms │  1.06x slower │
│ QQuery 2  │        36.62 / 37.05 ±0.60 / 38.22 ms │        37.26 / 37.53 ±0.27 / 37.97 ms │     no change │
│ QQuery 3  │        31.16 / 31.81 ±0.89 / 33.58 ms │        31.52 / 32.06 ±0.56 / 33.12 ms │     no change │
│ QQuery 4  │     245.62 / 251.52 ±4.67 / 256.81 ms │     239.86 / 244.05 ±4.71 / 250.73 ms │     no change │
│ QQuery 5  │     289.57 / 290.88 ±0.97 / 291.87 ms │     287.31 / 290.43 ±2.78 / 295.52 ms │     no change │
│ QQuery 6  │           6.92 / 7.23 ±0.25 / 7.62 ms │           6.85 / 7.31 ±0.42 / 7.95 ms │     no change │
│ QQuery 7  │        13.72 / 13.97 ±0.13 / 14.09 ms │        14.27 / 15.87 ±2.92 / 21.70 ms │  1.14x slower │
│ QQuery 8  │     334.76 / 338.99 ±2.36 / 342.02 ms │     330.16 / 335.07 ±4.54 / 343.24 ms │     no change │
│ QQuery 9  │     457.86 / 463.65 ±5.71 / 474.45 ms │    463.05 / 480.58 ±15.00 / 499.99 ms │     no change │
│ QQuery 10 │        75.01 / 75.68 ±0.45 / 76.28 ms │        75.25 / 78.01 ±4.07 / 86.07 ms │     no change │
│ QQuery 11 │        86.06 / 86.73 ±0.75 / 87.65 ms │        85.86 / 86.51 ±0.34 / 86.82 ms │     no change │
│ QQuery 12 │     280.43 / 285.45 ±3.39 / 290.05 ms │     280.05 / 285.24 ±5.07 / 291.33 ms │     no change │
│ QQuery 13 │     405.73 / 413.86 ±8.88 / 425.97 ms │    392.11 / 405.99 ±13.21 / 426.37 ms │     no change │
│ QQuery 14 │     293.64 / 299.80 ±5.45 / 307.53 ms │     296.10 / 299.90 ±2.87 / 304.02 ms │     no change │
│ QQuery 15 │     290.90 / 294.42 ±2.85 / 299.10 ms │     289.84 / 298.74 ±5.73 / 307.32 ms │     no change │
│ QQuery 16 │    633.07 / 646.24 ±10.46 / 662.35 ms │     645.30 / 650.41 ±2.63 / 652.55 ms │     no change │
│ QQuery 17 │     637.48 / 644.94 ±5.66 / 653.68 ms │     648.59 / 656.35 ±6.37 / 667.87 ms │     no change │
│ QQuery 18 │ 1286.26 / 1309.11 ±12.49 / 1324.05 ms │ 1287.55 / 1314.03 ±31.57 / 1373.95 ms │     no change │
│ QQuery 19 │        29.25 / 33.32 ±4.13 / 39.32 ms │        29.54 / 29.81 ±0.17 / 30.00 ms │ +1.12x faster │
│ QQuery 20 │     518.40 / 524.61 ±7.06 / 538.44 ms │     523.93 / 528.38 ±5.12 / 538.07 ms │     no change │
│ QQuery 21 │     598.68 / 603.08 ±4.74 / 611.20 ms │     608.01 / 613.71 ±5.87 / 622.99 ms │     no change │
│ QQuery 22 │  1074.47 / 1083.36 ±9.06 / 1098.06 ms │  1080.02 / 1083.50 ±2.89 / 1087.50 ms │     no change │
│ QQuery 23 │ 3378.25 / 3402.99 ±20.27 / 3434.00 ms │ 3394.97 / 3418.28 ±14.71 / 3432.30 ms │     no change │
│ QQuery 24 │        41.78 / 42.24 ±0.36 / 42.74 ms │        41.71 / 43.55 ±2.18 / 47.73 ms │     no change │
│ QQuery 25 │     114.38 / 115.79 ±0.92 / 116.65 ms │     115.11 / 116.48 ±0.73 / 117.29 ms │     no change │
│ QQuery 26 │        42.44 / 45.24 ±3.37 / 50.84 ms │        42.25 / 42.77 ±0.33 / 43.09 ms │ +1.06x faster │
│ QQuery 27 │     672.34 / 679.72 ±5.92 / 688.86 ms │     672.82 / 679.98 ±6.55 / 690.31 ms │     no change │
│ QQuery 28 │ 3014.01 / 3043.51 ±17.19 / 3060.02 ms │ 3020.56 / 3050.28 ±24.45 / 3082.57 ms │     no change │
│ QQuery 29 │        42.52 / 42.77 ±0.28 / 43.23 ms │        42.62 / 43.25 ±0.68 / 44.47 ms │     no change │
│ QQuery 30 │    317.79 / 331.19 ±15.95 / 360.70 ms │     306.44 / 313.83 ±6.02 / 323.89 ms │ +1.06x faster │
│ QQuery 31 │     315.38 / 318.19 ±3.31 / 324.65 ms │     299.71 / 308.06 ±5.19 / 315.68 ms │     no change │
│ QQuery 32 │  1028.31 / 1035.57 ±4.79 / 1041.48 ms │     980.26 / 985.80 ±7.05 / 998.60 ms │     no change │
│ QQuery 33 │ 1469.73 / 1491.13 ±14.60 / 1511.06 ms │  1460.82 / 1477.52 ±9.33 / 1487.21 ms │     no change │
│ QQuery 34 │ 1486.32 / 1506.16 ±13.86 / 1523.95 ms │ 1478.33 / 1509.96 ±18.53 / 1533.95 ms │     no change │
│ QQuery 35 │    301.24 / 326.05 ±34.29 / 393.94 ms │    289.65 / 301.92 ±19.30 / 340.30 ms │ +1.08x faster │
│ QQuery 36 │        63.81 / 66.80 ±2.61 / 70.32 ms │      63.18 / 73.15 ±13.92 / 100.78 ms │  1.10x slower │
│ QQuery 37 │        36.61 / 39.99 ±3.82 / 46.71 ms │        37.27 / 38.49 ±1.42 / 40.83 ms │     no change │
│ QQuery 38 │        40.67 / 45.36 ±3.42 / 50.44 ms │        40.47 / 41.83 ±1.06 / 43.46 ms │ +1.08x faster │
│ QQuery 39 │     128.76 / 136.11 ±4.87 / 143.87 ms │     133.39 / 137.27 ±3.20 / 142.81 ms │     no change │
│ QQuery 40 │        14.77 / 16.48 ±2.43 / 21.25 ms │        14.93 / 17.03 ±3.72 / 24.46 ms │     no change │
│ QQuery 41 │        14.35 / 14.59 ±0.39 / 15.37 ms │        14.31 / 14.53 ±0.15 / 14.76 ms │     no change │
│ QQuery 42 │        13.89 / 14.95 ±1.70 / 18.33 ms │        14.07 / 14.20 ±0.09 / 14.33 ms │ +1.05x faster │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 20468.03ms │
│ Total Time (perf-strength-reduce-hash-partition)   │ 20420.07ms │
│ Average Time (HEAD)                                │   476.00ms │
│ Average Time (perf-strength-reduce-hash-partition) │   474.89ms │
│ Queries Faster                                     │          6 │
│ Queries Slower                                     │          3 │
│ Queries with No Change                             │         34 │
│ Queries with Failure                               │          0 │
└────────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 105.0s
Peak memory 29.7 GiB
Avg memory 23.2 GiB
CPU user 1082.8s
CPU sys 64.1s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 105.0s
Peak memory 29.8 GiB
Avg memory 22.7 GiB
CPU user 1079.1s
CPU sys 65.4s
Peak spill 0 B

File an issue against this benchmark runner

@Dandandan Dandandan marked this pull request as ready for review April 28, 2026 20:44
@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmark tpch10

@adriangbot
Copy link
Copy Markdown

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

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

Comparing perf-strength-reduce-hash-partition (b0091c6) to 65f337d (merge-base) diff using: tpch10
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and perf-strength-reduce-hash-partition
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                               HEAD ┃ perf-strength-reduce-hash-partition ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │  327.64 / 329.66 ±1.44 / 331.84 ms │   327.82 / 330.00 ±1.68 / 331.48 ms │     no change │
│ QQuery 2  │  131.35 / 138.32 ±3.91 / 143.24 ms │   125.94 / 126.49 ±0.61 / 127.42 ms │ +1.09x faster │
│ QQuery 3  │  286.47 / 300.24 ±8.19 / 308.99 ms │   273.76 / 276.01 ±1.80 / 277.98 ms │ +1.09x faster │
│ QQuery 4  │  158.30 / 160.81 ±2.21 / 163.54 ms │   137.56 / 138.79 ±0.98 / 139.80 ms │ +1.16x faster │
│ QQuery 5  │  428.90 / 437.68 ±4.45 / 440.83 ms │   390.52 / 396.51 ±4.30 / 403.67 ms │ +1.10x faster │
│ QQuery 6  │  131.88 / 132.83 ±1.17 / 134.81 ms │   133.06 / 134.70 ±1.22 / 135.83 ms │     no change │
│ QQuery 7  │  541.09 / 545.88 ±4.21 / 552.67 ms │  508.51 / 531.75 ±16.82 / 548.21 ms │     no change │
│ QQuery 8  │  467.86 / 476.44 ±6.95 / 483.87 ms │   427.19 / 439.03 ±9.88 / 453.56 ms │ +1.09x faster │
│ QQuery 9  │ 649.16 / 660.07 ±10.12 / 676.72 ms │   605.25 / 611.87 ±5.72 / 620.70 ms │ +1.08x faster │
│ QQuery 10 │  327.64 / 339.90 ±6.92 / 348.85 ms │   321.66 / 330.67 ±4.76 / 334.89 ms │     no change │
│ QQuery 11 │  104.93 / 107.54 ±1.71 / 110.18 ms │   92.80 / 101.35 ±12.27 / 125.63 ms │ +1.06x faster │
│ QQuery 12 │  198.96 / 202.37 ±2.45 / 206.21 ms │   195.07 / 197.77 ±4.26 / 206.26 ms │     no change │
│ QQuery 13 │  300.44 / 312.37 ±6.87 / 321.90 ms │  291.85 / 308.47 ±10.23 / 317.55 ms │     no change │
│ QQuery 14 │  188.06 / 193.71 ±4.81 / 200.69 ms │   182.89 / 186.72 ±3.67 / 192.75 ms │     no change │
│ QQuery 15 │  334.88 / 339.95 ±5.81 / 350.78 ms │   330.79 / 336.21 ±4.31 / 342.71 ms │     no change │
│ QQuery 16 │     78.38 / 81.25 ±2.51 / 84.55 ms │      74.35 / 76.61 ±2.80 / 81.94 ms │ +1.06x faster │
│ QQuery 17 │ 744.08 / 761.70 ±12.84 / 781.69 ms │  703.40 / 724.66 ±23.35 / 770.05 ms │     no change │
│ QQuery 18 │ 760.17 / 782.23 ±12.12 / 796.85 ms │  725.45 / 744.71 ±15.59 / 765.59 ms │     no change │
│ QQuery 19 │ 267.90 / 280.99 ±14.61 / 306.80 ms │  275.58 / 298.23 ±27.69 / 351.75 ms │  1.06x slower │
│ QQuery 20 │ 311.46 / 323.12 ±10.13 / 341.26 ms │   312.13 / 319.42 ±4.39 / 324.46 ms │     no change │
│ QQuery 21 │ 816.40 / 837.33 ±19.78 / 870.18 ms │   766.23 / 778.58 ±8.98 / 792.31 ms │ +1.08x faster │
│ QQuery 22 │     81.46 / 84.94 ±2.58 / 88.20 ms │      75.31 / 77.73 ±1.39 / 79.55 ms │ +1.09x faster │
└───────────┴────────────────────────────────────┴─────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 7829.34ms │
│ Total Time (perf-strength-reduce-hash-partition)   │ 7466.29ms │
│ Average Time (HEAD)                                │  355.88ms │
│ Average Time (perf-strength-reduce-hash-partition) │  339.38ms │
│ Queries Faster                                     │        10 │
│ Queries Slower                                     │         1 │
│ Queries with No Change                             │        11 │
│ Queries with Failure                               │         0 │
└────────────────────────────────────────────────────┴───────────┘

Resource Usage

tpch10 — base (merge-base)

Metric Value
Wall time 40.0s
Peak memory 11.8 GiB
Avg memory 8.1 GiB
CPU user 419.5s
CPU sys 21.6s
Peak spill 0 B

tpch10 — branch

Metric Value
Wall time 40.0s
Peak memory 11.7 GiB
Avg memory 8.0 GiB
CPU user 399.7s
CPU sys 21.6s
Peak spill 0 B

File an issue against this benchmark runner

@Dandandan Dandandan changed the title perf: strength reduce hash partition modulo perf: strength reduce hash partition modulo (up to 1.16x faster) Apr 28, 2026
@Dandandan Dandandan requested a review from adriangb April 28, 2026 20:58
@Dandandan
Copy link
Copy Markdown
Contributor Author

FYI @adriangb

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and perf-strength-reduce-hash-partition
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                               HEAD ┃ perf-strength-reduce-hash-partition ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │  329.46 / 331.44 ±1.63 / 334.22 ms │   328.18 / 329.01 ±0.69 / 330.26 ms │     no change │
│ QQuery 2  │  144.13 / 147.30 ±2.19 / 149.29 ms │   125.51 / 129.32 ±3.45 / 134.72 ms │ +1.14x faster │
│ QQuery 3  │  317.71 / 323.21 ±5.42 / 330.22 ms │   278.07 / 286.59 ±5.81 / 292.86 ms │ +1.13x faster │
│ QQuery 4  │  163.25 / 167.88 ±3.25 / 172.97 ms │   142.43 / 144.89 ±1.62 / 147.55 ms │ +1.16x faster │
│ QQuery 5  │ 428.64 / 453.55 ±19.04 / 471.91 ms │   414.64 / 429.62 ±8.54 / 438.47 ms │ +1.06x faster │
│ QQuery 6  │  131.43 / 133.76 ±2.44 / 138.17 ms │   139.74 / 143.05 ±2.72 / 147.90 ms │  1.07x slower │
│ QQuery 7  │  542.70 / 549.01 ±6.34 / 560.84 ms │  520.00 / 542.56 ±25.56 / 588.57 ms │     no change │
│ QQuery 8  │  463.76 / 472.94 ±5.62 / 481.42 ms │   428.34 / 435.88 ±5.16 / 443.86 ms │ +1.09x faster │
│ QQuery 9  │  670.60 / 673.19 ±3.73 / 680.54 ms │   608.61 / 615.30 ±6.48 / 626.15 ms │ +1.09x faster │
│ QQuery 10 │  339.72 / 349.34 ±9.17 / 366.40 ms │   329.81 / 332.03 ±1.70 / 334.11 ms │     no change │
│ QQuery 11 │  107.75 / 110.90 ±3.27 / 115.38 ms │     95.22 / 98.55 ±2.64 / 102.96 ms │ +1.13x faster │
│ QQuery 12 │  200.49 / 208.29 ±8.03 / 220.63 ms │   194.28 / 205.25 ±6.93 / 213.38 ms │     no change │
│ QQuery 13 │ 307.84 / 323.57 ±12.19 / 341.09 ms │   328.16 / 337.99 ±5.66 / 345.71 ms │     no change │
│ QQuery 14 │  194.52 / 196.14 ±1.92 / 199.78 ms │   194.49 / 198.40 ±4.08 / 205.80 ms │     no change │
│ QQuery 15 │  351.09 / 353.63 ±1.77 / 356.11 ms │   334.24 / 352.93 ±9.60 / 360.25 ms │     no change │
│ QQuery 16 │     83.52 / 88.26 ±6.00 / 99.94 ms │      74.54 / 77.42 ±3.57 / 84.11 ms │ +1.14x faster │
│ QQuery 17 │ 762.01 / 829.02 ±52.11 / 873.27 ms │  693.39 / 703.33 ±11.48 / 725.76 ms │ +1.18x faster │
│ QQuery 18 │ 771.48 / 797.11 ±25.85 / 845.55 ms │   716.33 / 731.66 ±9.60 / 746.05 ms │ +1.09x faster │
│ QQuery 19 │ 286.88 / 298.28 ±10.49 / 317.02 ms │  270.66 / 286.58 ±19.84 / 324.34 ms │     no change │
│ QQuery 20 │  330.80 / 334.80 ±3.30 / 340.27 ms │   303.50 / 305.68 ±1.73 / 308.76 ms │ +1.10x faster │
│ QQuery 21 │ 836.96 / 845.87 ±11.01 / 866.15 ms │  754.59 / 771.43 ±15.27 / 798.16 ms │ +1.10x faster │
│ QQuery 22 │     82.92 / 84.82 ±1.05 / 85.86 ms │      80.98 / 83.96 ±1.79 / 86.15 ms │     no change │
└───────────┴────────────────────────────────────┴─────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 8072.33ms │
│ Total Time (perf-strength-reduce-hash-partition)   │ 7541.41ms │
│ Average Time (HEAD)                                │  366.92ms │
│ Average Time (perf-strength-reduce-hash-partition) │  342.79ms │
│ Queries Faster                                     │        12 │
│ Queries Slower                                     │         1 │
│ Queries with No Change                             │         9 │
│ Queries with Failure                               │         0 │
└────────────────────────────────────────────────────┴───────────┘

Resource Usage

tpch10 — base (merge-base)

Metric Value
Wall time 45.0s
Peak memory 12.3 GiB
Avg memory 8.3 GiB
CPU user 432.4s
CPU sys 22.1s
Peak spill 0 B

tpch10 — branch

Metric Value
Wall time 40.0s
Peak memory 12.4 GiB
Avg memory 8.4 GiB
CPU user 404.4s
CPU sys 21.9s
Peak spill 0 B

File an issue against this benchmark runner

Copy link
Copy Markdown
Contributor

@adriangb adriangb left a comment

Choose a reason for hiding this comment

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

This is very nice @Dandandan and benchmarks look great. Some small nits / cleanups left.

timer: metrics::Time,
) -> Self {
Self {
) -> Result<Self> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Technically a breaking change but I think this is one of those things that is more so public for the workspace than it is for end users. So may not be worth calling out.

Comment on lines -578 to +648
num_partitions: partitions,
num_partitions: _,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Dead code? Should we remove?

@adriangb
Copy link
Copy Markdown
Contributor

I think some more docstrings linking to explainations of what this is, other example implementations, why it helps ,etc. would be nice

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves performance of hash-based repartitioning by replacing per-row % num_partitions with a strength-reduced remainder computation specialized for the fixed partition count.

Changes:

  • Added StrengthReducedU64 (power-of-two mask or reciprocal-based reduction) to compute hash % num_partitions faster.
  • Updated hash repartitioning to use the precomputed reducer instead of %.
  • Added unit tests for reducer correctness and a new error path when num_partitions == 0.
Comments suppressed due to low confidence (1)

datafusion/physical-plan/src/repartition/mod.rs:596

  • The docstring for BatchPartitioner::try_new says it only errors when the partitioning scheme is unsupported, but Partitioning::Hash(_, 0) will now also error via new_hash_partitioner. Please update the docs (or behavior) so callers can rely on the documented error conditions.
    /// Create a new [`BatchPartitioner`] based on the provided [`Partitioning`] scheme.
    ///
    /// This is a convenience constructor that delegates to the specialized
    /// hash or round-robin constructors depending on the partitioning variant.
    ///
    /// # Parameters
    /// - `partitioning`: Partitioning scheme to apply (hash or round-robin).
    /// - `timer`: Metric used to record time spent during repartitioning.
    /// - `input_partition`: Index of the current input partition.
    /// - `num_input_partitions`: Total number of input partitions.
    ///
    /// # Errors
    /// Returns an error if the provided partitioning scheme is not supported.
    pub fn try_new(
        partitioning: Partitioning,
        timer: metrics::Time,
        input_partition: usize,
        num_input_partitions: usize,
    ) -> Result<Self> {
        match partitioning {
            Partitioning::Hash(exprs, num_partitions) => {
                Self::new_hash_partitioner(exprs, num_partitions, timer)
            }
            Partitioning::RoundRobinBatch(num_partitions) => {
                Ok(Self::new_round_robin_partitioner(
                    num_partitions,
                    timer,
                    input_partition,
                    num_input_partitions,
                ))
            }
            other => {
                not_impl_err!("Unsupported repartitioning scheme {other:?}")
            }
        }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 516 to 535
pub fn new_hash_partitioner(
exprs: Vec<Arc<dyn PhysicalExpr>>,
num_partitions: usize,
timer: metrics::Time,
) -> Self {
Self {
) -> Result<Self> {
if num_partitions == 0 {
return internal_err!("Hash repartition requires at least one partition");
}

Ok(Self {
state: BatchPartitionerState::Hash {
exprs,
num_partitions,
partition_reducer: StrengthReducedU64::new(num_partitions as u64),
hash_buffer: vec![],
indices: vec![vec![]; num_partitions],
},
timer,
}
})
}
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

new_hash_partitioner is pub in the datafusion-physical-plan crate, but this change makes it fallible (-> Result<Self>) and introduces a new runtime error for num_partitions == 0. That is a breaking public API change for downstream crates. Consider preserving the existing signature (e.g., keep new_hash_partitioner infallible and add a new try_new_hash_partitioner / new_hash_partitioner_checked), or reduce visibility if this is intended to be internal-only.

Copilot uses AI. Check for mistakes.
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.

Use strength-reduce to speed up modulo hash-repartition

4 participants