Skip to content

perf: speed up primitive group value interning, use less memory#21977

Open
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:speed-up-single-primitive-group-by
Open

perf: speed up primitive group value interning, use less memory#21977
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:speed-up-single-primitive-group-by

Conversation

@Dandandan
Copy link
Copy Markdown
Contributor

@Dandandan Dandandan commented May 1, 2026

Which issue does this PR close?

N/A.

Rationale for this change

GroupValuesPrimitive stored hashes in the hash table. For single primitive group keys, storing the primitive value in the table lets hashbrown recompute hashes from the value and removes separate hash storage and values-vector lookups in the hot interning path.

What changes are included in this PR?

  • Store (group_index, value) in GroupValuesPrimitive instead of (group_index, hash) plus a separate values vector.
  • Reconstruct emitted primitive arrays from hash table entries in group-index order.
  • Add some benchmark cases and emit/reindex regression tests.

Benchmarks vs original stored-hash baseline:

  • GroupValuesPrimitive_intern/low_cardinality: 138.57 us -> 117.75 us (-15.48%)
  • GroupValuesPrimitive_intern/high_cardinality: 1.1006 ms -> 1.0879 ms (no statistically significant change)
  • aggregate_query_group_by_u64 15 12: 785.50 us -> 741.78 us (-5.06%)

Are these changes tested?

Note: cargo clippy --all-targets --all-features -- -D warnings currently fails in this workspace because --all-features enables both benchmark allocator features snmalloc and mimalloc; ci/scripts/rust_clippy.sh is the repository CI clippy command and passed.

Are there any user-facing changes?

No.

@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmarks

@github-actions github-actions Bot added the physical-plan Changes to the physical-plan crate label May 1, 2026
@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4360963663-1966-5tpcs 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 speed-up-single-primitive-group-by (b79d787) to 948cd09 (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-c4360963663-1965-7r9sb 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 speed-up-single-primitive-group-by (b79d787) to 948cd09 (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-c4360963663-1964-8kgp4 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 speed-up-single-primitive-group-by (b79d787) to 948cd09 (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 speed-up-single-primitive-group-by
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃ speed-up-single-primitive-group-by ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 40.62 / 42.00 ±1.12 / 43.28 ms │     40.09 / 41.48 ±2.51 / 46.50 ms │     no change │
│ QQuery 2  │ 21.30 / 21.71 ±0.60 / 22.91 ms │     21.35 / 21.68 ±0.31 / 22.13 ms │     no change │
│ QQuery 3  │ 35.86 / 38.73 ±1.45 / 39.73 ms │     36.22 / 37.90 ±1.38 / 39.18 ms │     no change │
│ QQuery 4  │ 18.48 / 18.95 ±0.70 / 20.33 ms │     18.33 / 18.84 ±0.59 / 19.93 ms │     no change │
│ QQuery 5  │ 44.53 / 46.49 ±1.09 / 47.52 ms │     45.76 / 46.45 ±0.41 / 47.04 ms │     no change │
│ QQuery 6  │ 17.31 / 17.65 ±0.39 / 18.20 ms │     17.17 / 17.33 ±0.13 / 17.48 ms │     no change │
│ QQuery 7  │ 50.90 / 52.44 ±1.16 / 54.08 ms │     49.87 / 51.02 ±1.15 / 53.11 ms │     no change │
│ QQuery 8  │ 47.31 / 47.70 ±0.39 / 48.43 ms │     47.08 / 47.42 ±0.43 / 48.25 ms │     no change │
│ QQuery 9  │ 51.56 / 53.02 ±0.94 / 54.50 ms │     52.11 / 52.66 ±0.30 / 52.90 ms │     no change │
│ QQuery 10 │ 65.91 / 67.20 ±1.04 / 68.87 ms │     65.68 / 66.04 ±0.27 / 66.38 ms │     no change │
│ QQuery 11 │ 14.06 / 14.26 ±0.16 / 14.44 ms │     13.95 / 14.12 ±0.19 / 14.50 ms │     no change │
│ QQuery 12 │ 26.61 / 26.83 ±0.18 / 27.02 ms │     26.49 / 26.77 ±0.23 / 27.15 ms │     no change │
│ QQuery 13 │ 35.67 / 36.81 ±0.64 / 37.58 ms │     35.31 / 36.03 ±0.40 / 36.48 ms │     no change │
│ QQuery 14 │ 26.85 / 27.21 ±0.21 / 27.49 ms │     26.78 / 27.00 ±0.22 / 27.40 ms │     no change │
│ QQuery 15 │ 33.36 / 33.58 ±0.20 / 33.83 ms │     32.96 / 33.25 ±0.19 / 33.57 ms │     no change │
│ QQuery 16 │ 15.36 / 15.54 ±0.15 / 15.68 ms │     15.37 / 15.54 ±0.09 / 15.61 ms │     no change │
│ QQuery 17 │ 77.84 / 78.51 ±0.50 / 79.38 ms │     70.91 / 72.12 ±1.04 / 73.40 ms │ +1.09x faster │
│ QQuery 18 │ 69.21 / 70.21 ±0.75 / 71.36 ms │     68.84 / 70.23 ±1.05 / 71.49 ms │     no change │
│ QQuery 19 │ 37.89 / 38.28 ±0.33 / 38.65 ms │     37.83 / 38.42 ±0.52 / 39.18 ms │     no change │
│ QQuery 20 │ 39.34 / 39.96 ±0.54 / 40.74 ms │     39.02 / 39.37 ±0.28 / 39.82 ms │     no change │
│ QQuery 21 │ 60.67 / 62.47 ±1.96 / 66.13 ms │     60.76 / 62.30 ±1.27 / 64.47 ms │     no change │
│ QQuery 22 │ 24.20 / 24.51 ±0.31 / 25.07 ms │     24.24 / 24.42 ±0.19 / 24.75 ms │     no change │
└───────────┴────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 874.07ms │
│ Total Time (speed-up-single-primitive-group-by)   │ 860.39ms │
│ Average Time (HEAD)                               │  39.73ms │
│ Average Time (speed-up-single-primitive-group-by) │  39.11ms │
│ Queries Faster                                    │        1 │
│ Queries Slower                                    │        0 │
│ Queries with No Change                            │       21 │
│ Queries with Failure                              │        0 │
└───────────────────────────────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 5.6 GiB
Avg memory 5.0 GiB
CPU user 32.5s
CPU sys 2.3s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 5.5 GiB
Avg memory 5.0 GiB
CPU user 31.9s
CPU sys 2.4s
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 speed-up-single-primitive-group-by
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                      HEAD ┃       speed-up-single-primitive-group-by ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │               7.05 / 7.64 ±0.79 / 9.21 ms │              7.49 / 7.91 ±0.76 / 9.42 ms │     no change │
│ QQuery 2  │         144.63 / 145.18 ±0.38 / 145.78 ms │        145.01 / 145.37 ±0.25 / 145.72 ms │     no change │
│ QQuery 3  │         114.97 / 116.59 ±1.16 / 118.50 ms │        115.36 / 115.84 ±0.72 / 117.26 ms │     no change │
│ QQuery 4  │     1292.86 / 1385.98 ±85.68 / 1488.41 ms │    1258.09 / 1280.51 ±18.46 / 1303.64 ms │ +1.08x faster │
│ QQuery 5  │         173.25 / 174.04 ±1.35 / 176.73 ms │        172.38 / 173.40 ±0.90 / 174.96 ms │     no change │
│ QQuery 6  │         136.71 / 139.43 ±2.11 / 142.10 ms │        128.46 / 132.45 ±2.23 / 135.35 ms │ +1.05x faster │
│ QQuery 7  │         319.17 / 321.14 ±1.76 / 323.97 ms │        317.17 / 318.33 ±1.15 / 320.04 ms │     no change │
│ QQuery 8  │         112.30 / 112.59 ±0.40 / 113.39 ms │        111.76 / 113.06 ±0.89 / 114.47 ms │     no change │
│ QQuery 9  │          97.34 / 104.57 ±8.81 / 121.86 ms │         99.23 / 104.04 ±8.43 / 120.86 ms │     no change │
│ QQuery 10 │         101.81 / 103.06 ±1.35 / 105.58 ms │        102.19 / 103.62 ±1.84 / 107.23 ms │     no change │
│ QQuery 11 │       898.54 / 988.14 ±64.87 / 1070.20 ms │      858.57 / 951.56 ±76.73 / 1043.72 ms │     no change │
│ QQuery 12 │            43.46 / 44.01 ±0.49 / 44.94 ms │           45.79 / 46.22 ±0.30 / 46.70 ms │  1.05x slower │
│ QQuery 13 │         390.23 / 392.66 ±2.50 / 397.45 ms │        391.40 / 402.85 ±8.99 / 411.38 ms │     no change │
│ QQuery 14 │      1028.41 / 1031.51 ±2.05 / 1033.92 ms │     1020.04 / 1022.95 ±2.56 / 1027.23 ms │     no change │
│ QQuery 15 │            14.28 / 14.78 ±0.32 / 15.18 ms │           14.20 / 14.61 ±0.39 / 15.14 ms │     no change │
│ QQuery 16 │               7.26 / 7.38 ±0.17 / 7.70 ms │              7.44 / 7.54 ±0.13 / 7.79 ms │     no change │
│ QQuery 17 │         201.07 / 202.37 ±1.21 / 204.50 ms │        201.70 / 208.75 ±4.60 / 213.00 ms │     no change │
│ QQuery 18 │         123.49 / 124.15 ±0.60 / 125.04 ms │        127.63 / 129.23 ±1.32 / 131.16 ms │     no change │
│ QQuery 19 │         153.03 / 155.36 ±2.35 / 159.85 ms │        163.51 / 164.80 ±0.96 / 166.47 ms │  1.06x slower │
│ QQuery 20 │            13.06 / 13.33 ±0.29 / 13.74 ms │           13.97 / 14.14 ±0.09 / 14.24 ms │  1.06x slower │
│ QQuery 21 │            18.94 / 19.16 ±0.12 / 19.29 ms │           19.99 / 20.30 ±0.32 / 20.79 ms │  1.06x slower │
│ QQuery 22 │         473.22 / 476.03 ±1.98 / 478.35 ms │       474.36 / 496.69 ±22.54 / 525.50 ms │     no change │
│ QQuery 23 │     1032.34 / 1113.54 ±40.96 / 1140.56 ms │    1003.84 / 1023.86 ±20.88 / 1061.09 ms │ +1.09x faster │
│ QQuery 24 │         631.88 / 634.91 ±4.09 / 642.83 ms │        630.95 / 633.20 ±1.62 / 635.96 ms │     no change │
│ QQuery 25 │         304.13 / 305.95 ±2.19 / 310.27 ms │        303.46 / 306.93 ±2.27 / 310.26 ms │     no change │
│ QQuery 26 │            75.92 / 76.48 ±0.41 / 77.01 ms │           76.64 / 77.30 ±0.48 / 77.73 ms │     no change │
│ QQuery 27 │               6.94 / 7.11 ±0.19 / 7.46 ms │             7.14 / 7.85 ±1.18 / 10.20 ms │  1.10x slower │
│ QQuery 28 │         146.55 / 148.00 ±1.11 / 149.88 ms │        149.51 / 151.82 ±1.97 / 154.04 ms │     no change │
│ QQuery 29 │         242.78 / 246.34 ±3.01 / 251.73 ms │        249.09 / 260.90 ±6.48 / 268.93 ms │  1.06x slower │
│ QQuery 30 │            41.16 / 42.14 ±0.97 / 43.85 ms │           41.94 / 42.50 ±0.56 / 43.51 ms │     no change │
│ QQuery 31 │         162.50 / 164.33 ±1.25 / 166.16 ms │        166.86 / 174.62 ±6.33 / 185.21 ms │  1.06x slower │
│ QQuery 32 │            13.11 / 13.35 ±0.30 / 13.94 ms │           14.87 / 15.26 ±0.25 / 15.62 ms │  1.14x slower │
│ QQuery 33 │         138.10 / 140.50 ±2.21 / 144.10 ms │        147.22 / 148.67 ±1.12 / 150.36 ms │  1.06x slower │
│ QQuery 34 │               6.97 / 7.14 ±0.11 / 7.28 ms │             7.90 / 8.63 ±1.23 / 11.08 ms │  1.21x slower │
│ QQuery 35 │          99.80 / 101.63 ±1.61 / 103.81 ms │        100.92 / 103.60 ±3.11 / 109.68 ms │     no change │
│ QQuery 36 │               6.77 / 6.99 ±0.14 / 7.22 ms │              6.65 / 6.96 ±0.20 / 7.17 ms │     no change │
│ QQuery 37 │               8.33 / 8.39 ±0.04 / 8.45 ms │              8.27 / 8.39 ±0.08 / 8.48 ms │     no change │
│ QQuery 38 │            84.47 / 85.04 ±0.44 / 85.59 ms │           86.06 / 88.84 ±3.41 / 95.12 ms │     no change │
│ QQuery 39 │         116.10 / 119.70 ±4.47 / 128.21 ms │        117.92 / 120.52 ±3.00 / 126.25 ms │     no change │
│ QQuery 40 │            93.63 / 95.22 ±1.30 / 97.10 ms │          94.30 / 98.07 ±2.89 / 101.95 ms │     no change │
│ QQuery 41 │            14.24 / 14.47 ±0.28 / 15.01 ms │           14.77 / 14.99 ±0.17 / 15.20 ms │     no change │
│ QQuery 42 │         107.10 / 107.83 ±1.07 / 109.96 ms │        107.23 / 108.91 ±1.92 / 112.64 ms │     no change │
│ QQuery 43 │               5.83 / 6.29 ±0.70 / 7.66 ms │              5.75 / 5.89 ±0.21 / 6.30 ms │ +1.07x faster │
│ QQuery 44 │            10.78 / 10.91 ±0.10 / 11.05 ms │           10.88 / 11.02 ±0.13 / 11.23 ms │     no change │
│ QQuery 45 │            44.57 / 45.02 ±0.45 / 45.88 ms │           44.21 / 45.68 ±2.22 / 50.06 ms │     no change │
│ QQuery 46 │               8.43 / 8.58 ±0.17 / 8.89 ms │              8.52 / 8.70 ±0.20 / 9.08 ms │     no change │
│ QQuery 47 │        693.43 / 793.97 ±69.01 / 860.59 ms │        670.99 / 681.03 ±6.33 / 688.95 ms │ +1.17x faster │
│ QQuery 48 │         286.50 / 295.28 ±8.81 / 311.53 ms │        270.54 / 274.18 ±2.94 / 278.75 ms │ +1.08x faster │
│ QQuery 49 │         243.50 / 245.17 ±1.39 / 246.98 ms │        242.05 / 244.70 ±2.27 / 248.12 ms │     no change │
│ QQuery 50 │         182.51 / 188.03 ±7.11 / 201.89 ms │        181.30 / 185.95 ±3.88 / 192.72 ms │     no change │
│ QQuery 51 │         170.66 / 174.10 ±2.45 / 178.28 ms │        169.10 / 170.84 ±1.48 / 172.62 ms │     no change │
│ QQuery 52 │         107.15 / 108.15 ±0.51 / 108.53 ms │        106.13 / 107.91 ±1.35 / 110.20 ms │     no change │
│ QQuery 53 │         103.03 / 105.07 ±1.48 / 107.63 ms │        101.36 / 101.77 ±0.29 / 102.24 ms │     no change │
│ QQuery 54 │         143.93 / 145.92 ±1.11 / 147.20 ms │        144.36 / 144.96 ±0.57 / 145.99 ms │     no change │
│ QQuery 55 │         105.78 / 107.68 ±2.05 / 111.51 ms │        105.55 / 106.28 ±0.78 / 107.51 ms │     no change │
│ QQuery 56 │         138.45 / 139.67 ±1.67 / 142.95 ms │        138.12 / 138.67 ±0.46 / 139.49 ms │     no change │
│ QQuery 57 │         163.66 / 165.43 ±1.47 / 167.37 ms │        161.37 / 163.33 ±1.66 / 165.70 ms │     no change │
│ QQuery 58 │         246.06 / 251.06 ±3.88 / 257.97 ms │        241.36 / 245.30 ±2.93 / 249.75 ms │     no change │
│ QQuery 59 │         200.92 / 203.48 ±1.97 / 206.74 ms │        200.19 / 204.50 ±3.71 / 210.20 ms │     no change │
│ QQuery 60 │         144.86 / 147.25 ±1.71 / 148.90 ms │        145.57 / 147.63 ±2.14 / 151.72 ms │     no change │
│ QQuery 61 │            14.27 / 15.56 ±2.41 / 20.38 ms │           14.33 / 14.46 ±0.07 / 14.56 ms │ +1.08x faster │
│ QQuery 62 │        855.51 / 874.12 ±29.07 / 931.90 ms │       867.78 / 915.37 ±38.10 / 957.00 ms │     no change │
│ QQuery 63 │         102.47 / 103.15 ±0.36 / 103.51 ms │        101.69 / 103.42 ±2.15 / 107.54 ms │     no change │
│ QQuery 64 │        628.45 / 641.05 ±10.23 / 658.14 ms │        625.06 / 627.51 ±2.13 / 630.45 ms │     no change │
│ QQuery 65 │         240.95 / 243.82 ±2.50 / 247.76 ms │        241.19 / 241.73 ±0.42 / 242.28 ms │     no change │
│ QQuery 66 │         212.92 / 219.65 ±5.76 / 228.44 ms │        212.96 / 221.96 ±9.87 / 236.50 ms │     no change │
│ QQuery 67 │         289.12 / 294.94 ±7.01 / 308.31 ms │        289.89 / 297.59 ±5.89 / 307.11 ms │     no change │
│ QQuery 68 │               8.82 / 9.03 ±0.15 / 9.24 ms │              9.25 / 9.41 ±0.14 / 9.64 ms │     no change │
│ QQuery 69 │          98.79 / 101.72 ±1.96 / 104.74 ms │         99.41 / 101.99 ±1.52 / 103.65 ms │     no change │
│ QQuery 70 │         323.07 / 331.08 ±9.51 / 348.34 ms │       311.42 / 324.10 ±10.28 / 339.21 ms │     no change │
│ QQuery 71 │         137.75 / 141.32 ±4.64 / 150.48 ms │        136.41 / 138.85 ±2.58 / 143.56 ms │     no change │
│ QQuery 72 │         538.00 / 547.15 ±8.00 / 561.66 ms │       545.67 / 566.49 ±21.72 / 600.16 ms │     no change │
│ QQuery 73 │               6.56 / 6.70 ±0.17 / 7.02 ms │              6.69 / 6.85 ±0.20 / 7.23 ms │     no change │
│ QQuery 74 │         546.56 / 558.76 ±6.55 / 564.90 ms │       558.70 / 577.31 ±22.75 / 619.57 ms │     no change │
│ QQuery 75 │         262.98 / 265.71 ±1.38 / 266.73 ms │        263.24 / 266.96 ±3.53 / 273.59 ms │     no change │
│ QQuery 76 │         127.52 / 130.10 ±2.50 / 134.85 ms │        128.24 / 130.01 ±1.94 / 133.33 ms │     no change │
│ QQuery 77 │         186.03 / 187.72 ±1.44 / 189.48 ms │        185.78 / 187.37 ±0.80 / 187.82 ms │     no change │
│ QQuery 78 │         305.73 / 307.45 ±1.36 / 309.08 ms │        317.87 / 325.53 ±5.04 / 333.04 ms │  1.06x slower │
│ QQuery 79 │         227.07 / 230.72 ±2.93 / 234.47 ms │        254.48 / 258.26 ±3.25 / 263.19 ms │  1.12x slower │
│ QQuery 80 │         299.69 / 302.83 ±1.86 / 305.11 ms │        300.87 / 305.15 ±2.55 / 308.55 ms │     no change │
│ QQuery 81 │            27.09 / 27.31 ±0.13 / 27.42 ms │           25.94 / 26.18 ±0.14 / 26.35 ms │     no change │
│ QQuery 82 │            40.55 / 40.84 ±0.23 / 41.08 ms │           39.10 / 39.34 ±0.17 / 39.54 ms │     no change │
│ QQuery 83 │            36.82 / 37.22 ±0.29 / 37.61 ms │           35.02 / 35.35 ±0.23 / 35.72 ms │ +1.05x faster │
│ QQuery 84 │            47.40 / 49.55 ±2.72 / 54.85 ms │           46.02 / 47.53 ±2.08 / 51.65 ms │     no change │
│ QQuery 85 │         145.98 / 147.51 ±1.73 / 150.83 ms │        143.03 / 145.04 ±1.90 / 148.42 ms │     no change │
│ QQuery 86 │            38.72 / 40.16 ±2.25 / 44.62 ms │           37.41 / 37.72 ±0.25 / 38.05 ms │ +1.06x faster │
│ QQuery 87 │               3.85 / 3.95 ±0.11 / 4.16 ms │              3.55 / 3.65 ±0.14 / 3.92 ms │ +1.08x faster │
│ QQuery 88 │         103.61 / 104.11 ±0.33 / 104.49 ms │          99.21 / 99.87 ±0.55 / 100.54 ms │     no change │
│ QQuery 89 │         119.84 / 122.91 ±3.93 / 130.60 ms │        115.26 / 118.91 ±6.19 / 131.27 ms │     no change │
│ QQuery 90 │            23.14 / 23.88 ±0.60 / 24.66 ms │           22.08 / 22.56 ±0.49 / 23.42 ms │ +1.06x faster │
│ QQuery 91 │            61.71 / 62.37 ±0.61 / 63.47 ms │           59.18 / 59.66 ±0.38 / 60.14 ms │     no change │
│ QQuery 92 │            58.20 / 58.60 ±0.24 / 58.88 ms │           56.29 / 56.67 ±0.34 / 57.06 ms │     no change │
│ QQuery 93 │         169.06 / 172.21 ±1.91 / 174.50 ms │        158.97 / 160.35 ±0.73 / 161.01 ms │ +1.07x faster │
│ QQuery 94 │            60.25 / 61.05 ±1.08 / 63.17 ms │           60.69 / 61.36 ±0.41 / 61.85 ms │     no change │
│ QQuery 95 │         111.44 / 111.81 ±0.40 / 112.55 ms │        111.05 / 111.46 ±0.34 / 111.80 ms │     no change │
│ QQuery 96 │            67.16 / 67.67 ±0.34 / 68.02 ms │           68.02 / 68.76 ±0.47 / 69.23 ms │     no change │
│ QQuery 97 │         111.40 / 115.14 ±3.03 / 117.78 ms │        111.56 / 113.13 ±1.78 / 116.43 ms │     no change │
│ QQuery 98 │         148.07 / 151.05 ±2.47 / 154.29 ms │        148.30 / 149.99 ±2.05 / 154.03 ms │     no change │
│ QQuery 99 │ 10703.28 / 10900.15 ±138.22 / 11092.72 ms │ 10760.28 / 10891.23 ±87.62 / 11000.91 ms │     no change │
└───────────┴───────────────────────────────────────────┴──────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 30469.30ms │
│ Total Time (speed-up-single-primitive-group-by)   │ 30233.39ms │
│ Average Time (HEAD)                               │   307.77ms │
│ Average Time (speed-up-single-primitive-group-by) │   305.39ms │
│ Queries Faster                                    │         12 │
│ Queries Slower                                    │         12 │
│ Queries with No Change                            │         75 │
│ Queries with Failure                              │          0 │
└───────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 155.0s
Peak memory 6.3 GiB
Avg memory 5.6 GiB
CPU user 241.9s
CPU sys 8.0s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 155.0s
Peak memory 6.4 GiB
Avg memory 5.7 GiB
CPU user 239.9s
CPU sys 7.7s
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 speed-up-single-primitive-group-by
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃    speed-up-single-primitive-group-by ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.18 / 4.58 ±6.69 / 17.96 ms │          1.19 / 4.62 ±6.73 / 18.07 ms │     no change │
│ QQuery 1  │        12.28 / 12.67 ±0.23 / 12.97 ms │        12.51 / 12.61 ±0.07 / 12.72 ms │     no change │
│ QQuery 2  │        36.79 / 37.05 ±0.16 / 37.26 ms │        36.53 / 37.20 ±0.44 / 37.92 ms │     no change │
│ QQuery 3  │        31.65 / 32.53 ±1.49 / 35.51 ms │        32.04 / 32.97 ±0.53 / 33.57 ms │     no change │
│ QQuery 4  │     230.83 / 236.51 ±6.05 / 248.20 ms │     214.37 / 215.96 ±1.58 / 218.54 ms │ +1.10x faster │
│ QQuery 5  │     281.64 / 282.89 ±1.10 / 284.36 ms │     279.04 / 281.26 ±1.31 / 283.04 ms │     no change │
│ QQuery 6  │           6.52 / 7.41 ±0.73 / 8.64 ms │           6.82 / 7.45 ±0.73 / 8.88 ms │     no change │
│ QQuery 7  │        13.36 / 13.57 ±0.13 / 13.73 ms │        13.63 / 13.71 ±0.07 / 13.82 ms │     no change │
│ QQuery 8  │     318.97 / 321.36 ±1.46 / 323.55 ms │     313.37 / 317.26 ±2.52 / 320.90 ms │     no change │
│ QQuery 9  │     450.81 / 458.18 ±4.63 / 464.33 ms │     443.68 / 450.71 ±5.57 / 459.18 ms │     no change │
│ QQuery 10 │        73.89 / 74.59 ±0.63 / 75.64 ms │        73.18 / 73.91 ±0.63 / 74.94 ms │     no change │
│ QQuery 11 │        84.39 / 85.54 ±0.83 / 86.55 ms │        84.65 / 86.23 ±1.03 / 87.49 ms │     no change │
│ QQuery 12 │     273.58 / 278.49 ±3.98 / 285.24 ms │     270.37 / 274.69 ±4.45 / 280.94 ms │     no change │
│ QQuery 13 │     385.80 / 390.52 ±4.98 / 399.96 ms │     377.50 / 383.73 ±4.73 / 389.87 ms │     no change │
│ QQuery 14 │     286.47 / 287.76 ±0.81 / 289.03 ms │     280.90 / 286.96 ±5.70 / 295.80 ms │     no change │
│ QQuery 15 │     275.97 / 280.29 ±2.77 / 284.33 ms │     260.26 / 263.90 ±2.20 / 265.85 ms │ +1.06x faster │
│ QQuery 16 │     612.13 / 618.96 ±5.27 / 628.09 ms │    614.42 / 622.50 ±10.54 / 641.61 ms │     no change │
│ QQuery 17 │     611.92 / 618.02 ±5.35 / 627.10 ms │     607.58 / 615.65 ±4.98 / 622.96 ms │     no change │
│ QQuery 18 │  1235.82 / 1246.71 ±9.88 / 1265.11 ms │ 1224.87 / 1240.38 ±12.24 / 1255.12 ms │     no change │
│ QQuery 19 │       29.14 / 39.85 ±10.47 / 57.16 ms │       28.66 / 38.02 ±10.40 / 53.24 ms │     no change │
│ QQuery 20 │     518.86 / 527.17 ±7.71 / 537.16 ms │     523.03 / 529.19 ±5.51 / 537.33 ms │     no change │
│ QQuery 21 │     600.66 / 603.37 ±2.34 / 606.32 ms │     597.33 / 600.73 ±3.25 / 606.75 ms │     no change │
│ QQuery 22 │  1065.42 / 1072.81 ±5.71 / 1080.54 ms │ 1066.09 / 1088.44 ±16.48 / 1113.93 ms │     no change │
│ QQuery 23 │ 3360.41 / 3390.06 ±15.86 / 3407.55 ms │ 3359.93 / 3381.70 ±14.96 / 3401.24 ms │     no change │
│ QQuery 24 │        42.18 / 44.34 ±3.81 / 51.96 ms │        41.88 / 45.71 ±4.91 / 55.17 ms │     no change │
│ QQuery 25 │     113.47 / 116.59 ±4.04 / 124.56 ms │     113.89 / 114.56 ±0.41 / 114.93 ms │     no change │
│ QQuery 26 │        43.08 / 43.71 ±0.59 / 44.46 ms │        42.92 / 43.63 ±0.62 / 44.76 ms │     no change │
│ QQuery 27 │     668.70 / 675.38 ±4.10 / 680.57 ms │     670.18 / 682.75 ±9.76 / 697.34 ms │     no change │
│ QQuery 28 │  3005.24 / 3013.95 ±6.55 / 3023.19 ms │ 3011.19 / 3022.17 ±13.72 / 3048.41 ms │     no change │
│ QQuery 29 │        42.44 / 45.11 ±4.18 / 53.41 ms │        42.34 / 46.77 ±7.22 / 61.11 ms │     no change │
│ QQuery 30 │     306.47 / 313.41 ±6.20 / 325.08 ms │     307.38 / 318.80 ±9.22 / 333.64 ms │     no change │
│ QQuery 31 │     298.52 / 305.86 ±6.19 / 315.89 ms │     301.85 / 305.33 ±3.19 / 309.99 ms │     no change │
│ QQuery 32 │   974.28 / 988.73 ±12.42 / 1008.28 ms │    963.69 / 978.29 ±12.27 / 992.08 ms │     no change │
│ QQuery 33 │ 1420.14 / 1444.11 ±13.82 / 1460.16 ms │  1429.94 / 1435.09 ±6.62 / 1448.19 ms │     no change │
│ QQuery 34 │ 1427.78 / 1450.88 ±12.92 / 1465.79 ms │  1442.66 / 1452.02 ±9.34 / 1469.85 ms │     no change │
│ QQuery 35 │    278.26 / 291.57 ±12.11 / 312.83 ms │    237.48 / 250.81 ±10.62 / 269.68 ms │ +1.16x faster │
│ QQuery 36 │        61.58 / 68.17 ±5.38 / 75.42 ms │        62.23 / 63.35 ±0.95 / 64.79 ms │ +1.08x faster │
│ QQuery 37 │        36.02 / 39.54 ±2.27 / 42.87 ms │        35.12 / 39.01 ±4.92 / 48.28 ms │     no change │
│ QQuery 38 │        40.98 / 44.98 ±3.84 / 52.03 ms │        43.62 / 46.67 ±3.23 / 52.05 ms │     no change │
│ QQuery 39 │     123.78 / 132.74 ±5.43 / 140.23 ms │     128.25 / 136.81 ±6.35 / 147.04 ms │     no change │
│ QQuery 40 │        14.70 / 19.44 ±4.08 / 26.14 ms │        14.21 / 14.70 ±0.73 / 16.13 ms │ +1.32x faster │
│ QQuery 41 │        14.02 / 14.36 ±0.42 / 15.17 ms │        13.93 / 14.79 ±1.14 / 16.99 ms │     no change │
│ QQuery 42 │        13.42 / 13.48 ±0.04 / 13.54 ms │        13.19 / 15.87 ±3.81 / 23.19 ms │  1.18x slower │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                 ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                 │ 19987.21ms │
│ Total Time (speed-up-single-primitive-group-by)   │ 19886.90ms │
│ Average Time (HEAD)                               │   464.82ms │
│ Average Time (speed-up-single-primitive-group-by) │   462.49ms │
│ Queries Faster                                    │          5 │
│ Queries Slower                                    │          1 │
│ Queries with No Change                            │         37 │
│ Queries with Failure                              │          0 │
└───────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 105.0s
Peak memory 29.4 GiB
Avg memory 22.9 GiB
CPU user 1055.4s
CPU sys 66.0s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 100.0s
Peak memory 30.6 GiB
Avg memory 23.4 GiB
CPU user 1049.7s
CPU sys 65.1s
Peak spill 0 B

File an issue against this benchmark runner

@Dandandan Dandandan force-pushed the speed-up-single-primitive-group-by branch from b79d787 to 611f091 Compare May 1, 2026 19:35
@Dandandan Dandandan changed the title perf: speed up primitive group value interning perf: speed up primitive group value interning, use less memory May 1, 2026
@Dandandan Dandandan marked this pull request as ready for review May 1, 2026 19:36
}

fn single_group_by_primitive_intern(c: &mut Criterion) {
const BATCH_SIZE: usize = 4096;
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.

should be batch size be like default?

EmitTo::All => {
self.map.clear();
build_primitive(std::mem::take(&mut self.values), self.null_group.take())
let mut values = vec![T::default_value(); self.num_groups];
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.

can values be reused? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants