Skip to content

Reuse hash values during Aggregate(partial) -> Repartition -> Aggregate(final)#23720

Draft
gabotechs wants to merge 5 commits into
mainfrom
gabotechs/reuse-hashes
Draft

Reuse hash values during Aggregate(partial) -> Repartition -> Aggregate(final)#23720
gabotechs wants to merge 5 commits into
mainfrom
gabotechs/reuse-hashes

Conversation

@gabotechs

@gabotechs gabotechs commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Still in draft 🙈, expect heavy changes

Which issue does this PR close?

Rationale for this change

During partial + final aggregations, in order to accumulate + repartition data cross partitions, a hash is computed over the grouping expressions.

This hash is computed 3 times:

Aggregate(final): 3rd time hash computed 
  Repartition: 2nd time hash computed
    Aggregate(partial): 1st time hash computed

And depending on what's getting hashed, it can be an expensive operation (e.g., hashing arbitrary length strings).

This PR introduces a mechanism that allows reusing the hashes across different operators, by propagating them under an internal column in the schema:

Aggregate(final): precomputed 
  Repartition: precomputed
    Aggregate(partial): 1st time hash computed

⚠️ needs #23719 first

What changes are included in this PR?

Introduces to core structs that aim to set the foundations of hash reuse across operators:

  • ExpressionHasher: handles hashing columns based on expressions, maintaining an internal buffer for reusing allocations, stamping the hashes into internal columns so that they can cross operator boundaries, and retrieving those hashes from the internal columns if present.
  • GroupHashTracker: during groupings, it keeps track of the per-group hashes so that operators that aggregate can emit them as an additional internal column for reuse purposes.

These two structs are used across all the aggregation implementations in the codebase for reusing hashes.

Additionally, some metrics for tracking how many hashes where computed VS how many hashes where reused are also added to operators that need to deal with hashes

Are these changes tested?

Yes, by existing and new tests.

Are there any user-facing changes?

No, this should be transparent to users.

@github-actions github-actions Bot added physical-expr Changes to the physical-expr crates core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) physical-plan Changes to the physical-plan crate labels Jul 20, 2026
@gabotechs

Copy link
Copy Markdown
Contributor Author

run benchmarks tpch10

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c5021231995-1168-7p6z5 6.12.85+ #1 SMP Mon May 11 08:17:35 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 gabotechs/reuse-hashes (45fa16b) to d0304b3 (merge-base) diff using: tpch10
Results will be posted here when complete


File an issue against this benchmark runner

@codecov-commenter

codecov-commenter commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.99106% with 94 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@d0304b3). Learn more about missing BASE report.

Files with missing lines Patch % Lines
datafusion/physical-plan/src/aggregates/mod.rs 84.48% 5 Missing and 22 partials ⚠️
...c/aggregates/aggregate_hash_table/partial_table.rs 53.57% 12 Missing and 1 partial ⚠️
...hysical-plan/src/aggregates/grouped_hash_stream.rs 82.08% 6 Missing and 6 partials ⚠️
datafusion/physical-plan/src/display.rs 60.00% 11 Missing and 1 partial ⚠️
datafusion/physical-plan/src/repartition/mod.rs 72.22% 5 Missing ⚠️
datafusion/physical-plan/src/repartition/hash.rs 96.03% 1 Missing and 3 partials ⚠️
...plan/src/aggregates/aggregate_hash_table/common.rs 92.30% 1 Missing and 2 partials ⚠️
.../aggregates/aggregate_hash_table/common_ordered.rs 92.50% 1 Missing and 2 partials ⚠️
...fusion/physical-plan/src/aggregates/hash_stream.rs 57.14% 3 Missing ⚠️
...c/aggregates/group_values/single_group_by/bytes.rs 83.33% 0 Missing and 2 partials ⚠️
... and 6 more
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #23720   +/-   ##
=======================================
  Coverage        ?   80.72%           
=======================================
  Files           ?     1090           
  Lines           ?   369389           
  Branches        ?   369389           
=======================================
  Hits            ?   298172           
  Misses          ?    53437           
  Partials        ?    17780           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@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 gabotechs_reuse-hashes
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                               HEAD ┃             gabotechs_reuse-hashes ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │  320.85 / 331.92 ±7.96 / 340.88 ms │  312.69 / 314.85 ±1.67 / 317.65 ms │ +1.05x faster │
│ QQuery 2  │  105.07 / 108.19 ±2.69 / 112.49 ms │  100.73 / 106.51 ±2.97 / 109.27 ms │     no change │
│ QQuery 3  │  234.92 / 240.88 ±5.65 / 251.03 ms │  230.58 / 234.51 ±2.00 / 236.05 ms │     no change │
│ QQuery 4  │  114.46 / 116.01 ±1.29 / 117.60 ms │  115.01 / 120.19 ±4.06 / 126.33 ms │     no change │
│ QQuery 5  │  370.48 / 373.21 ±2.20 / 377.12 ms │ 357.37 / 387.40 ±16.32 / 403.38 ms │     no change │
│ QQuery 6  │  125.29 / 129.15 ±4.09 / 136.63 ms │  124.83 / 127.69 ±3.54 / 134.55 ms │     no change │
│ QQuery 7  │  478.69 / 492.00 ±9.59 / 506.68 ms │  463.94 / 472.24 ±9.36 / 487.98 ms │     no change │
│ QQuery 8  │  386.11 / 393.69 ±5.65 / 402.18 ms │  382.55 / 393.75 ±8.61 / 408.81 ms │     no change │
│ QQuery 9  │ 553.49 / 566.83 ±10.35 / 581.64 ms │ 542.05 / 559.87 ±13.41 / 575.87 ms │     no change │
│ QQuery 10 │  302.70 / 317.01 ±8.84 / 329.27 ms │  295.60 / 307.62 ±9.06 / 322.05 ms │     no change │
│ QQuery 11 │    86.52 / 90.19 ±6.68 / 103.55 ms │     84.34 / 85.72 ±1.34 / 88.18 ms │     no change │
│ QQuery 12 │  178.46 / 185.66 ±7.65 / 200.44 ms │ 175.73 / 183.56 ±11.51 / 206.34 ms │     no change │
│ QQuery 13 │  308.19 / 319.07 ±7.57 / 328.79 ms │  289.96 / 296.44 ±4.78 / 303.19 ms │ +1.08x faster │
│ QQuery 14 │  185.78 / 192.00 ±6.12 / 200.79 ms │  184.99 / 188.83 ±3.50 / 194.79 ms │     no change │
│ QQuery 15 │  329.36 / 333.10 ±3.26 / 338.35 ms │ 308.04 / 324.79 ±13.46 / 336.84 ms │     no change │
│ QQuery 16 │     69.20 / 76.51 ±6.39 / 88.34 ms │     63.04 / 71.43 ±7.97 / 85.83 ms │ +1.07x faster │
│ QQuery 17 │  742.73 / 755.05 ±8.92 / 766.14 ms │  635.15 / 645.89 ±9.78 / 660.24 ms │ +1.17x faster │
│ QQuery 18 │ 686.79 / 715.20 ±26.25 / 754.62 ms │ 677.82 / 697.62 ±12.34 / 715.79 ms │     no change │
│ QQuery 19 │ 247.10 / 259.89 ±10.51 / 271.64 ms │ 244.05 / 258.05 ±10.25 / 268.05 ms │     no change │
│ QQuery 20 │ 276.35 / 296.77 ±11.61 / 308.61 ms │  279.25 / 293.77 ±8.77 / 305.48 ms │     no change │
│ QQuery 21 │ 684.11 / 711.79 ±22.61 / 741.10 ms │  658.65 / 663.88 ±3.59 / 668.72 ms │ +1.07x faster │
│ QQuery 22 │     62.11 / 65.07 ±2.54 / 69.60 ms │     59.47 / 62.52 ±1.76 / 64.78 ms │     no change │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                     ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                     │ 7069.21ms │
│ Total Time (gabotechs_reuse-hashes)   │ 6797.12ms │
│ Average Time (HEAD)                   │  321.33ms │
│ Average Time (gabotechs_reuse-hashes) │  308.96ms │
│ Queries Faster                        │         5 │
│ Queries Slower                        │         0 │
│ Queries with No Change                │        17 │
│ Queries with Failure                  │         0 │
└───────────────────────────────────────┴───────────┘

Resource Usage

tpch10 — base (merge-base)

Metric Value
Wall time 40.0s
Peak memory 5.0 GiB
Avg memory 1.4 GiB
CPU user 358.6s
CPU sys 21.3s
Peak spill 0 B

tpch10 — branch

Metric Value
Wall time 35.0s
Peak memory 5.3 GiB
Avg memory 1.5 GiB
CPU user 344.2s
CPU sys 20.5s
Peak spill 0 B

File an issue against this benchmark runner

@gabotechs gabotechs changed the title gabotechs/reuse-hashes Reuse hash values during Aggregate(partial) -> Repartition -> Aggregate(final) Jul 20, 2026
@gabotechs

Copy link
Copy Markdown
Contributor Author

run benchmarks clickbench_partitioned

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown

Thank you for opening this pull request!

Reviewer note: cargo-semver-checks reported the current version number is not SemVer-compatible with the changes in this pull request (compared against the base branch).

Details
     Cloning apache/main
    Building datafusion v54.0.0 (current)
       Built [ 103.826s] (current)
     Parsing datafusion v54.0.0 (current)
      Parsed [   0.034s] (current)
    Building datafusion v54.0.0 (baseline)
       Built [ 102.764s] (baseline)
     Parsing datafusion v54.0.0 (baseline)
      Parsed [   0.035s] (baseline)
    Checking datafusion v54.0.0 -> v54.0.0 (no change; assume patch)
     Checked [   0.579s] 223 checks: 223 pass, 30 skip
     Summary no semver update required
    Finished [ 209.184s] datafusion
    Building datafusion-physical-expr-common v54.0.0 (current)
       Built [  23.310s] (current)
     Parsing datafusion-physical-expr-common v54.0.0 (current)
      Parsed [   0.021s] (current)
    Building datafusion-physical-expr-common v54.0.0 (baseline)
       Built [  23.515s] (baseline)
     Parsing datafusion-physical-expr-common v54.0.0 (baseline)
      Parsed [   0.022s] (baseline)
    Checking datafusion-physical-expr-common v54.0.0 -> v54.0.0 (no change; assume patch)
     Checked [   0.228s] 223 checks: 223 pass, 30 skip
     Summary no semver update required
    Finished [  47.759s] datafusion-physical-expr-common
    Building datafusion-physical-plan v54.0.0 (current)
       Built [  36.161s] (current)
     Parsing datafusion-physical-plan v54.0.0 (current)
      Parsed [   0.140s] (current)
    Building datafusion-physical-plan v54.0.0 (baseline)
       Built [  36.477s] (baseline)
     Parsing datafusion-physical-plan v54.0.0 (baseline)
      Parsed [   0.141s] (baseline)
    Checking datafusion-physical-plan v54.0.0 -> v54.0.0 (no change; assume patch)
     Checked [   0.657s] 223 checks: 222 pass, 1 fail, 0 warn, 30 skip

--- failure trait_method_parameter_count_changed: pub trait method parameter count changed ---

Description:
A trait method now takes a different number of parameters.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#trait-item-signature
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.48.0/src/lints/trait_method_parameter_count_changed.ron

Failed in:
  GroupValues::intern now takes 3 instead of 2 parameters, in file /home/runner/work/datafusion/datafusion/datafusion/physical-plan/src/aggregates/group_values/mod.rs:101

     Summary semver requires new major version: 1 major and 0 minor checks failed
    Finished [  74.647s] datafusion-physical-plan
    Building datafusion-sqllogictest v54.0.0 (current)
       Built [ 180.181s] (current)
     Parsing datafusion-sqllogictest v54.0.0 (current)
      Parsed [   0.022s] (current)
    Building datafusion-sqllogictest v54.0.0 (baseline)
       Built [ 179.933s] (baseline)
     Parsing datafusion-sqllogictest v54.0.0 (baseline)
      Parsed [   0.023s] (baseline)
    Checking datafusion-sqllogictest v54.0.0 -> v54.0.0 (no change; assume patch)
     Checked [   0.090s] 223 checks: 223 pass, 30 skip
     Summary no semver update required
    Finished [ 363.658s] datafusion-sqllogictest

@github-actions github-actions Bot added the auto detected api change Auto detected API change label Jul 20, 2026
@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c5021606365-1169-whzrv 6.12.85+ #1 SMP Mon May 11 08:17:35 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 gabotechs/reuse-hashes (45fa16b) to d0304b3 (merge-base) diff using: clickbench_partitioned
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and gabotechs_reuse-hashes
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                gabotechs_reuse-hashes ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.20 / 3.88 ±5.30 / 14.48 ms │          1.21 / 3.89 ±5.29 / 14.47 ms │     no change │
│ QQuery 1  │        12.62 / 13.16 ±0.58 / 14.29 ms │        12.75 / 13.25 ±0.26 / 13.53 ms │     no change │
│ QQuery 2  │        36.00 / 36.26 ±0.19 / 36.56 ms │        37.01 / 37.61 ±0.52 / 38.42 ms │     no change │
│ QQuery 3  │        30.77 / 31.79 ±1.10 / 33.65 ms │        30.89 / 31.35 ±0.42 / 32.05 ms │     no change │
│ QQuery 4  │     223.11 / 226.15 ±3.98 / 233.91 ms │     234.29 / 240.38 ±3.42 / 244.00 ms │  1.06x slower │
│ QQuery 5  │     268.95 / 273.10 ±3.36 / 279.08 ms │     266.55 / 270.09 ±3.24 / 275.36 ms │     no change │
│ QQuery 6  │           1.25 / 1.41 ±0.23 / 1.85 ms │           1.22 / 1.46 ±0.36 / 2.16 ms │     no change │
│ QQuery 7  │        13.62 / 13.83 ±0.15 / 13.97 ms │        14.02 / 14.22 ±0.16 / 14.45 ms │     no change │
│ QQuery 8  │     322.37 / 325.83 ±1.81 / 327.67 ms │     332.82 / 336.12 ±3.26 / 341.85 ms │     no change │
│ QQuery 9  │     450.49 / 457.61 ±4.46 / 463.61 ms │     461.27 / 476.43 ±7.99 / 483.59 ms │     no change │
│ QQuery 10 │        69.89 / 71.18 ±1.34 / 73.70 ms │        69.70 / 72.98 ±4.00 / 80.65 ms │     no change │
│ QQuery 11 │        82.29 / 83.68 ±1.46 / 85.94 ms │        81.99 / 83.03 ±0.76 / 84.32 ms │     no change │
│ QQuery 12 │     265.97 / 271.05 ±3.59 / 274.71 ms │     260.42 / 266.36 ±7.22 / 279.06 ms │     no change │
│ QQuery 13 │    369.49 / 383.84 ±10.55 / 398.70 ms │    351.90 / 366.64 ±10.36 / 378.69 ms │     no change │
│ QQuery 14 │     282.35 / 290.48 ±8.42 / 306.21 ms │     274.80 / 279.20 ±3.45 / 285.16 ms │     no change │
│ QQuery 15 │     268.33 / 276.19 ±8.74 / 292.62 ms │    286.96 / 297.26 ±10.48 / 316.97 ms │  1.08x slower │
│ QQuery 16 │     611.52 / 617.95 ±6.19 / 628.47 ms │     604.43 / 613.33 ±6.65 / 624.25 ms │     no change │
│ QQuery 17 │    613.94 / 630.61 ±13.86 / 652.86 ms │     607.52 / 616.77 ±9.78 / 632.43 ms │     no change │
│ QQuery 18 │ 1247.08 / 1267.39 ±16.17 / 1287.42 ms │ 1238.92 / 1254.76 ±12.22 / 1276.48 ms │     no change │
│ QQuery 19 │        28.17 / 31.06 ±5.42 / 41.89 ms │        28.12 / 28.30 ±0.21 / 28.69 ms │ +1.10x faster │
│ QQuery 20 │    512.51 / 525.15 ±11.98 / 545.85 ms │     518.59 / 522.13 ±3.11 / 526.67 ms │     no change │
│ QQuery 21 │     515.79 / 521.36 ±7.39 / 535.71 ms │     518.29 / 523.25 ±4.06 / 530.29 ms │     no change │
│ QQuery 22 │    980.12 / 992.16 ±7.10 / 1000.53 ms │  985.48 / 1004.33 ±16.13 / 1025.68 ms │     no change │
│ QQuery 23 │ 3063.48 / 3110.43 ±35.84 / 3152.22 ms │ 3034.18 / 3089.36 ±33.35 / 3135.87 ms │     no change │
│ QQuery 24 │        41.39 / 43.74 ±1.60 / 45.30 ms │        41.20 / 49.98 ±9.73 / 65.42 ms │  1.14x slower │
│ QQuery 25 │     110.96 / 112.06 ±1.24 / 114.07 ms │     110.80 / 113.28 ±2.39 / 117.71 ms │     no change │
│ QQuery 26 │        41.58 / 45.71 ±5.14 / 53.80 ms │        41.76 / 43.39 ±1.37 / 45.88 ms │ +1.05x faster │
│ QQuery 27 │     507.87 / 522.60 ±9.39 / 537.20 ms │     525.36 / 528.13 ±2.82 / 531.61 ms │     no change │
│ QQuery 28 │ 2908.66 / 2929.85 ±17.43 / 2959.48 ms │ 2899.60 / 2923.09 ±21.29 / 2948.76 ms │     no change │
│ QQuery 29 │        40.98 / 45.98 ±7.13 / 59.61 ms │        40.94 / 46.25 ±7.62 / 60.92 ms │     no change │
│ QQuery 30 │    299.66 / 308.62 ±10.78 / 327.81 ms │     301.95 / 311.83 ±9.14 / 327.77 ms │     no change │
│ QQuery 31 │     286.64 / 294.45 ±5.80 / 302.09 ms │     287.29 / 300.41 ±6.90 / 307.20 ms │     no change │
│ QQuery 32 │    918.40 / 941.02 ±21.19 / 974.67 ms │   948.08 / 986.28 ±21.84 / 1007.37 ms │     no change │
│ QQuery 33 │ 1439.40 / 1462.53 ±21.06 / 1499.39 ms │ 1425.61 / 1484.32 ±34.45 / 1523.33 ms │     no change │
│ QQuery 34 │ 1441.10 / 1482.56 ±33.03 / 1520.31 ms │ 1458.41 / 1490.50 ±21.62 / 1522.92 ms │     no change │
│ QQuery 35 │    273.79 / 313.29 ±63.90 / 440.60 ms │    300.29 / 326.40 ±26.05 / 361.21 ms │     no change │
│ QQuery 36 │        65.63 / 69.76 ±3.95 / 76.80 ms │        64.77 / 71.35 ±8.40 / 87.44 ms │     no change │
│ QQuery 37 │        35.51 / 37.24 ±2.14 / 41.35 ms │        35.77 / 38.14 ±2.47 / 42.91 ms │     no change │
│ QQuery 38 │        40.61 / 48.46 ±8.38 / 62.13 ms │        40.75 / 43.54 ±1.48 / 44.83 ms │ +1.11x faster │
│ QQuery 39 │    132.31 / 148.01 ±10.76 / 160.41 ms │     132.26 / 142.48 ±5.49 / 147.86 ms │     no change │
│ QQuery 40 │        14.54 / 17.53 ±5.74 / 29.02 ms │        14.07 / 14.62 ±0.36 / 15.18 ms │ +1.20x faster │
│ QQuery 41 │        13.54 / 14.13 ±0.60 / 15.27 ms │        13.75 / 15.52 ±1.72 / 18.09 ms │  1.10x slower │
│ QQuery 42 │        12.92 / 14.47 ±2.49 / 19.42 ms │        13.74 / 14.71 ±1.54 / 17.78 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                     ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                     │ 19307.59ms │
│ Total Time (gabotechs_reuse-hashes)   │ 19386.72ms │
│ Average Time (HEAD)                   │   449.01ms │
│ Average Time (gabotechs_reuse-hashes) │   450.85ms │
│ Queries Faster                        │          4 │
│ Queries Slower                        │          4 │
│ Queries with No Change                │         35 │
│ Queries with Failure                  │          0 │
└───────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 100.0s
Peak memory 11.2 GiB
Avg memory 4.3 GiB
CPU user 992.8s
CPU sys 67.6s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 100.0s
Peak memory 11.8 GiB
Avg memory 4.4 GiB
CPU user 987.7s
CPU sys 70.5s
Peak spill 0 B

File an issue against this benchmark runner

@gabotechs

Copy link
Copy Markdown
Contributor Author

run benchmarks tpcds

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c5021810574-1173-4wh5w 6.12.85+ #1 SMP Mon May 11 08:17:35 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 gabotechs/reuse-hashes (45fa16b) to d0304b3 (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 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 gabotechs_reuse-hashes
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                gabotechs_reuse-hashes ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.42 / 6.01 ±0.98 / 7.97 ms │           5.53 / 6.03 ±0.95 / 7.93 ms │     no change │
│ QQuery 2  │        81.94 / 82.47 ±0.34 / 82.85 ms │        84.47 / 84.80 ±0.27 / 85.18 ms │     no change │
│ QQuery 3  │        30.19 / 30.43 ±0.19 / 30.63 ms │        30.01 / 30.44 ±0.32 / 30.97 ms │     no change │
│ QQuery 4  │     496.25 / 500.52 ±3.25 / 505.18 ms │     494.69 / 500.63 ±4.82 / 507.70 ms │     no change │
│ QQuery 5  │        52.81 / 53.15 ±0.36 / 53.81 ms │        52.60 / 53.09 ±0.35 / 53.66 ms │     no change │
│ QQuery 6  │        36.83 / 37.46 ±0.39 / 37.92 ms │        37.15 / 37.81 ±0.60 / 38.88 ms │     no change │
│ QQuery 7  │       96.05 / 97.65 ±1.75 / 100.86 ms │        95.71 / 96.70 ±0.74 / 97.93 ms │     no change │
│ QQuery 8  │        37.43 / 38.11 ±0.61 / 39.03 ms │        38.09 / 38.57 ±0.35 / 39.11 ms │     no change │
│ QQuery 9  │        54.34 / 56.22 ±1.76 / 59.54 ms │        54.62 / 56.05 ±1.16 / 57.87 ms │     no change │
│ QQuery 10 │        64.46 / 64.82 ±0.43 / 65.67 ms │        64.06 / 64.52 ±0.43 / 65.23 ms │     no change │
│ QQuery 11 │     306.15 / 312.66 ±4.79 / 318.57 ms │     305.22 / 310.21 ±3.54 / 316.13 ms │     no change │
│ QQuery 12 │        29.21 / 29.64 ±0.26 / 29.93 ms │        29.30 / 29.47 ±0.17 / 29.69 ms │     no change │
│ QQuery 13 │     119.56 / 122.06 ±2.13 / 125.94 ms │     120.02 / 122.95 ±4.62 / 132.11 ms │     no change │
│ QQuery 14 │     416.60 / 424.07 ±6.47 / 436.13 ms │     420.62 / 428.09 ±6.29 / 437.62 ms │     no change │
│ QQuery 15 │        57.93 / 58.55 ±0.44 / 59.04 ms │        57.51 / 58.16 ±0.39 / 58.54 ms │     no change │
│ QQuery 16 │           6.62 / 6.77 ±0.21 / 7.19 ms │           6.57 / 6.78 ±0.26 / 7.29 ms │     no change │
│ QQuery 17 │        81.64 / 82.38 ±1.22 / 84.81 ms │        81.86 / 82.62 ±1.03 / 84.62 ms │     no change │
│ QQuery 18 │     126.98 / 129.62 ±3.27 / 135.76 ms │     125.81 / 127.83 ±2.38 / 132.49 ms │     no change │
│ QQuery 19 │        42.66 / 42.87 ±0.22 / 43.30 ms │        42.55 / 42.97 ±0.24 / 43.21 ms │     no change │
│ QQuery 20 │        36.12 / 36.99 ±0.85 / 38.43 ms │        36.50 / 37.32 ±0.88 / 38.81 ms │     no change │
│ QQuery 21 │        17.71 / 18.06 ±0.30 / 18.52 ms │        18.11 / 18.23 ±0.06 / 18.28 ms │     no change │
│ QQuery 22 │        64.39 / 64.69 ±0.28 / 65.18 ms │        63.61 / 64.46 ±0.48 / 64.96 ms │     no change │
│ QQuery 23 │     347.86 / 350.60 ±1.85 / 352.69 ms │     357.30 / 363.14 ±3.66 / 367.55 ms │     no change │
│ QQuery 24 │     228.13 / 231.86 ±6.07 / 243.95 ms │     228.63 / 232.83 ±5.19 / 242.63 ms │     no change │
│ QQuery 25 │     111.67 / 114.19 ±1.98 / 117.31 ms │     111.62 / 113.07 ±0.92 / 114.43 ms │     no change │
│ QQuery 26 │        59.44 / 60.53 ±1.07 / 62.50 ms │        58.43 / 59.14 ±0.55 / 60.12 ms │     no change │
│ QQuery 27 │           6.32 / 6.51 ±0.16 / 6.81 ms │           6.17 / 6.28 ±0.15 / 6.58 ms │     no change │
│ QQuery 28 │        57.90 / 61.68 ±1.92 / 63.15 ms │        58.18 / 61.65 ±1.75 / 62.95 ms │     no change │
│ QQuery 29 │      98.70 / 100.76 ±2.22 / 103.76 ms │      98.31 / 103.54 ±4.47 / 111.85 ms │     no change │
│ QQuery 30 │        32.96 / 33.60 ±0.60 / 34.40 ms │        32.73 / 33.35 ±0.40 / 33.89 ms │     no change │
│ QQuery 31 │     113.74 / 114.27 ±0.34 / 114.66 ms │     114.77 / 115.90 ±1.55 / 118.87 ms │     no change │
│ QQuery 32 │        20.98 / 21.19 ±0.12 / 21.34 ms │        21.05 / 21.35 ±0.19 / 21.53 ms │     no change │
│ QQuery 33 │        38.44 / 41.39 ±2.99 / 45.64 ms │        39.16 / 39.25 ±0.11 / 39.45 ms │ +1.05x faster │
│ QQuery 34 │        10.01 / 10.20 ±0.17 / 10.52 ms │        10.02 / 10.41 ±0.30 / 10.83 ms │     no change │
│ QQuery 35 │        74.45 / 74.97 ±0.46 / 75.81 ms │        73.86 / 74.35 ±0.41 / 74.90 ms │     no change │
│ QQuery 36 │           5.80 / 5.95 ±0.24 / 6.43 ms │           5.78 / 5.98 ±0.19 / 6.34 ms │     no change │
│ QQuery 37 │           6.88 / 7.00 ±0.09 / 7.14 ms │           6.81 / 6.94 ±0.08 / 7.05 ms │     no change │
│ QQuery 38 │        63.30 / 64.01 ±1.05 / 66.06 ms │        64.63 / 65.89 ±1.30 / 68.37 ms │     no change │
│ QQuery 39 │        90.90 / 92.16 ±1.57 / 95.04 ms │        91.01 / 91.92 ±0.75 / 93.23 ms │     no change │
│ QQuery 40 │        23.73 / 23.90 ±0.16 / 24.14 ms │        23.59 / 23.99 ±0.21 / 24.14 ms │     no change │
│ QQuery 41 │        11.67 / 11.83 ±0.19 / 12.19 ms │        11.57 / 11.84 ±0.20 / 12.12 ms │     no change │
│ QQuery 42 │        24.25 / 24.66 ±0.42 / 25.37 ms │        24.48 / 24.86 ±0.29 / 25.37 ms │     no change │
│ QQuery 43 │           4.99 / 5.09 ±0.15 / 5.37 ms │           5.08 / 5.17 ±0.13 / 5.42 ms │     no change │
│ QQuery 44 │           9.52 / 9.57 ±0.07 / 9.71 ms │           9.55 / 9.74 ±0.13 / 9.93 ms │     no change │
│ QQuery 45 │        38.41 / 39.37 ±0.86 / 40.96 ms │        39.40 / 41.57 ±1.92 / 44.38 ms │  1.06x slower │
│ QQuery 46 │        11.87 / 12.30 ±0.42 / 13.07 ms │        12.51 / 12.93 ±0.30 / 13.42 ms │  1.05x slower │
│ QQuery 47 │     229.25 / 235.40 ±4.71 / 240.67 ms │     230.93 / 233.24 ±2.83 / 237.59 ms │     no change │
│ QQuery 48 │       97.56 / 98.99 ±1.61 / 101.72 ms │        97.03 / 97.67 ±0.52 / 98.37 ms │     no change │
│ QQuery 49 │        77.64 / 80.30 ±3.97 / 88.18 ms │        77.79 / 79.86 ±1.94 / 83.10 ms │     no change │
│ QQuery 50 │        60.42 / 61.82 ±1.26 / 63.35 ms │        59.82 / 60.59 ±0.39 / 60.91 ms │     no change │
│ QQuery 51 │        93.06 / 93.87 ±0.73 / 95.02 ms │       94.06 / 96.61 ±2.46 / 101.09 ms │     no change │
│ QQuery 52 │        24.61 / 26.04 ±1.85 / 29.67 ms │        24.57 / 24.73 ±0.15 / 24.99 ms │ +1.05x faster │
│ QQuery 53 │        29.90 / 31.07 ±1.98 / 35.01 ms │        29.97 / 30.39 ±0.34 / 31.01 ms │     no change │
│ QQuery 54 │        56.73 / 57.01 ±0.35 / 57.69 ms │        56.25 / 56.55 ±0.30 / 57.10 ms │     no change │
│ QQuery 55 │        24.09 / 24.42 ±0.23 / 24.76 ms │        24.31 / 24.55 ±0.21 / 24.83 ms │     no change │
│ QQuery 56 │        40.09 / 40.26 ±0.15 / 40.50 ms │        39.71 / 40.16 ±0.37 / 40.60 ms │     no change │
│ QQuery 57 │     178.57 / 180.99 ±2.41 / 185.18 ms │     175.70 / 179.59 ±2.60 / 182.62 ms │     no change │
│ QQuery 58 │     117.30 / 119.59 ±1.95 / 122.70 ms │     117.09 / 118.56 ±1.18 / 120.22 ms │     no change │
│ QQuery 59 │     119.56 / 120.66 ±0.62 / 121.34 ms │     119.66 / 121.16 ±1.83 / 124.65 ms │     no change │
│ QQuery 60 │        40.24 / 41.13 ±0.79 / 42.49 ms │        40.60 / 41.05 ±0.34 / 41.57 ms │     no change │
│ QQuery 61 │        12.23 / 12.39 ±0.15 / 12.68 ms │        12.20 / 12.35 ±0.22 / 12.79 ms │     no change │
│ QQuery 62 │        47.60 / 47.83 ±0.19 / 48.15 ms │        46.81 / 47.15 ±0.21 / 47.44 ms │     no change │
│ QQuery 63 │        30.12 / 30.70 ±0.37 / 31.13 ms │        30.08 / 30.52 ±0.37 / 31.12 ms │     no change │
│ QQuery 64 │     416.61 / 422.53 ±5.22 / 428.94 ms │     411.23 / 417.54 ±4.41 / 422.19 ms │     no change │
│ QQuery 65 │     154.78 / 156.63 ±2.00 / 160.29 ms │     151.37 / 153.64 ±1.75 / 156.36 ms │     no change │
│ QQuery 66 │        80.84 / 81.44 ±0.46 / 82.09 ms │        80.61 / 81.18 ±0.43 / 81.85 ms │     no change │
│ QQuery 67 │     244.17 / 253.63 ±8.16 / 263.20 ms │     236.52 / 245.06 ±7.24 / 256.59 ms │     no change │
│ QQuery 68 │        12.15 / 12.82 ±0.75 / 14.14 ms │        11.82 / 12.19 ±0.36 / 12.87 ms │     no change │
│ QQuery 69 │        59.33 / 59.98 ±0.63 / 61.10 ms │        58.13 / 58.63 ±0.39 / 59.23 ms │     no change │
│ QQuery 70 │     108.27 / 110.24 ±2.81 / 115.80 ms │     106.70 / 110.30 ±3.54 / 117.00 ms │     no change │
│ QQuery 71 │        36.17 / 39.76 ±5.27 / 50.14 ms │        36.18 / 36.74 ±0.50 / 37.68 ms │ +1.08x faster │
│ QQuery 72 │ 2094.72 / 2197.58 ±59.40 / 2277.24 ms │ 2084.18 / 2157.67 ±58.38 / 2250.93 ms │     no change │
│ QQuery 73 │         9.82 / 10.03 ±0.28 / 10.58 ms │         9.78 / 10.51 ±0.51 / 11.32 ms │     no change │
│ QQuery 74 │     177.31 / 181.77 ±7.77 / 197.29 ms │     175.09 / 177.93 ±1.92 / 180.89 ms │     no change │
│ QQuery 75 │     150.09 / 152.55 ±2.32 / 156.79 ms │     150.26 / 155.00 ±7.82 / 170.60 ms │     no change │
│ QQuery 76 │        36.08 / 36.59 ±0.36 / 37.10 ms │        36.36 / 36.68 ±0.16 / 36.81 ms │     no change │
│ QQuery 77 │        62.71 / 68.15 ±9.39 / 86.85 ms │        62.67 / 67.12 ±7.12 / 81.26 ms │     no change │
│ QQuery 78 │     200.74 / 206.89 ±7.25 / 220.51 ms │     202.05 / 207.60 ±4.21 / 212.45 ms │     no change │
│ QQuery 79 │        68.30 / 68.91 ±0.47 / 69.60 ms │        68.20 / 68.60 ±0.38 / 69.16 ms │     no change │
│ QQuery 80 │      99.78 / 103.37 ±3.58 / 110.23 ms │      99.42 / 100.71 ±0.83 / 101.97 ms │     no change │
│ QQuery 81 │        26.26 / 26.63 ±0.32 / 27.18 ms │        26.50 / 26.85 ±0.32 / 27.28 ms │     no change │
│ QQuery 82 │        16.80 / 17.01 ±0.20 / 17.34 ms │        17.07 / 17.22 ±0.10 / 17.37 ms │     no change │
│ QQuery 83 │        40.71 / 41.18 ±0.38 / 41.77 ms │        40.94 / 41.13 ±0.14 / 41.36 ms │     no change │
│ QQuery 84 │        30.95 / 31.82 ±1.24 / 34.29 ms │        30.64 / 30.81 ±0.17 / 31.09 ms │     no change │
│ QQuery 85 │    108.64 / 116.03 ±11.54 / 138.96 ms │     107.47 / 111.92 ±7.35 / 126.56 ms │     no change │
│ QQuery 86 │        25.91 / 26.31 ±0.21 / 26.47 ms │        25.90 / 26.39 ±0.46 / 27.10 ms │     no change │
│ QQuery 87 │        63.40 / 64.92 ±1.08 / 66.47 ms │        64.75 / 65.37 ±0.59 / 66.35 ms │     no change │
│ QQuery 88 │        64.26 / 67.21 ±4.97 / 77.10 ms │        64.51 / 64.81 ±0.34 / 65.44 ms │     no change │
│ QQuery 89 │        36.75 / 37.80 ±0.67 / 38.72 ms │        37.38 / 39.48 ±2.71 / 44.58 ms │     no change │
│ QQuery 90 │        17.20 / 17.55 ±0.18 / 17.74 ms │        17.51 / 17.67 ±0.11 / 17.76 ms │     no change │
│ QQuery 91 │        46.81 / 47.69 ±0.48 / 48.21 ms │        46.59 / 46.88 ±0.25 / 47.32 ms │     no change │
│ QQuery 92 │        30.38 / 30.91 ±0.45 / 31.65 ms │        30.73 / 31.00 ±0.20 / 31.32 ms │     no change │
│ QQuery 93 │        50.70 / 53.00 ±2.86 / 58.58 ms │        50.41 / 51.60 ±0.78 / 52.50 ms │     no change │
│ QQuery 94 │        39.99 / 40.22 ±0.17 / 40.49 ms │        39.91 / 41.52 ±1.96 / 45.33 ms │     no change │
│ QQuery 95 │        82.23 / 82.89 ±0.35 / 83.25 ms │        82.21 / 84.04 ±1.81 / 86.45 ms │     no change │
│ QQuery 96 │        25.01 / 25.20 ±0.20 / 25.52 ms │        24.70 / 24.97 ±0.16 / 25.19 ms │     no change │
│ QQuery 97 │        47.59 / 50.19 ±4.39 / 58.94 ms │        48.50 / 48.91 ±0.37 / 49.60 ms │     no change │
│ QQuery 98 │        43.29 / 44.10 ±0.63 / 44.83 ms │        43.49 / 44.19 ±0.53 / 45.07 ms │     no change │
│ QQuery 99 │        71.18 / 71.82 ±0.52 / 72.64 ms │        71.39 / 71.75 ±0.35 / 72.40 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                     ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                     │ 10170.58ms │
│ Total Time (gabotechs_reuse-hashes)   │ 10111.18ms │
│ Average Time (HEAD)                   │   102.73ms │
│ Average Time (gabotechs_reuse-hashes) │   102.13ms │
│ Queries Faster                        │          3 │
│ Queries Slower                        │          2 │
│ Queries with No Change                │         94 │
│ Queries with Failure                  │          0 │
└───────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 55.0s
Peak memory 1.9 GiB
Avg memory 1.3 GiB
CPU user 233.1s
CPU sys 6.7s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 55.0s
Peak memory 2.1 GiB
Avg memory 1.4 GiB
CPU user 229.7s
CPU sys 6.3s
Peak spill 0 B

File an issue against this benchmark runner

@gabotechs
gabotechs force-pushed the gabotechs/reuse-hashes branch from 45fa16b to 1158083 Compare July 20, 2026 12:00
@gabotechs
gabotechs force-pushed the gabotechs/reuse-hashes branch from 1158083 to 1c84f94 Compare July 20, 2026 13:24
@jayshrivastava

Copy link
Copy Markdown
Contributor

At a highlevel, this change sounds good. It would be interesting to see if the partial aggregation skipping behavior can be disabled with no impact. I think this should do it.

config.execution.skip_partial_aggregation_probe_rows_threshold = usize::MAX;

Since the hashes are re-used the partial aggregation should be less expensive.

@gabotechs

Copy link
Copy Markdown
Contributor Author

Yeah, I can imagine how you'd want to enable this based on the hashing expressions. For example, maybe hashing on a simple int column is not worth it, but it is in a list<string>.

I still want to see if we can reach a situation where this enabled 100% of the times is worth it, that would simplify things a bit.

@Dandandan

Copy link
Copy Markdown
Contributor

Yeah, I can imagine how you'd want to enable this based on the hashing expressions. For example, maybe hashing on a simple int column is not worth it, but it is in a list<string>.

I still want to see if we can reach a situation where this enabled 100% of the times is worth it, that would simplify things a bit.

I think for primitives I found it can be a quite slower to store the hash rather than regenerate it inside a loop as hashing is just is a shift / multiply / xor (potentially SIMD) vs a potential cache miss / extra cache usage.

For (long) strings it can of course be very beneficial.

@Rachelint

Rachelint commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

I think for primitives I found it can be a quite slower to store the hash rather than regenerate it inside a loop as hashing is just is a shift / multiply / xor (potentially SIMD) vs a potential cache miss / extra cache usage.

Agree, what is worse: the internal hash column will be repartitioned and coalesced together with other normal columns, and Uint64Array is actually not small.

run benchmarks clickbench_partitioned

Seems strange that q33 and q34 not get improvement...

@gabotechs

Copy link
Copy Markdown
Contributor Author

run benchmarks tpch10 tpcds clickbench_partitioned

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c5032284181-1199-fm6gh 6.12.85+ #1 SMP Mon May 11 08:17:35 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 gabotechs/reuse-hashes (7d64c1d) to d0304b3 (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 running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c5032284181-1200-2wcmb 6.12.85+ #1 SMP Mon May 11 08:17:35 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 gabotechs/reuse-hashes (7d64c1d) to d0304b3 (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-c5032284181-1201-454hb 6.12.85+ #1 SMP Mon May 11 08:17:35 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 gabotechs/reuse-hashes (7d64c1d) to d0304b3 (merge-base) diff using: clickbench_partitioned
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and gabotechs_reuse-hashes
--------------------
Benchmark tpch_sf10.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                               HEAD ┃             gabotechs_reuse-hashes ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │  309.65 / 317.99 ±7.61 / 328.61 ms │  329.69 / 332.21 ±2.49 / 336.63 ms │     no change │
│ QQuery 2  │  108.71 / 113.94 ±3.91 / 118.24 ms │  111.31 / 113.85 ±1.79 / 116.20 ms │     no change │
│ QQuery 3  │  231.69 / 244.42 ±8.14 / 256.89 ms │  256.85 / 260.56 ±2.89 / 264.61 ms │  1.07x slower │
│ QQuery 4  │  111.78 / 114.17 ±1.72 / 116.80 ms │  120.95 / 124.35 ±2.57 / 127.66 ms │  1.09x slower │
│ QQuery 5  │  348.06 / 357.63 ±5.54 / 363.47 ms │  396.64 / 403.22 ±6.18 / 413.02 ms │  1.13x slower │
│ QQuery 6  │  122.51 / 123.96 ±1.74 / 127.32 ms │  131.66 / 133.34 ±1.12 / 134.95 ms │  1.08x slower │
│ QQuery 7  │ 447.77 / 461.50 ±10.72 / 479.89 ms │ 468.33 / 487.98 ±14.33 / 509.25 ms │  1.06x slower │
│ QQuery 8  │  375.74 / 382.58 ±6.20 / 392.45 ms │  381.67 / 389.27 ±5.79 / 397.72 ms │     no change │
│ QQuery 9  │  547.45 / 555.39 ±5.50 / 564.38 ms │ 549.94 / 585.16 ±35.30 / 637.98 ms │  1.05x slower │
│ QQuery 10 │  303.78 / 308.94 ±7.52 / 323.54 ms │ 301.04 / 316.05 ±14.00 / 340.23 ms │     no change │
│ QQuery 11 │    86.44 / 92.03 ±9.18 / 110.34 ms │    89.64 / 95.97 ±7.66 / 109.74 ms │     no change │
│ QQuery 12 │  178.74 / 187.53 ±6.32 / 195.89 ms │  177.79 / 183.20 ±3.81 / 188.05 ms │     no change │
│ QQuery 13 │ 318.92 / 334.85 ±11.23 / 352.08 ms │ 283.96 / 294.14 ±10.09 / 313.49 ms │ +1.14x faster │
│ QQuery 14 │  173.11 / 180.37 ±6.78 / 192.86 ms │  169.99 / 175.79 ±6.93 / 189.35 ms │     no change │
│ QQuery 15 │  299.30 / 301.13 ±2.23 / 305.39 ms │  300.58 / 302.91 ±1.93 / 305.85 ms │     no change │
│ QQuery 16 │     64.60 / 66.38 ±1.44 / 68.96 ms │     63.21 / 66.13 ±2.57 / 69.83 ms │     no change │
│ QQuery 17 │  617.32 / 627.05 ±6.28 / 636.95 ms │  624.17 / 632.23 ±5.98 / 639.17 ms │     no change │
│ QQuery 18 │ 677.77 / 698.96 ±16.77 / 729.38 ms │ 701.36 / 753.42 ±55.66 / 845.99 ms │  1.08x slower │
│ QQuery 19 │ 244.46 / 262.84 ±21.74 / 300.37 ms │ 243.87 / 257.04 ±16.03 / 283.68 ms │     no change │
│ QQuery 20 │  276.04 / 286.37 ±6.76 / 294.15 ms │  278.22 / 287.66 ±7.47 / 298.45 ms │     no change │
│ QQuery 21 │ 655.18 / 669.03 ±14.72 / 696.34 ms │  647.34 / 660.13 ±8.45 / 670.83 ms │     no change │
│ QQuery 22 │     61.03 / 65.16 ±4.50 / 72.63 ms │     59.15 / 61.83 ±1.72 / 63.81 ms │ +1.05x faster │
└───────────┴────────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                     ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                     │ 6752.23ms │
│ Total Time (gabotechs_reuse-hashes)   │ 6916.43ms │
│ Average Time (HEAD)                   │  306.92ms │
│ Average Time (gabotechs_reuse-hashes) │  314.38ms │
│ Queries Faster                        │         2 │
│ Queries Slower                        │         7 │
│ Queries with No Change                │        13 │
│ Queries with Failure                  │         0 │
└───────────────────────────────────────┴───────────┘

Resource Usage

tpch10 — base (merge-base)

Metric Value
Wall time 35.0s
Peak memory 5.2 GiB
Avg memory 1.5 GiB
CPU user 342.8s
CPU sys 18.4s
Peak spill 0 B

tpch10 — branch

Metric Value
Wall time 35.0s
Peak memory 4.9 GiB
Avg memory 1.5 GiB
CPU user 345.6s
CPU sys 19.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 gabotechs_reuse-hashes
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                gabotechs_reuse-hashes ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.29 / 5.86 ±0.95 / 7.75 ms │           5.38 / 5.86 ±0.88 / 7.61 ms │     no change │
│ QQuery 2  │        80.72 / 80.99 ±0.18 / 81.26 ms │        81.26 / 81.81 ±0.33 / 82.15 ms │     no change │
│ QQuery 3  │        29.86 / 30.18 ±0.29 / 30.72 ms │        29.68 / 29.92 ±0.24 / 30.37 ms │     no change │
│ QQuery 4  │     501.40 / 504.86 ±2.31 / 508.11 ms │     499.41 / 504.40 ±3.76 / 508.86 ms │     no change │
│ QQuery 5  │        52.16 / 52.53 ±0.45 / 53.32 ms │        51.99 / 52.56 ±0.43 / 53.13 ms │     no change │
│ QQuery 6  │        36.67 / 37.13 ±0.45 / 37.96 ms │        36.89 / 37.10 ±0.17 / 37.31 ms │     no change │
│ QQuery 7  │        95.08 / 96.67 ±1.79 / 99.82 ms │       94.98 / 96.49 ±1.97 / 100.38 ms │     no change │
│ QQuery 8  │        37.13 / 37.55 ±0.32 / 38.05 ms │        37.91 / 38.07 ±0.13 / 38.28 ms │     no change │
│ QQuery 9  │        52.84 / 55.56 ±2.49 / 59.79 ms │        51.46 / 53.52 ±1.54 / 56.09 ms │     no change │
│ QQuery 10 │        63.91 / 64.41 ±0.40 / 64.90 ms │        64.29 / 64.77 ±0.43 / 65.31 ms │     no change │
│ QQuery 11 │     313.45 / 317.74 ±3.73 / 322.57 ms │     308.83 / 314.90 ±4.00 / 321.41 ms │     no change │
│ QQuery 12 │        28.78 / 29.01 ±0.18 / 29.32 ms │        29.13 / 29.25 ±0.10 / 29.40 ms │     no change │
│ QQuery 13 │     118.90 / 119.20 ±0.20 / 119.46 ms │     119.12 / 121.43 ±3.68 / 128.77 ms │     no change │
│ QQuery 14 │     418.07 / 421.91 ±5.16 / 432.09 ms │     418.64 / 424.77 ±4.13 / 431.09 ms │     no change │
│ QQuery 15 │        58.44 / 59.58 ±0.80 / 60.35 ms │        57.83 / 58.43 ±0.58 / 59.37 ms │     no change │
│ QQuery 16 │           6.69 / 6.87 ±0.19 / 7.24 ms │           6.45 / 6.59 ±0.22 / 7.02 ms │     no change │
│ QQuery 17 │        81.12 / 81.95 ±1.19 / 84.31 ms │        81.18 / 82.58 ±0.99 / 83.78 ms │     no change │
│ QQuery 18 │     124.99 / 127.13 ±2.78 / 132.60 ms │     123.44 / 126.39 ±3.06 / 132.12 ms │     no change │
│ QQuery 19 │        42.26 / 43.85 ±2.42 / 48.65 ms │        41.86 / 42.37 ±0.32 / 42.84 ms │     no change │
│ QQuery 20 │        36.26 / 37.02 ±0.80 / 38.54 ms │        35.83 / 37.57 ±1.18 / 39.25 ms │     no change │
│ QQuery 21 │        17.88 / 18.07 ±0.18 / 18.39 ms │        17.99 / 18.10 ±0.09 / 18.26 ms │     no change │
│ QQuery 22 │        64.73 / 65.39 ±0.72 / 66.45 ms │        63.05 / 63.69 ±0.58 / 64.57 ms │     no change │
│ QQuery 23 │    350.27 / 362.01 ±11.61 / 383.18 ms │     347.02 / 355.16 ±6.76 / 363.66 ms │     no change │
│ QQuery 24 │     226.85 / 228.43 ±0.87 / 229.39 ms │     226.53 / 231.28 ±6.89 / 244.97 ms │     no change │
│ QQuery 25 │     111.47 / 112.88 ±1.16 / 114.82 ms │     111.13 / 112.42 ±1.12 / 114.49 ms │     no change │
│ QQuery 26 │        59.22 / 60.37 ±1.21 / 62.71 ms │        59.09 / 59.76 ±0.50 / 60.56 ms │     no change │
│ QQuery 27 │           6.17 / 6.30 ±0.16 / 6.62 ms │           6.23 / 6.36 ±0.20 / 6.76 ms │     no change │
│ QQuery 28 │        56.91 / 59.79 ±2.29 / 62.22 ms │        56.40 / 60.17 ±1.91 / 61.70 ms │     no change │
│ QQuery 29 │       97.90 / 99.89 ±1.72 / 102.32 ms │      98.70 / 100.50 ±1.53 / 102.61 ms │     no change │
│ QQuery 30 │        33.06 / 33.35 ±0.38 / 34.10 ms │        33.00 / 33.65 ±0.40 / 34.22 ms │     no change │
│ QQuery 31 │     113.03 / 114.36 ±1.26 / 116.67 ms │     112.95 / 113.69 ±0.56 / 114.25 ms │     no change │
│ QQuery 32 │        21.09 / 21.29 ±0.13 / 21.42 ms │        20.97 / 21.37 ±0.26 / 21.79 ms │     no change │
│ QQuery 33 │        37.94 / 38.53 ±0.45 / 39.06 ms │        38.16 / 39.79 ±1.80 / 43.16 ms │     no change │
│ QQuery 34 │         9.85 / 10.29 ±0.36 / 10.89 ms │         9.86 / 10.15 ±0.36 / 10.82 ms │     no change │
│ QQuery 35 │        74.04 / 74.83 ±0.87 / 76.47 ms │        73.49 / 74.75 ±0.71 / 75.64 ms │     no change │
│ QQuery 36 │           5.58 / 5.76 ±0.18 / 6.06 ms │           5.67 / 5.79 ±0.21 / 6.22 ms │     no change │
│ QQuery 37 │           6.78 / 6.91 ±0.09 / 7.04 ms │           6.77 / 6.83 ±0.06 / 6.92 ms │     no change │
│ QQuery 38 │        63.91 / 64.94 ±1.31 / 67.39 ms │        63.57 / 64.10 ±0.29 / 64.39 ms │     no change │
│ QQuery 39 │        91.48 / 92.80 ±1.78 / 96.16 ms │        91.20 / 91.99 ±0.53 / 92.57 ms │     no change │
│ QQuery 40 │        24.00 / 24.11 ±0.08 / 24.21 ms │        23.62 / 24.05 ±0.27 / 24.44 ms │     no change │
│ QQuery 41 │        11.65 / 11.88 ±0.20 / 12.22 ms │        11.57 / 11.74 ±0.21 / 12.16 ms │     no change │
│ QQuery 42 │        24.41 / 24.76 ±0.34 / 25.41 ms │        24.41 / 24.63 ±0.27 / 25.15 ms │     no change │
│ QQuery 43 │           4.89 / 5.07 ±0.22 / 5.51 ms │           4.90 / 5.04 ±0.20 / 5.42 ms │     no change │
│ QQuery 44 │           9.33 / 9.50 ±0.13 / 9.72 ms │           9.16 / 9.24 ±0.06 / 9.31 ms │     no change │
│ QQuery 45 │        39.76 / 41.69 ±1.89 / 45.06 ms │        38.35 / 40.48 ±1.55 / 42.81 ms │     no change │
│ QQuery 46 │        12.02 / 13.09 ±1.38 / 15.78 ms │        12.45 / 12.81 ±0.28 / 13.15 ms │     no change │
│ QQuery 47 │     235.97 / 238.57 ±2.89 / 243.70 ms │     230.29 / 234.73 ±2.46 / 237.39 ms │     no change │
│ QQuery 48 │        96.19 / 96.42 ±0.16 / 96.70 ms │        96.79 / 97.44 ±0.55 / 98.07 ms │     no change │
│ QQuery 49 │        77.07 / 79.37 ±2.93 / 84.88 ms │        76.77 / 77.45 ±0.61 / 78.58 ms │     no change │
│ QQuery 50 │        59.89 / 60.39 ±0.41 / 60.97 ms │        59.74 / 60.43 ±0.53 / 61.36 ms │     no change │
│ QQuery 51 │       90.20 / 93.55 ±3.99 / 101.07 ms │        91.76 / 92.84 ±0.84 / 93.94 ms │     no change │
│ QQuery 52 │        24.64 / 25.01 ±0.47 / 25.84 ms │        24.51 / 24.59 ±0.05 / 24.66 ms │     no change │
│ QQuery 53 │        30.34 / 31.10 ±1.23 / 33.53 ms │        30.54 / 32.79 ±2.84 / 38.00 ms │  1.05x slower │
│ QQuery 54 │        55.77 / 55.97 ±0.11 / 56.08 ms │        55.92 / 56.34 ±0.31 / 56.72 ms │     no change │
│ QQuery 55 │        23.87 / 24.15 ±0.30 / 24.68 ms │        23.63 / 24.11 ±0.43 / 24.92 ms │     no change │
│ QQuery 56 │        39.32 / 39.58 ±0.36 / 40.30 ms │        38.98 / 39.71 ±0.47 / 40.38 ms │     no change │
│ QQuery 57 │     177.41 / 180.37 ±2.08 / 183.82 ms │     176.39 / 179.46 ±3.93 / 186.95 ms │     no change │
│ QQuery 58 │     117.13 / 119.31 ±1.99 / 122.38 ms │     115.84 / 117.46 ±2.39 / 122.18 ms │     no change │
│ QQuery 59 │     118.60 / 118.90 ±0.28 / 119.23 ms │     117.88 / 118.48 ±0.44 / 119.00 ms │     no change │
│ QQuery 60 │        39.55 / 41.07 ±2.03 / 44.99 ms │        40.08 / 40.19 ±0.08 / 40.31 ms │     no change │
│ QQuery 61 │        12.14 / 12.26 ±0.10 / 12.41 ms │        11.90 / 12.54 ±0.84 / 14.19 ms │     no change │
│ QQuery 62 │        46.95 / 47.33 ±0.28 / 47.76 ms │        46.89 / 47.14 ±0.36 / 47.84 ms │     no change │
│ QQuery 63 │        29.93 / 30.11 ±0.13 / 30.28 ms │        29.88 / 30.23 ±0.30 / 30.70 ms │     no change │
│ QQuery 64 │     410.86 / 414.31 ±2.25 / 416.75 ms │     411.46 / 413.27 ±1.51 / 415.32 ms │     no change │
│ QQuery 65 │     145.75 / 153.27 ±6.08 / 162.71 ms │     144.03 / 150.30 ±5.09 / 159.35 ms │     no change │
│ QQuery 66 │        80.82 / 82.12 ±1.33 / 84.57 ms │        80.36 / 81.00 ±0.60 / 81.76 ms │     no change │
│ QQuery 67 │     252.48 / 255.98 ±2.64 / 258.98 ms │     244.85 / 250.51 ±5.40 / 259.69 ms │     no change │
│ QQuery 68 │        12.23 / 13.46 ±1.68 / 16.75 ms │        11.92 / 12.14 ±0.13 / 12.30 ms │ +1.11x faster │
│ QQuery 69 │        58.60 / 59.60 ±1.31 / 62.10 ms │        58.81 / 59.74 ±0.72 / 61.02 ms │     no change │
│ QQuery 70 │     107.23 / 110.67 ±3.16 / 115.20 ms │     107.26 / 111.69 ±3.81 / 118.74 ms │     no change │
│ QQuery 71 │        35.35 / 36.25 ±0.53 / 37.01 ms │        36.24 / 40.31 ±7.42 / 55.14 ms │  1.11x slower │
│ QQuery 72 │ 2116.23 / 2178.41 ±53.74 / 2271.47 ms │ 2146.79 / 2258.31 ±91.66 / 2390.18 ms │     no change │
│ QQuery 73 │        10.02 / 10.35 ±0.42 / 11.17 ms │         9.95 / 10.18 ±0.18 / 10.42 ms │     no change │
│ QQuery 74 │     177.83 / 181.42 ±3.75 / 188.25 ms │     173.93 / 179.54 ±4.28 / 186.60 ms │     no change │
│ QQuery 75 │     148.90 / 151.12 ±2.73 / 156.43 ms │     149.54 / 153.56 ±6.42 / 166.31 ms │     no change │
│ QQuery 76 │        35.30 / 36.79 ±2.07 / 40.89 ms │        35.92 / 37.94 ±2.45 / 42.71 ms │     no change │
│ QQuery 77 │        61.49 / 63.38 ±2.39 / 68.05 ms │        61.85 / 62.42 ±0.45 / 63.03 ms │     no change │
│ QQuery 78 │     200.54 / 204.27 ±3.80 / 211.59 ms │     199.17 / 204.07 ±5.14 / 213.38 ms │     no change │
│ QQuery 79 │        67.89 / 69.23 ±2.27 / 73.76 ms │        68.15 / 68.45 ±0.39 / 69.20 ms │     no change │
│ QQuery 80 │      99.66 / 102.49 ±3.28 / 108.64 ms │      99.57 / 101.30 ±1.57 / 103.87 ms │     no change │
│ QQuery 81 │        25.99 / 26.36 ±0.25 / 26.69 ms │        26.22 / 26.37 ±0.13 / 26.54 ms │     no change │
│ QQuery 82 │        16.66 / 16.87 ±0.18 / 17.19 ms │        16.74 / 17.07 ±0.35 / 17.58 ms │     no change │
│ QQuery 83 │        39.92 / 40.64 ±0.42 / 41.11 ms │        40.79 / 41.31 ±0.32 / 41.76 ms │     no change │
│ QQuery 84 │        30.71 / 32.83 ±3.98 / 40.78 ms │        30.46 / 30.87 ±0.23 / 31.15 ms │ +1.06x faster │
│ QQuery 85 │     106.62 / 109.62 ±1.82 / 111.64 ms │     108.05 / 111.44 ±5.34 / 122.07 ms │     no change │
│ QQuery 86 │        25.23 / 25.61 ±0.21 / 25.80 ms │        25.60 / 25.89 ±0.32 / 26.47 ms │     no change │
│ QQuery 87 │        62.98 / 64.14 ±1.05 / 65.73 ms │        63.88 / 65.08 ±0.82 / 66.41 ms │     no change │
│ QQuery 88 │        63.07 / 63.76 ±0.46 / 64.40 ms │        63.99 / 66.16 ±2.76 / 71.18 ms │     no change │
│ QQuery 89 │        36.35 / 37.32 ±0.83 / 38.79 ms │        36.61 / 37.09 ±0.45 / 37.68 ms │     no change │
│ QQuery 90 │        17.25 / 17.45 ±0.13 / 17.59 ms │        17.22 / 17.50 ±0.20 / 17.84 ms │     no change │
│ QQuery 91 │        46.28 / 46.62 ±0.20 / 46.82 ms │        46.57 / 46.87 ±0.27 / 47.22 ms │     no change │
│ QQuery 92 │        29.48 / 30.25 ±0.49 / 30.99 ms │        29.83 / 30.16 ±0.31 / 30.73 ms │     no change │
│ QQuery 93 │        49.79 / 51.11 ±1.29 / 53.56 ms │        50.65 / 52.78 ±2.31 / 57.13 ms │     no change │
│ QQuery 94 │        38.90 / 40.07 ±1.06 / 42.08 ms │        38.64 / 39.16 ±0.36 / 39.74 ms │     no change │
│ QQuery 95 │        80.98 / 81.75 ±0.46 / 82.31 ms │        80.75 / 81.38 ±0.50 / 82.21 ms │     no change │
│ QQuery 96 │        24.50 / 24.73 ±0.19 / 25.00 ms │        24.70 / 25.11 ±0.39 / 25.77 ms │     no change │
│ QQuery 97 │        46.90 / 47.49 ±0.51 / 48.43 ms │        47.73 / 50.03 ±2.41 / 53.54 ms │  1.05x slower │
│ QQuery 98 │        42.46 / 43.88 ±1.24 / 46.10 ms │        42.68 / 43.63 ±0.71 / 44.80 ms │     no change │
│ QQuery 99 │        70.46 / 70.97 ±0.29 / 71.34 ms │        70.60 / 71.13 ±0.44 / 71.88 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                     ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                     │ 10104.32ms │
│ Total Time (gabotechs_reuse-hashes)   │ 10166.03ms │
│ Average Time (HEAD)                   │   102.06ms │
│ Average Time (gabotechs_reuse-hashes) │   102.69ms │
│ Queries Faster                        │          2 │
│ Queries Slower                        │          3 │
│ Queries with No Change                │         94 │
│ Queries with Failure                  │          0 │
└───────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 55.0s
Peak memory 2.3 GiB
Avg memory 1.5 GiB
CPU user 229.4s
CPU sys 6.1s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 55.0s
Peak memory 2.1 GiB
Avg memory 1.4 GiB
CPU user 231.6s
CPU sys 6.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 gabotechs_reuse-hashes
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                gabotechs_reuse-hashes ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.24 / 4.02 ±5.46 / 14.94 ms │          1.21 / 3.94 ±5.37 / 14.67 ms │     no change │
│ QQuery 1  │        13.67 / 13.88 ±0.15 / 14.07 ms │        12.91 / 13.25 ±0.18 / 13.41 ms │     no change │
│ QQuery 2  │        37.07 / 37.29 ±0.20 / 37.60 ms │        36.15 / 36.42 ±0.27 / 36.92 ms │     no change │
│ QQuery 3  │        31.19 / 31.94 ±0.72 / 33.27 ms │        30.74 / 31.31 ±0.60 / 32.42 ms │     no change │
│ QQuery 4  │     223.82 / 226.90 ±2.44 / 230.76 ms │     229.68 / 232.53 ±2.91 / 237.92 ms │     no change │
│ QQuery 5  │     270.04 / 272.70 ±1.38 / 273.98 ms │     268.06 / 272.64 ±4.52 / 279.00 ms │     no change │
│ QQuery 6  │           1.30 / 1.44 ±0.23 / 1.90 ms │           1.27 / 1.41 ±0.22 / 1.84 ms │     no change │
│ QQuery 7  │        14.97 / 15.03 ±0.08 / 15.17 ms │        14.44 / 15.12 ±0.39 / 15.52 ms │     no change │
│ QQuery 8  │     324.08 / 327.67 ±3.07 / 333.25 ms │     327.32 / 330.20 ±3.85 / 337.59 ms │     no change │
│ QQuery 9  │     452.46 / 457.22 ±4.18 / 464.71 ms │     457.64 / 467.47 ±7.44 / 479.31 ms │     no change │
│ QQuery 10 │        71.71 / 72.68 ±0.58 / 73.52 ms │        71.56 / 73.84 ±1.58 / 76.24 ms │     no change │
│ QQuery 11 │        83.68 / 84.66 ±0.60 / 85.29 ms │        85.15 / 87.88 ±3.87 / 95.58 ms │     no change │
│ QQuery 12 │     265.69 / 269.06 ±4.54 / 278.04 ms │     262.95 / 269.84 ±6.85 / 280.59 ms │     no change │
│ QQuery 13 │    368.59 / 389.00 ±11.13 / 400.15 ms │    356.34 / 370.74 ±16.39 / 398.24 ms │     no change │
│ QQuery 14 │     281.48 / 283.66 ±1.53 / 285.74 ms │     279.22 / 280.82 ±1.63 / 283.81 ms │     no change │
│ QQuery 15 │     273.08 / 278.46 ±5.77 / 286.29 ms │    281.01 / 293.25 ±14.97 / 321.90 ms │  1.05x slower │
│ QQuery 16 │     607.78 / 616.98 ±5.72 / 623.14 ms │     608.42 / 616.38 ±6.67 / 625.05 ms │     no change │
│ QQuery 17 │     620.34 / 626.88 ±6.45 / 638.69 ms │     607.81 / 617.22 ±8.19 / 630.38 ms │     no change │
│ QQuery 18 │ 1245.55 / 1268.87 ±15.44 / 1287.70 ms │ 1223.80 / 1261.11 ±28.26 / 1302.72 ms │     no change │
│ QQuery 19 │       28.82 / 39.22 ±15.47 / 68.81 ms │        28.32 / 28.50 ±0.11 / 28.65 ms │ +1.38x faster │
│ QQuery 20 │     516.49 / 525.02 ±7.38 / 537.87 ms │    517.91 / 542.54 ±33.47 / 607.45 ms │     no change │
│ QQuery 21 │     512.91 / 524.85 ±6.25 / 530.67 ms │    512.59 / 527.51 ±11.83 / 543.41 ms │     no change │
│ QQuery 22 │   981.31 / 999.54 ±17.11 / 1023.08 ms │    990.12 / 998.60 ±6.58 / 1009.73 ms │     no change │
│ QQuery 23 │ 3080.40 / 3120.39 ±22.28 / 3145.60 ms │ 3066.36 / 3107.82 ±28.48 / 3153.72 ms │     no change │
│ QQuery 24 │        42.13 / 46.45 ±6.45 / 59.21 ms │        41.45 / 42.15 ±0.71 / 43.22 ms │ +1.10x faster │
│ QQuery 25 │     112.61 / 114.08 ±0.94 / 115.29 ms │     112.45 / 114.42 ±1.48 / 116.20 ms │     no change │
│ QQuery 26 │        42.32 / 46.14 ±5.63 / 57.21 ms │        42.05 / 47.29 ±4.75 / 54.91 ms │     no change │
│ QQuery 27 │     513.12 / 521.43 ±6.10 / 531.18 ms │     520.26 / 522.61 ±1.37 / 524.55 ms │     no change │
│ QQuery 28 │ 2887.72 / 2901.57 ±11.99 / 2916.83 ms │  2904.92 / 2912.84 ±6.12 / 2922.46 ms │     no change │
│ QQuery 29 │       41.55 / 52.51 ±14.67 / 78.79 ms │        41.30 / 45.91 ±5.59 / 54.73 ms │ +1.14x faster │
│ QQuery 30 │     304.89 / 308.49 ±2.24 / 310.84 ms │     304.19 / 315.60 ±7.77 / 323.68 ms │     no change │
│ QQuery 31 │    293.23 / 303.87 ±15.62 / 334.92 ms │     292.14 / 299.02 ±4.12 / 304.54 ms │     no change │
│ QQuery 32 │   930.33 / 959.34 ±29.65 / 1015.75 ms │  977.39 / 1004.86 ±17.74 / 1031.25 ms │     no change │
│ QQuery 33 │ 1458.92 / 1482.58 ±12.28 / 1492.64 ms │ 1440.78 / 1462.94 ±13.67 / 1478.61 ms │     no change │
│ QQuery 34 │ 1461.55 / 1488.70 ±14.84 / 1506.04 ms │ 1444.07 / 1473.05 ±21.26 / 1499.15 ms │     no change │
│ QQuery 35 │    284.24 / 322.09 ±36.86 / 390.51 ms │    285.86 / 318.88 ±32.05 / 377.94 ms │     no change │
│ QQuery 36 │        65.89 / 72.80 ±5.50 / 80.67 ms │        68.04 / 73.88 ±9.32 / 92.38 ms │     no change │
│ QQuery 37 │        36.43 / 38.52 ±2.77 / 43.87 ms │        35.98 / 37.22 ±1.48 / 40.04 ms │     no change │
│ QQuery 38 │        41.47 / 44.12 ±2.41 / 48.66 ms │        40.18 / 45.81 ±5.50 / 56.15 ms │     no change │
│ QQuery 39 │     146.14 / 154.24 ±5.58 / 163.11 ms │    138.28 / 156.61 ±13.27 / 173.08 ms │     no change │
│ QQuery 40 │        14.69 / 16.95 ±3.03 / 22.72 ms │        14.46 / 14.96 ±0.48 / 15.79 ms │ +1.13x faster │
│ QQuery 41 │        13.93 / 14.29 ±0.34 / 14.90 ms │        13.82 / 14.16 ±0.31 / 14.74 ms │     no change │
│ QQuery 42 │        13.58 / 15.11 ±2.46 / 20.00 ms │        13.43 / 16.77 ±6.22 / 29.20 ms │  1.11x slower │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                     ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                     │ 19390.64ms │
│ Total Time (gabotechs_reuse-hashes)   │ 19399.32ms │
│ Average Time (HEAD)                   │   450.95ms │
│ Average Time (gabotechs_reuse-hashes) │   451.15ms │
│ Queries Faster                        │          4 │
│ Queries Slower                        │          2 │
│ Queries with No Change                │         37 │
│ Queries with Failure                  │          0 │
└───────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 100.0s
Peak memory 11.4 GiB
Avg memory 4.6 GiB
CPU user 997.4s
CPU sys 66.9s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 100.0s
Peak memory 11.8 GiB
Avg memory 4.7 GiB
CPU user 988.9s
CPU sys 70.9s
Peak spill 0 B

File an issue against this benchmark runner

@gabotechs
gabotechs force-pushed the gabotechs/reuse-hashes branch from 7d64c1d to cbfb9cb Compare July 21, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto detected api change Auto detected API change core Core DataFusion crate physical-expr Changes to the physical-expr crates physical-plan Changes to the physical-plan crate sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve performance of high cardinality grouping by reusing hash values

6 participants