Skip to content

DRAFT Bench 27299 - #27988

Draft
kosiew wants to merge 2 commits into
apache:mainfrom
kosiew:bench-27299a
Draft

kosiew wants to merge 2 commits into
apache:mainfrom
kosiew:bench-27299a

Conversation

@kosiew

@kosiew kosiew commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

bench #27299
rebased #27299 on top of 05b6de3

@kosiew

kosiew commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark grouped_count_distinct

baseline:
  ref: ffc2557797
env:
  DATAFUSION_OPTIMIZER_SINGLE_DISTINCT_PREFER_NATIVE: "true"
  DATAFUSION_EXECUTION_TARGET_PARTITIONS: "1"
  MEM_POOL_TYPE: greedy
  MEMORY_LIMIT: 1G

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c7372504407-6170-fqqxm 6.12.105+ #1 SMP Sat Sep 19 07:55:25 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 bench-27299a (ff456c1) to ffc2557 diff

Run configuration
run benchmark grouped_count_distinct
env:
  DATAFUSION_EXECUTION_TARGET_PARTITIONS: "1"
  DATAFUSION_OPTIMIZER_SINGLE_DISTINCT_PREFER_NATIVE: "true"
  MEMORY_LIMIT: "1G"
  MEM_POOL_TYPE: "greedy"
baseline:
  ref: "ffc2557797"
Trigger comment
run benchmark grouped_count_distinct
```yaml
baseline:
  ref: ffc2557797
env:
  DATAFUSION_OPTIMIZER_SINGLE_DISTINCT_PREFER_NATIVE: "true"
  DATAFUSION_EXECUTION_TARGET_PARTITIONS: "1"
  MEM_POOL_TYPE: greedy
  MEMORY_LIMIT: 1G
```

Results will be posted here when complete


File an issue against this benchmark runner

@github-actions github-actions Bot added sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels Dec 3, 2026
@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing bench-27299a (ff456c1) to ffc2557 diff

Run configuration
run benchmark grouped_count_distinct
env:
  DATAFUSION_EXECUTION_TARGET_PARTITIONS: "1"
  DATAFUSION_OPTIMIZER_SINGLE_DISTINCT_PREFER_NATIVE: "true"
  MEMORY_LIMIT: "1G"
  MEM_POOL_TYPE: "greedy"
baseline:
  ref: "ffc2557797"
Trigger comment
run benchmark grouped_count_distinct
```yaml
baseline:
  ref: ffc2557797
env:
  DATAFUSION_OPTIMIZER_SINGLE_DISTINCT_PREFER_NATIVE: "true"
  DATAFUSION_EXECUTION_TARGET_PARTITIONS: "1"
  MEM_POOL_TYPE: greedy
  MEMORY_LIMIT: 1G
```
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

group                         HEAD                                   bench-27299a
-----                         ----                                   ------------
grouped_count_distinct/Q01    1.00    189.5±6.46ms        ? ?/sec    1.00    189.1±2.13ms        ? ?/sec
grouped_count_distinct/Q02    1.00     35.4±0.19ms        ? ?/sec    1.00     35.3±0.17ms        ? ?/sec
grouped_count_distinct/Q03    1.03    183.6±3.71ms        ? ?/sec    1.00    177.4±2.58ms        ? ?/sec
grouped_count_distinct/Q04    1.11    187.5±4.40ms        ? ?/sec    1.00    169.7±2.58ms        ? ?/sec
grouped_count_distinct/Q05    1.00    238.0±6.80ms        ? ?/sec    1.04    247.8±7.25ms        ? ?/sec
grouped_count_distinct/Q06    1.03    249.3±6.57ms        ? ?/sec    1.00    242.5±4.18ms        ? ?/sec
grouped_count_distinct/Q07    1.00    162.8±3.76ms        ? ?/sec    1.05    171.4±2.24ms        ? ?/sec
grouped_count_distinct/Q08    1.10    203.5±4.92ms        ? ?/sec    1.00   184.3±19.21ms        ? ?/sec
grouped_count_distinct/Q09    1.00    198.4±7.86ms        ? ?/sec    1.07    211.6±1.48ms        ? ?/sec
grouped_count_distinct/Q10    2.68   379.8±11.73ms        ? ?/sec    1.00    141.7±4.20ms        ? ?/sec
grouped_count_distinct/Q11    1.59    366.0±6.57ms        ? ?/sec    1.00    230.5±4.69ms        ? ?/sec
grouped_count_distinct/Q12    1.11    242.7±5.83ms        ? ?/sec    1.00    218.6±6.08ms        ? ?/sec

Memory Pool Peaks

Peak MemoryPool reservation per query — what DataFusion's accounting believes it reserved. Recorded only for benchmarks that write a results JSON (the dfbench suites, and the suites bench.sh runs through the Criterion SQL harness since #25644), and only under a memory limit: DATAFUSION_RUNTIME_MEMORY_LIMIT, or one the suite sets itself.

Base: ffc2557797 | Changed: bench-27299a

grouped_count_distinct

Query Base Changed Change
grouped_count_distinct/Q01 168.2 MiB 168.2 MiB +0.0%
grouped_count_distinct/Q02 843.6 KiB 523.3 KiB -38.0%
grouped_count_distinct/Q03 168.1 MiB 168.1 MiB +0.0%
grouped_count_distinct/Q04 168.2 MiB 168.2 MiB +0.0%
grouped_count_distinct/Q05 223.5 MiB 223.5 MiB +0.0%
grouped_count_distinct/Q06 191.5 MiB 191.5 MiB +0.0%
grouped_count_distinct/Q07 42.1 MiB 42.1 MiB +0.0%
grouped_count_distinct/Q08 42.2 MiB 42.2 MiB +0.0%
grouped_count_distinct/Q09 42.3 MiB 42.3 MiB +0.0%
grouped_count_distinct/Q10 95.9 MiB 61.9 MiB -35.5%
grouped_count_distinct/Q11 95.9 MiB 82.9 MiB -13.6%
grouped_count_distinct/Q12 55.2 MiB 61.9 MiB +12.1%

Pool accounting vs. process RSS

Max pool peak is the largest reservation any single query in the run reached; peak RSS covers the whole invocation, including data loading and allocator retention, and the two high-water marks need not coincide in time. The gap is therefore an upper bound on what the pool did not account for, not a measurement of it.

Benchmark Side Max pool peak Peak RSS Gap RSS / pool
grouped_count_distinct base (ffc2557797) 223.5 MiB 1.0 GiB 838.4 MiB 4.8×
grouped_count_distinct changed (bench-27299a) 223.5 MiB 1.1 GiB 884.9 MiB 5.0×
Resource Usage

grouped_count_distinct — base (merge-base)

Metric Value
Wall time 590.2s
Peak memory 1.0 GiB
Avg memory 214.1 MiB
CPU user 167.9s
CPU sys 1.7s
Peak spill 0 B

grouped_count_distinct — branch

Metric Value
Wall time 580.2s
Peak memory 1.1 GiB
Avg memory 210.3 MiB
CPU user 161.4s
CPU sys 1.3s
Peak spill 0 B

File an issue against this benchmark runner

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

Labels

functions Changes to functions implementation sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants