Skip to content

perf: simplify HashJoinExec dynamic filter, drop CASE routing#21931

Open
adriangb wants to merge 6 commits intoapache:mainfrom
pydantic:worktree-dynamic-filter-restructure
Open

perf: simplify HashJoinExec dynamic filter, drop CASE routing#21931
adriangb wants to merge 6 commits intoapache:mainfrom
pydantic:worktree-dynamic-filter-restructure

Conversation

@adriangb
Copy link
Copy Markdown
Contributor

@adriangb adriangb commented Apr 29, 2026

Which issue does this PR close?

Rationale for this change

Today the Partitioned-mode HashJoinExec builds a dynamic filter that's structured around the repartition layout:

CASE hash_repartition % N
  WHEN 0 THEN p0_bounds AND (p0_inlist | p0_hash_lookup)
  WHEN 1 THEN p1_bounds AND (p1_inlist | p1_hash_lookup)
  ...
  ELSE false
END

Two problems with this:

  1. Per-row routing-hash cost. Every probe row pays a hash_repartition % N even though the partition's hash table will be probed anyway with a different seed (HASH_JOIN_SEED).
  2. Coupling. The dynamic filter's shape depends on how the build side was repartitioned, even though semantically the filter is just "is this key somewhere in the build side?"

This PR replaces the routing CASE with a structure that depends only on the content of the build side, not its layout, and adds a cross-partition merged `IN (SET)` fast path so small joins can participate in parquet stats / bloom-filter pruning at the scan side.

What changes are included in this PR?

Five commits:

  1. `perf: collapse all-Map dynamic filter into MultiMapLookupExpr` — new `MultiMapLookupExpr` hashes the join keys once with `HASH_JOIN_SEED` and ORs `contain_hashes()` across every reported partition's hash table.
  2. `perf: collapse small all-InList dynamic filter into one cross-partition IN (SET)` — when every reported partition contributed an InList array and the cross-partition union is small enough, concatenate them into a single global `IN (SET)`.
  3. `refactor: drop CASE routing from Partitioned dynamic filters` — `PushdownStrategy` now always carries the `Map` (the join's hash table is built unconditionally) plus an optional InList array; the routing CASE goes away.
  4. `refactor: dedup cross-partition InList, reuse per-partition cap` — combine path deduplicates by `ScalarValue` and re-gates on distinct count. The existing `optimizer.hash_join_inlist_pushdown_max_distinct_values` knob caps both per-partition InList eligibility and the cross-partition merged set.
  5. `docs: rewrite comments to describe the code, not the change` — comment cleanup.

Final filter-shape matrix

input shape
`enable_dynamic_filter_pushdown=false` no filter installed
`CollectLeft`, build empty filter stays at `lit(true)`
`CollectLeft`, build small (under inlist caps) `bounds AND IN (SET)`
`CollectLeft`, build large `bounds AND hash_lookup`
`Partitioned`, all reported partitions empty `lit(false)`
`Partitioned`, any partition canceled `lit(true)`
`Partitioned`, every partition InList AND combined ≤ cap `bounds AND IN (SET)` (parquet-prunable)
`Partitioned`, anything else `bounds AND multi_hash_lookup`

No more `CASE`, no more `hash_repartition`, no more `REPARTITION_RANDOM_STATE` in the dynamic-filter path.

Performance

Per-row cost (Partitioned mode)

Let `N` = number of build-side partitions. For each probe row evaluated by the dynamic filter:

Shape Hashes Hash-table probes Per-row cost
Legacy CASE-by-routing 2 (routing + lookup) 1 (one branch) `O(1)`
`multi_hash_lookup` (all-Map fast path) 1 (lookup) N (one per map) `O(N)`
Merged `IN (SET)` (small-union fast path) 1 1 (one `static_filter`) `O(1)` + scan-side row-group / bloom pruning

Two countervailing forces shape the result:

  • Per-batch overhead: legacy CASE evaluates through `CaseExpr`, which can scale poorly with the number of `WHEN` branches at high N. `multi_hash_lookup` is a single straight-line OR loop and avoids this.
  • Per-row overhead at high N: `multi_hash_lookup` does N probes per row. When the filter runs in the parquet scan hot loop (pushdown=true), this matters more than the CASE per-batch overhead. When the filter runs at join time (pushdown=false), it doesn't.

Benchmarks (TPC-H, runner = c4a-highmem-16, ARM Neoverse-V2, 16 cores)

Triggered four runs covering both N regimes and both pushdown configs.

Default partitioning (N ≈ ncores ≈ 16)

Config `Total Time (HEAD)` `Total Time (PR)` Change
`pushdown_filters=false` 912.79 ms 916.39 ms +0.4% (noise)
`pushdown_filters=true` 1259.10 ms 1166.39 ms −7.4%

In the `pushdown=true` run the wins concentrate on queries where the dynamic filter feeds parquet stats / bloom-filter pruning at the scan:

Query HEAD PR Change
Q17 165 / 171 ms 56 / 56 ms +2.96× faster
Q18 77 / 77 ms 59 / 60 ms +1.30× faster
Q20 47 / 47 ms 44 / 49 ms +1.06× faster
Q3 49 / 49 ms 54 / 55 ms 1.10× slower
Q5 73 / 76 ms 77 / 82 ms 1.05× slower
Q9 112 / 115 ms 124 / 127 ms 1.10× slower
Q13 50 / 50 ms 64 / 64 ms 1.29× slower
Q14 41 / 42 ms 46 / 47 ms 1.11× slower

Q17 alone is 109 ms of the 93 ms total wall-clock improvement — that's the original issue's regression, fixed. The small-query regressions (Q3/Q5/Q9/Q13/Q14) are the all-Map shape paying `O(N)` probes per row for moderate-to-large build sides where the bounds prefix doesn't prune much.

High partition count (`target_partitions=128`)

A stress test of partition-count scaling on the same 16-core box.

Config `Total Time (HEAD)` `Total Time (PR)` Change
`pushdown_filters=false` 2566.31 ms 1756.80 ms −31.5% (1.46× faster)
`pushdown_filters=true` 3209.06 ms 3636.15 ms +13.3%

Pushdown=false @ N=128: 11 queries faster, 0 slower, 11 unchanged. `multi_hash_lookup` cleanly beats the legacy 128-branch `CaseExpr` evaluation. Big wins on Q3 (1.68×), Q5 (1.82×), Q7 (1.75×), Q8 (2.15×), Q9 (1.64×), Q12 (1.81×), Q13 (1.76×), Q17 (1.59×), Q18 (1.29×), Q20 (2.05×), Q21 (1.43×).

Pushdown=true @ N=128: 4 faster, 9 slower. This is the case where the filter runs in the scan hot loop and `multi_hash_lookup`'s `O(N)` probes per row dominate. The wins (Q17 1.87×, Q18 1.39×, Q20 1.76×) survive because their merged `IN (SET)` prunes whole row groups before the per-row filter ever runs. The losses (Q5 1.88×, Q9 1.64×, Q21 1.62×, Q14 1.51×, Q8 1.37×) are the same all-Map shape paying 128 probes per row.

Summary of the regime grid

pushdown=false pushdown=true
N ≈ ncores (default) noise (≈0%) −7.4% (Q17 +2.96×)
N = 128 −31.5% +13.3% (Q17 still +1.87×, but Q5/Q9 etc. regress)

Three of the four configs are wins (one big), one is a regression. The single regressing config is `high N + scan-side pushdown`, which is exactly the scenario `OptionalFilterPhysicalExpr` from #20363 is designed to absorb: the adaptive tracker would measure `multi_hash_lookup`'s low `bytes_pruned_per_second_of_eval_time` for queries like Q5/Q9/Q21 and drop the filter, while keeping Q17/Q18/Q20 (which prune scans aggressively).

A possible structural follow-up — re-introducing partition routing inside `MultiMapLookupExpr` (1 routing hash + 1 probe, so per-row cost matches legacy CASE) — would close the regression at any N, with or without #20363.

Are these changes tested?

  • Existing `joins::hash_join` lib tests pass (380 tests).
  • `physical_optimizer::filter_pushdown` integration tests pass (51 tests). Two snapshots updated:
    • `test_hashjoin_dynamic_filter_pushdown_partitioned` now produces `bounds AND struct(...) IN (SET) ([...])` directly (the size-gated path subsumes what `force_hash_collisions` previously fell into).
    • `test_hashjoin_hash_table_pushdown_partitioned` now positively asserts `multi_hash_lookup` and the absence of `hash_repartition`.
  • `information_schema.slt` updated to reflect the new default for `hash_join_inlist_pushdown_max_distinct_values`.
  • `push_down_filter_parquet.slt` passes.
  • `cargo clippy -p datafusion-physical-plan --all-targets -- -D warnings` is clean.

Are there any user-facing changes?

  • Default lowered: `optimizer.hash_join_inlist_pushdown_max_distinct_values` 150 → 20. Affects which build-side shapes choose InList vs. hash-table pushdown per partition, and now also gates the cross-partition merged InList. Users who depend on the old per-partition behavior can set it back to 150 in their config. Doc string in `config.rs` and `docs/source/user-guide/configs.md` are updated.
  • Plan output: `EXPLAIN ANALYZE` for `Partitioned` hash joins no longer shows `CASE hash_repartition % N WHEN ...`. Instead it shows either `bounds AND struct(...) IN (SET) ([...])` (small joins) or `bounds AND multi_hash_lookup` (everything else).

🤖 Generated with Claude Code

@github-actions github-actions Bot added documentation Improvements or additions to documentation core Core DataFusion crate common Related to common crate physical-plan Changes to the physical-plan crate labels Apr 29, 2026
@adriangb
Copy link
Copy Markdown
Contributor Author

run benchmark tcph

baseline:
    ref: main
    env:
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: false
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: false
changed:
    ref: HEAD
    env:
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: false
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: false

@adriangb
Copy link
Copy Markdown
Contributor Author

run benchmark tcph

baseline:
    ref: main
    env:
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true
changed:
    ref: HEAD
    env:
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true

@adriangbot
Copy link
Copy Markdown

🤖 Criterion benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4345503296-1912-446v6 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 HEAD (7a8272f) to main diff
BENCH_NAME=tcph
BENCH_COMMAND=cargo bench --features=parquet --bench tcph
BENCH_FILTER=
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

Benchmark for this request failed.

Last 20 lines of output:

Click to expand
  Downloaded compression-codecs v0.4.38
  Downloaded cfg_aliases v0.2.1
  Downloaded aws-credential-types v1.2.14
  Downloaded async-stream v0.3.6
  Downloaded atoi v2.0.0
  Downloaded arrow-string v58.1.0
  Downloaded anstyle v1.0.14
  Downloaded axum-core v0.5.6
  Downloaded aws-smithy-xml v0.60.15
  Downloaded aws-smithy-observability v0.2.6
  Downloaded autocfg v1.5.0
  Downloaded ahash v0.8.12
  Downloaded anstream v1.0.0
  Downloaded async-recursion v1.1.1
  Downloaded async-ffi v0.5.0
  Downloaded anes v0.1.6
    Blocking waiting for file lock on package cache
error: no bench target named `tcph` in default-run packages

help: a target with a similar name exists: `chr`

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Criterion benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4345504799-1913-ftp4k 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 HEAD (7a8272f) to main diff
BENCH_NAME=tcph
BENCH_COMMAND=cargo bench --features=parquet --bench tcph
BENCH_FILTER=
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

Benchmark for this request failed.

Last 20 lines of output:

Click to expand
  Downloaded clap v4.6.1
  Downloaded ciborium v0.2.2
  Downloaded aws-smithy-xml v0.60.15
  Downloaded async-stream-impl v0.3.6
  Downloaded arrow-csv v58.1.0
  Downloaded compression-core v0.4.32
  Downloaded bytes-utils v0.1.4
  Downloaded blake2 v0.10.6
  Downloaded bitflags v2.11.1
  Downloaded aws-types v1.3.15
  Downloaded aws-smithy-async v1.2.14
  Downloaded anstyle v1.0.14
  Downloaded clap_lex v1.1.0
  Downloaded aws-smithy-query v0.60.15
  Downloaded aws-smithy-observability v0.2.6
  Downloaded arrayref v0.3.9
    Blocking waiting for file lock on package cache
error: no bench target named `tcph` in default-run packages

help: a target with a similar name exists: `chr`

File an issue against this benchmark runner

@adriangb
Copy link
Copy Markdown
Contributor Author

run benchmark tpch

baseline:
    ref: main
    env:
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true
changed:
    ref: HEAD
    env:
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true

@adriangb
Copy link
Copy Markdown
Contributor Author

run benchmark tpch

baseline:
    ref: main
    env:
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: false
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: false
changed:
    ref: HEAD
    env:
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: false
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: false

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4345545637-1915-vxjfd 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 HEAD (7a8272f) to main 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-c4345547022-1916-gt4f5 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 HEAD (7a8272f) to main diff using: tpch
Results will be posted here when complete


File an issue against this benchmark runner

@github-actions github-actions Bot added the sqllogictest SQL Logic Tests (.slt) label Apr 29, 2026
@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and worktree-dynamic-filter-restructure
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                              HEAD ┃ worktree-dynamic-filter-restructure ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │    43.41 / 44.20 ±0.95 / 46.07 ms │      43.37 / 44.58 ±1.47 / 47.38 ms │     no change │
│ QQuery 2  │    25.18 / 25.59 ±0.35 / 26.10 ms │      25.09 / 25.23 ±0.24 / 25.72 ms │     no change │
│ QQuery 3  │    48.02 / 48.76 ±0.41 / 49.09 ms │      52.88 / 53.66 ±0.85 / 55.19 ms │  1.10x slower │
│ QQuery 4  │    22.73 / 22.86 ±0.11 / 23.02 ms │      22.47 / 22.68 ±0.13 / 22.88 ms │     no change │
│ QQuery 5  │    70.47 / 72.83 ±2.26 / 76.28 ms │      73.07 / 76.76 ±3.21 / 81.56 ms │  1.05x slower │
│ QQuery 6  │    35.98 / 36.50 ±0.54 / 37.55 ms │      36.12 / 37.55 ±1.15 / 38.84 ms │     no change │
│ QQuery 7  │    57.86 / 58.04 ±0.21 / 58.45 ms │      55.25 / 56.19 ±1.09 / 58.34 ms │     no change │
│ QQuery 8  │    79.29 / 80.19 ±0.67 / 81.15 ms │      76.28 / 76.74 ±0.51 / 77.67 ms │     no change │
│ QQuery 9  │ 110.20 / 112.39 ±2.16 / 115.28 ms │   120.81 / 124.17 ±2.52 / 126.74 ms │  1.10x slower │
│ QQuery 10 │    76.60 / 77.36 ±0.60 / 78.04 ms │      76.50 / 76.70 ±0.31 / 77.31 ms │     no change │
│ QQuery 11 │    16.63 / 17.50 ±0.98 / 19.19 ms │      16.15 / 16.94 ±0.76 / 18.03 ms │     no change │
│ QQuery 12 │    46.65 / 47.21 ±0.60 / 48.34 ms │      45.96 / 47.22 ±2.09 / 51.39 ms │     no change │
│ QQuery 13 │    48.67 / 49.58 ±0.56 / 50.27 ms │      63.30 / 63.75 ±0.36 / 64.23 ms │  1.29x slower │
│ QQuery 14 │    40.73 / 41.21 ±0.61 / 42.29 ms │      44.72 / 45.58 ±0.69 / 46.50 ms │  1.11x slower │
│ QQuery 15 │    45.55 / 46.45 ±0.75 / 47.39 ms │      45.01 / 46.74 ±1.97 / 50.52 ms │     no change │
│ QQuery 16 │    23.72 / 24.27 ±0.57 / 25.18 ms │      23.46 / 23.72 ±0.18 / 23.98 ms │     no change │
│ QQuery 17 │ 161.67 / 165.40 ±3.60 / 171.03 ms │      55.41 / 55.87 ±0.49 / 56.52 ms │ +2.96x faster │
│ QQuery 18 │    75.97 / 76.74 ±0.55 / 77.28 ms │      57.68 / 58.81 ±0.99 / 59.97 ms │ +1.30x faster │
│ QQuery 19 │    42.01 / 42.27 ±0.20 / 42.49 ms │      42.38 / 42.80 ±0.29 / 43.14 ms │     no change │
│ QQuery 20 │    45.92 / 46.56 ±0.53 / 47.48 ms │      42.72 / 43.95 ±2.31 / 48.58 ms │ +1.06x faster │
│ QQuery 21 │    84.97 / 86.79 ±2.22 / 91.01 ms │      89.70 / 90.48 ±0.67 / 91.45 ms │     no change │
│ QQuery 22 │    35.83 / 36.41 ±0.32 / 36.77 ms │      36.07 / 36.24 ±0.13 / 36.46 ms │     no change │
└───────────┴───────────────────────────────────┴─────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 1259.10ms │
│ Total Time (worktree-dynamic-filter-restructure)   │ 1166.39ms │
│ Average Time (HEAD)                                │   57.23ms │
│ Average Time (worktree-dynamic-filter-restructure) │   53.02ms │
│ Queries Faster                                     │         3 │
│ Queries Slower                                     │         5 │
│ Queries with No Change                             │        14 │
│ Queries with Failure                               │         0 │
└────────────────────────────────────────────────────┴───────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 10.0s
Peak memory 5.3 GiB
Avg memory 4.6 GiB
CPU user 47.7s
CPU sys 2.6s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 10.0s
Peak memory 5.3 GiB
Avg memory 4.5 GiB
CPU user 42.2s
CPU sys 2.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 worktree-dynamic-filter-restructure
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃ worktree-dynamic-filter-restructure ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 41.66 / 42.57 ±1.04 / 44.21 ms │      40.50 / 41.42 ±1.12 / 43.61 ms │     no change │
│ QQuery 2  │ 21.92 / 22.31 ±0.47 / 23.20 ms │      20.98 / 21.26 ±0.16 / 21.46 ms │     no change │
│ QQuery 3  │ 39.33 / 43.06 ±2.19 / 46.23 ms │      38.00 / 39.19 ±1.17 / 40.70 ms │ +1.10x faster │
│ QQuery 4  │ 19.18 / 19.43 ±0.14 / 19.59 ms │      18.65 / 19.08 ±0.62 / 20.30 ms │     no change │
│ QQuery 5  │ 48.30 / 50.23 ±1.65 / 52.60 ms │      49.54 / 50.89 ±1.39 / 53.45 ms │     no change │
│ QQuery 6  │ 17.67 / 17.74 ±0.07 / 17.85 ms │      17.64 / 17.83 ±0.15 / 18.08 ms │     no change │
│ QQuery 7  │ 55.53 / 56.45 ±0.75 / 57.57 ms │      54.68 / 56.55 ±1.58 / 58.30 ms │     no change │
│ QQuery 8  │ 48.77 / 48.97 ±0.18 / 49.24 ms │      48.75 / 48.86 ±0.08 / 49.01 ms │     no change │
│ QQuery 9  │ 54.11 / 55.41 ±0.91 / 56.61 ms │      54.78 / 56.06 ±1.70 / 59.40 ms │     no change │
│ QQuery 10 │ 66.35 / 67.23 ±1.43 / 70.07 ms │      67.59 / 69.20 ±1.44 / 71.78 ms │     no change │
│ QQuery 11 │ 14.35 / 14.72 ±0.47 / 15.60 ms │      14.69 / 15.15 ±0.30 / 15.50 ms │     no change │
│ QQuery 12 │ 27.56 / 28.25 ±0.63 / 29.05 ms │      28.14 / 28.76 ±0.80 / 30.30 ms │     no change │
│ QQuery 13 │ 38.35 / 38.83 ±0.29 / 39.13 ms │      39.07 / 39.66 ±0.37 / 40.25 ms │     no change │
│ QQuery 14 │ 28.33 / 28.63 ±0.22 / 28.99 ms │      28.93 / 29.22 ±0.23 / 29.56 ms │     no change │
│ QQuery 15 │ 34.09 / 34.42 ±0.31 / 35.01 ms │      34.76 / 35.24 ±0.37 / 35.86 ms │     no change │
│ QQuery 16 │ 15.70 / 15.80 ±0.07 / 15.90 ms │      16.00 / 16.27 ±0.38 / 17.03 ms │     no change │
│ QQuery 17 │ 79.29 / 80.63 ±0.82 / 81.84 ms │      75.69 / 77.38 ±0.90 / 78.18 ms │     no change │
│ QQuery 18 │ 76.53 / 77.79 ±0.95 / 79.12 ms │      78.73 / 79.49 ±0.46 / 80.05 ms │     no change │
│ QQuery 19 │ 38.12 / 38.39 ±0.16 / 38.58 ms │      38.75 / 39.13 ±0.24 / 39.35 ms │     no change │
│ QQuery 20 │ 40.28 / 41.62 ±2.55 / 46.73 ms │      40.75 / 42.65 ±3.22 / 49.05 ms │     no change │
│ QQuery 21 │ 64.08 / 65.63 ±1.07 / 66.75 ms │      66.91 / 67.85 ±0.80 / 69.22 ms │     no change │
│ QQuery 22 │ 24.47 / 24.68 ±0.14 / 24.82 ms │      24.97 / 25.24 ±0.19 / 25.47 ms │     no change │
└───────────┴────────────────────────────────┴─────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 912.79ms │
│ Total Time (worktree-dynamic-filter-restructure)   │ 916.39ms │
│ Average Time (HEAD)                                │  41.49ms │
│ Average Time (worktree-dynamic-filter-restructure) │  41.65ms │
│ 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.5 GiB
Avg memory 4.9 GiB
CPU user 34.2s
CPU sys 2.5s
Peak spill 0 B

tpch — branch

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

File an issue against this benchmark runner

@adriangb
Copy link
Copy Markdown
Contributor Author

run benchmark tpch

baseline:
    ref: main
    env:
       DATAFUSION_EXECUTION_TARGET_PARTITIONS=128
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: false
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: false
changed:
    ref: HEAD
    env:
       DATAFUSION_EXECUTION_TARGET_PARTITIONS=128
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: false
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: false

@adriangbot
Copy link
Copy Markdown

Hi @adriangb, your benchmark configuration could not be parsed (#21931 (comment)).

Error: invalid configuration: baseline.env: invalid type: string "DATAFUSION_EXECUTION_TARGET_PARTITIONS=128 DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS", expected a map at line 5 column 8

Supported benchmarks:

  • Standard: clickbench_1, clickbench_extended, clickbench_partitioned, clickbench_pushdown, external_aggr, smj, sort_pushdown, sort_pushdown_inexact, sort_pushdown_inexact_overlap, sort_pushdown_inexact_unsorted, sort_pushdown_sorted, topk_tpch, tpcds, tpch, tpch10, tpch_mem, tpch_mem10
  • Criterion: (any)

Usage:

run benchmark <name>           # run specific benchmark(s)
run benchmarks                 # run default suite
run benchmarks <name1> <name2> # run specific benchmarks

Per-side configuration (run benchmark tpch followed by):

env:
SHARED_SETTING: enabled
baseline:
ref: v45.0.0
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: 1G
changed:
ref: v46.0.0
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: 2G

File an issue against this benchmark runner

@adriangb
Copy link
Copy Markdown
Contributor Author

run benchmark tpch

baseline:
    ref: main
    env:
       DATAFUSION_EXECUTION_TARGET_PARTITIONS=128
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true
changed:
    ref: HEAD
    env:
       DATAFUSION_EXECUTION_TARGET_PARTITIONS=128
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true

@adriangbot
Copy link
Copy Markdown

Hi @adriangb, your benchmark configuration could not be parsed (#21931 (comment)).

Error: invalid configuration: baseline.env: invalid type: string "DATAFUSION_EXECUTION_TARGET_PARTITIONS=128 DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS", expected a map at line 5 column 8

Supported benchmarks:

  • Standard: clickbench_1, clickbench_extended, clickbench_partitioned, clickbench_pushdown, external_aggr, smj, sort_pushdown, sort_pushdown_inexact, sort_pushdown_inexact_overlap, sort_pushdown_inexact_unsorted, sort_pushdown_sorted, topk_tpch, tpcds, tpch, tpch10, tpch_mem, tpch_mem10
  • Criterion: (any)

Usage:

run benchmark <name>           # run specific benchmark(s)
run benchmarks                 # run default suite
run benchmarks <name1> <name2> # run specific benchmarks

Per-side configuration (run benchmark tpch followed by):

env:
SHARED_SETTING: enabled
baseline:
ref: v45.0.0
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: 1G
changed:
ref: v46.0.0
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: 2G

File an issue against this benchmark runner

@adriangb
Copy link
Copy Markdown
Contributor Author

run benchmark tpch

baseline:
    ref: main
    env:
       DATAFUSION_EXECUTION_TARGET_PARTITIONS: 128
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: false
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: false
changed:
    ref: HEAD
    env:
       DATAFUSION_EXECUTION_TARGET_PARTITIONS: 128
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: false
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: false

@adriangb
Copy link
Copy Markdown
Contributor Author

run benchmark tpch

baseline:
    ref: main
    env:
       DATAFUSION_EXECUTION_TARGET_PARTITIONS: 128
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true
changed:
    ref: HEAD
    env:
       DATAFUSION_EXECUTION_TARGET_PARTITIONS: 128
       DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: true
       DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: true

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4345772857-1921-hxt5c 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 HEAD (18129fe) to main 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-c4345770652-1920-8dwhv 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 HEAD (18129fe) to main diff using: tpch
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and worktree-dynamic-filter-restructure
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                               HEAD ┃ worktree-dynamic-filter-restructure ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │     50.39 / 51.37 ±0.72 / 52.18 ms │      50.98 / 51.49 ±0.41 / 51.93 ms │     no change │
│ QQuery 2  │     41.24 / 42.35 ±1.13 / 44.39 ms │      42.22 / 43.18 ±1.52 / 46.19 ms │     no change │
│ QQuery 3  │ 121.16 / 137.14 ±10.30 / 149.26 ms │      80.57 / 81.85 ±1.46 / 84.12 ms │ +1.68x faster │
│ QQuery 4  │     35.18 / 37.11 ±1.11 / 38.15 ms │      35.39 / 36.62 ±1.11 / 38.35 ms │     no change │
│ QQuery 5  │ 202.96 / 225.56 ±12.70 / 237.39 ms │   121.17 / 124.14 ±2.37 / 127.42 ms │ +1.82x faster │
│ QQuery 6  │     21.61 / 22.62 ±0.68 / 23.24 ms │      22.16 / 22.79 ±0.61 / 23.75 ms │     no change │
│ QQuery 7  │  209.79 / 218.28 ±4.51 / 222.71 ms │   120.22 / 124.67 ±2.41 / 127.04 ms │ +1.75x faster │
│ QQuery 8  │  207.20 / 212.46 ±3.23 / 216.63 ms │     95.98 / 98.63 ±1.75 / 100.98 ms │ +2.15x faster │
│ QQuery 9  │  196.07 / 198.42 ±2.40 / 202.39 ms │   118.49 / 121.18 ±2.19 / 124.98 ms │ +1.64x faster │
│ QQuery 10 │     83.06 / 84.09 ±0.83 / 85.33 ms │      82.62 / 84.10 ±1.05 / 85.83 ms │     no change │
│ QQuery 11 │     40.02 / 41.99 ±1.88 / 44.95 ms │      40.26 / 41.90 ±1.06 / 43.37 ms │     no change │
│ QQuery 12 │  113.38 / 118.16 ±4.21 / 123.64 ms │      62.57 / 65.21 ±1.62 / 67.20 ms │ +1.81x faster │
│ QQuery 13 │  105.37 / 111.78 ±4.20 / 118.07 ms │      61.98 / 63.48 ±1.16 / 64.82 ms │ +1.76x faster │
│ QQuery 14 │     44.86 / 45.82 ±0.69 / 46.79 ms │      46.48 / 47.54 ±1.38 / 49.97 ms │     no change │
│ QQuery 15 │     60.09 / 62.55 ±1.75 / 64.45 ms │      62.15 / 63.99 ±1.88 / 67.34 ms │     no change │
│ QQuery 16 │     41.66 / 43.44 ±1.00 / 44.29 ms │      41.97 / 44.42 ±1.39 / 45.76 ms │     no change │
│ QQuery 17 │  201.30 / 202.76 ±1.35 / 204.66 ms │   125.61 / 127.81 ±2.07 / 131.26 ms │ +1.59x faster │
│ QQuery 18 │  287.19 / 295.98 ±5.08 / 301.13 ms │   226.72 / 230.02 ±2.75 / 234.29 ms │ +1.29x faster │
│ QQuery 19 │     43.90 / 45.02 ±0.61 / 45.65 ms │      44.09 / 44.77 ±0.51 / 45.66 ms │     no change │
│ QQuery 20 │  127.40 / 139.73 ±6.29 / 145.14 ms │      65.72 / 68.09 ±1.50 / 69.87 ms │ +2.05x faster │
│ QQuery 21 │  181.94 / 191.00 ±8.25 / 205.46 ms │   130.00 / 133.81 ±3.16 / 139.60 ms │ +1.43x faster │
│ QQuery 22 │     37.94 / 38.71 ±0.62 / 39.46 ms │      34.81 / 37.13 ±1.58 / 39.13 ms │     no change │
└───────────┴────────────────────────────────────┴─────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 2566.31ms │
│ Total Time (worktree-dynamic-filter-restructure)   │ 1756.80ms │
│ Average Time (HEAD)                                │  116.65ms │
│ Average Time (worktree-dynamic-filter-restructure) │   79.85ms │
│ Queries Faster                                     │        11 │
│ Queries Slower                                     │         0 │
│ Queries with No Change                             │        11 │
│ Queries with Failure                               │         0 │
└────────────────────────────────────────────────────┴───────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 15.0s
Peak memory 6.4 GiB
Avg memory 5.5 GiB
CPU user 107.0s
CPU sys 3.7s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 10.0s
Peak memory 6.5 GiB
Avg memory 5.6 GiB
CPU user 58.1s
CPU sys 3.9s
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 worktree-dynamic-filter-restructure
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                              HEAD ┃ worktree-dynamic-filter-restructure ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │    52.05 / 53.47 ±1.27 / 55.54 ms │      52.46 / 53.78 ±1.30 / 55.95 ms │     no change │
│ QQuery 2  │    43.53 / 45.21 ±1.02 / 46.38 ms │      44.19 / 47.68 ±1.96 / 49.75 ms │  1.05x slower │
│ QQuery 3  │ 150.12 / 158.75 ±5.93 / 167.47 ms │   162.14 / 166.32 ±3.24 / 169.49 ms │     no change │
│ QQuery 4  │    37.45 / 38.42 ±0.65 / 39.41 ms │      37.47 / 39.01 ±1.57 / 41.51 ms │     no change │
│ QQuery 5  │ 250.10 / 260.92 ±8.26 / 270.85 ms │   482.17 / 490.53 ±6.89 / 498.80 ms │  1.88x slower │
│ QQuery 6  │    37.75 / 38.66 ±1.18 / 40.91 ms │      37.37 / 38.63 ±0.86 / 39.76 ms │     no change │
│ QQuery 7  │ 355.41 / 367.58 ±9.23 / 383.28 ms │   299.28 / 302.02 ±2.32 / 306.23 ms │ +1.22x faster │
│ QQuery 8  │ 275.92 / 292.06 ±8.97 / 301.66 ms │   397.50 / 400.91 ±2.51 / 404.69 ms │  1.37x slower │
│ QQuery 9  │ 307.64 / 313.54 ±3.44 / 317.16 ms │   503.08 / 513.16 ±8.07 / 526.26 ms │  1.64x slower │
│ QQuery 10 │    90.62 / 92.01 ±1.37 / 94.33 ms │      92.26 / 93.08 ±0.94 / 94.78 ms │     no change │
│ QQuery 11 │    38.05 / 39.69 ±1.26 / 41.91 ms │      41.18 / 42.07 ±0.71 / 43.00 ms │  1.06x slower │
│ QQuery 12 │ 136.20 / 148.87 ±7.23 / 156.97 ms │   156.43 / 160.31 ±2.80 / 164.44 ms │  1.08x slower │
│ QQuery 13 │ 118.32 / 125.06 ±8.53 / 140.29 ms │   138.64 / 142.22 ±1.91 / 143.88 ms │  1.14x slower │
│ QQuery 14 │    79.33 / 80.29 ±1.00 / 82.11 ms │   118.86 / 120.90 ±1.58 / 122.93 ms │  1.51x slower │
│ QQuery 15 │    70.79 / 71.76 ±0.78 / 72.92 ms │      68.56 / 72.13 ±2.14 / 74.64 ms │     no change │
│ QQuery 16 │    52.72 / 54.60 ±1.38 / 56.70 ms │      51.29 / 54.30 ±1.66 / 56.01 ms │     no change │
│ QQuery 17 │ 289.38 / 294.78 ±5.76 / 302.41 ms │   155.59 / 157.78 ±1.75 / 160.34 ms │ +1.87x faster │
│ QQuery 18 │ 228.93 / 243.10 ±8.59 / 255.82 ms │   171.78 / 175.22 ±2.07 / 178.18 ms │ +1.39x faster │
│ QQuery 19 │    44.33 / 45.59 ±0.80 / 46.55 ms │      44.85 / 45.29 ±0.41 / 45.81 ms │     no change │
│ QQuery 20 │ 151.21 / 157.23 ±5.36 / 166.85 ms │      87.82 / 89.43 ±1.11 / 90.61 ms │ +1.76x faster │
│ QQuery 21 │ 217.93 / 233.27 ±9.60 / 247.64 ms │   375.11 / 377.42 ±1.62 / 379.55 ms │  1.62x slower │
│ QQuery 22 │    52.66 / 54.19 ±1.64 / 57.34 ms │      51.94 / 53.94 ±1.32 / 56.07 ms │     no change │
└───────────┴───────────────────────────────────┴─────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 3209.06ms │
│ Total Time (worktree-dynamic-filter-restructure)   │ 3636.15ms │
│ Average Time (HEAD)                                │  145.87ms │
│ Average Time (worktree-dynamic-filter-restructure) │  165.28ms │
│ Queries Faster                                     │         4 │
│ Queries Slower                                     │         9 │
│ Queries with No Change                             │         9 │
│ Queries with Failure                               │         0 │
└────────────────────────────────────────────────────┴───────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 20.0s
Peak memory 6.2 GiB
Avg memory 5.4 GiB
CPU user 140.0s
CPU sys 3.4s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 20.0s
Peak memory 5.9 GiB
Avg memory 5.3 GiB
CPU user 149.8s
CPU sys 3.7s
Peak spill 0 B

File an issue against this benchmark runner

@adriangb adriangb force-pushed the worktree-dynamic-filter-restructure branch from 474734c to f717a99 Compare April 29, 2026 22:02
@adriangb
Copy link
Copy Markdown
Contributor Author

run benchmarks clickbench_partitioned tpch tpch10 tpcds hj

env:
  DATAFUSION_EXECUTION_PARQUET_PUSHDOWN_FILTERS: "false"
  DATAFUSION_EXECUTION_PARQUET_REORDER_FILTERS: "false"
baseline:
  ref: main
changed:
  ref: HEAD

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4347920499-1942-d72cl 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 HEAD (f717a99) to main diff using: tpcds
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

Benchmark for this request failed.

Last 20 lines of output:

Click to expand
  Downloaded dunce v1.0.5
  Downloaded anyhow v1.0.102
  Downloaded chacha20 v0.10.0
  Downloaded byteorder v1.5.0
  Downloaded aws-smithy-json v0.62.5
  Downloaded form_urlencoded v1.2.2
  Downloaded allocator-api2 v0.2.21
  Downloaded arrow-data v58.1.0
  Downloaded anstyle-query v1.1.5
  Downloaded anstyle v1.0.14
  Downloaded bzip2 v0.6.1
  Downloaded aws-smithy-query v0.60.15
  Downloaded atoi v2.0.0
  Downloaded aws-smithy-runtime-api-macros v1.0.0
  Downloaded ahash v0.8.12
  Downloaded anstream v1.0.0
    Blocking waiting for file lock on package cache
error: no bench target named `hj` in default-run packages

help: a target with a similar name exists: `chr`

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-c4347920499-1941-hx962 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 HEAD (f717a99) to main 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-c4347920499-1940-4x7q5 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 HEAD (f717a99) to main diff using: tpch
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and worktree-dynamic-filter-restructure
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                   HEAD ┃    worktree-dynamic-filter-restructure ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │           1.47 / 4.85 ±6.72 / 18.28 ms │           1.54 / 5.13 ±7.01 / 19.15 ms │  1.06x slower │
│ QQuery 1  │         16.96 / 18.02 ±0.68 / 18.91 ms │         16.76 / 18.93 ±1.11 / 19.83 ms │  1.05x slower │
│ QQuery 2  │         42.34 / 42.78 ±0.34 / 43.28 ms │         41.09 / 42.35 ±1.04 / 43.80 ms │     no change │
│ QQuery 3  │         34.30 / 35.46 ±0.95 / 37.05 ms │         34.71 / 35.24 ±0.40 / 35.93 ms │     no change │
│ QQuery 4  │      268.57 / 270.71 ±1.15 / 271.88 ms │      274.18 / 276.51 ±1.44 / 278.04 ms │     no change │
│ QQuery 5  │      321.04 / 323.13 ±1.79 / 326.07 ms │      323.92 / 331.05 ±4.20 / 336.29 ms │     no change │
│ QQuery 6  │         12.26 / 13.18 ±0.60 / 14.13 ms │         14.05 / 17.09 ±3.90 / 24.78 ms │  1.30x slower │
│ QQuery 7  │         25.35 / 27.02 ±2.34 / 31.65 ms │         25.30 / 26.04 ±0.44 / 26.50 ms │     no change │
│ QQuery 8  │      376.79 / 378.80 ±1.65 / 380.96 ms │      378.01 / 382.34 ±2.29 / 384.49 ms │     no change │
│ QQuery 9  │     358.92 / 374.49 ±12.75 / 397.06 ms │     374.19 / 393.09 ±15.27 / 419.74 ms │     no change │
│ QQuery 10 │        96.24 / 98.00 ±1.82 / 100.42 ms │         96.12 / 96.90 ±0.66 / 97.77 ms │     no change │
│ QQuery 11 │      109.27 / 109.90 ±0.74 / 110.87 ms │      109.34 / 110.93 ±1.65 / 113.89 ms │     no change │
│ QQuery 12 │      315.46 / 318.96 ±3.30 / 324.59 ms │      319.54 / 327.53 ±6.33 / 335.23 ms │     no change │
│ QQuery 13 │      564.68 / 575.67 ±7.25 / 587.47 ms │     588.65 / 611.89 ±26.45 / 658.94 ms │  1.06x slower │
│ QQuery 14 │      319.15 / 320.42 ±1.21 / 322.32 ms │     331.87 / 343.39 ±10.01 / 356.11 ms │  1.07x slower │
│ QQuery 15 │      329.25 / 334.56 ±5.81 / 344.54 ms │     328.88 / 366.27 ±51.64 / 466.46 ms │  1.09x slower │
│ QQuery 16 │      694.46 / 707.11 ±8.97 / 718.09 ms │     712.83 / 790.25 ±78.52 / 903.54 ms │  1.12x slower │
│ QQuery 17 │     692.05 / 707.24 ±13.54 / 726.59 ms │     722.29 / 731.34 ±12.28 / 755.26 ms │     no change │
│ QQuery 18 │  1419.04 / 1447.33 ±19.91 / 1478.85 ms │   1466.87 / 1475.15 ±7.77 / 1488.55 ms │     no change │
│ QQuery 19 │        35.57 / 47.77 ±15.79 / 75.28 ms │        35.37 / 51.97 ±15.70 / 77.51 ms │  1.09x slower │
│ QQuery 20 │      525.41 / 534.23 ±7.23 / 543.80 ms │     500.15 / 515.68 ±11.08 / 534.28 ms │     no change │
│ QQuery 21 │      597.84 / 606.78 ±9.32 / 619.38 ms │     594.43 / 631.03 ±35.55 / 697.58 ms │     no change │
│ QQuery 22 │  1050.82 / 1107.46 ±56.54 / 1196.88 ms │  1044.45 / 1083.74 ±24.23 / 1111.39 ms │     no change │
│ QQuery 23 │ 2126.49 / 2324.05 ±125.54 / 2512.03 ms │ 2191.48 / 2429.89 ±150.55 / 2603.46 ms │     no change │
│ QQuery 24 │       51.98 / 84.09 ±35.63 / 146.01 ms │         52.57 / 60.28 ±4.40 / 65.25 ms │ +1.39x faster │
│ QQuery 25 │      116.94 / 120.16 ±2.75 / 124.28 ms │      117.84 / 124.34 ±7.54 / 138.87 ms │     no change │
│ QQuery 26 │         51.68 / 56.05 ±3.39 / 60.53 ms │         48.66 / 54.67 ±4.45 / 62.32 ms │     no change │
│ QQuery 27 │     659.45 / 678.59 ±17.43 / 708.88 ms │      672.73 / 683.82 ±6.52 / 692.06 ms │     no change │
│ QQuery 28 │  2877.34 / 2904.64 ±27.88 / 2951.69 ms │  2961.97 / 3003.72 ±74.72 / 3152.91 ms │     no change │
│ QQuery 29 │        48.45 / 63.35 ±16.83 / 94.57 ms │         50.22 / 51.60 ±1.25 / 53.78 ms │ +1.23x faster │
│ QQuery 30 │      341.21 / 344.90 ±3.42 / 349.32 ms │      348.60 / 352.90 ±3.60 / 359.56 ms │     no change │
│ QQuery 31 │     404.38 / 415.38 ±10.36 / 433.78 ms │      417.65 / 433.42 ±7.96 / 439.35 ms │     no change │
│ QQuery 32 │   1592.42 / 1601.33 ±5.36 / 1607.61 ms │  1694.04 / 1718.48 ±23.93 / 1755.49 ms │  1.07x slower │
│ QQuery 33 │  1532.68 / 1588.53 ±32.48 / 1623.87 ms │  1571.61 / 1597.73 ±17.25 / 1620.14 ms │     no change │
│ QQuery 34 │  1558.23 / 1580.45 ±25.50 / 1622.95 ms │  1604.66 / 1643.55 ±43.21 / 1720.54 ms │     no change │
│ QQuery 35 │      309.73 / 322.95 ±8.56 / 334.01 ms │     310.42 / 327.25 ±16.36 / 357.31 ms │     no change │
│ QQuery 36 │         79.81 / 82.99 ±3.62 / 89.46 ms │         79.21 / 88.43 ±6.90 / 96.60 ms │  1.07x slower │
│ QQuery 37 │         51.02 / 57.02 ±4.53 / 64.97 ms │         47.45 / 53.38 ±6.13 / 64.34 ms │ +1.07x faster │
│ QQuery 38 │         52.85 / 57.32 ±5.70 / 67.51 ms │         52.46 / 58.59 ±4.34 / 64.88 ms │     no change │
│ QQuery 39 │      150.33 / 158.66 ±5.19 / 164.43 ms │      150.22 / 161.73 ±7.63 / 169.47 ms │     no change │
│ QQuery 40 │         28.20 / 29.56 ±1.31 / 31.96 ms │         26.76 / 28.63 ±2.64 / 33.86 ms │     no change │
│ QQuery 41 │         26.94 / 28.51 ±1.51 / 31.35 ms │         25.45 / 29.83 ±4.15 / 36.50 ms │     no change │
│ QQuery 42 │         23.97 / 24.77 ±0.89 / 26.40 ms │         22.49 / 26.59 ±6.46 / 39.40 ms │  1.07x slower │
└───────────┴────────────────────────────────────────┴────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 20927.17ms │
│ Total Time (worktree-dynamic-filter-restructure)   │ 21592.67ms │
│ Average Time (HEAD)                                │   486.68ms │
│ Average Time (worktree-dynamic-filter-restructure) │   502.16ms │
│ Queries Faster                                     │          3 │
│ Queries Slower                                     │         11 │
│ Queries with No Change                             │         29 │
│ Queries with Failure                               │          0 │
└────────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 110.0s
Peak memory 33.6 GiB
Avg memory 26.6 GiB
CPU user 1117.1s
CPU sys 70.1s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 110.0s
Peak memory 32.8 GiB
Avg memory 26.3 GiB
CPU user 1149.3s
CPU sys 75.5s
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 worktree-dynamic-filter-restructure
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃   worktree-dynamic-filter-restructure ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.46 / 4.92 ±6.80 / 18.52 ms │          1.46 / 4.98 ±6.88 / 18.74 ms │     no change │
│ QQuery 1  │        17.16 / 18.23 ±0.58 / 18.86 ms │        17.91 / 18.45 ±0.53 / 19.40 ms │     no change │
│ QQuery 2  │        41.08 / 41.72 ±0.54 / 42.45 ms │        41.84 / 42.73 ±0.68 / 43.93 ms │     no change │
│ QQuery 3  │        33.43 / 35.03 ±1.27 / 36.32 ms │        33.57 / 34.81 ±1.19 / 36.92 ms │     no change │
│ QQuery 4  │     266.98 / 269.12 ±1.76 / 272.14 ms │     269.28 / 271.39 ±1.57 / 273.68 ms │     no change │
│ QQuery 5  │     320.04 / 322.75 ±1.91 / 325.32 ms │     324.25 / 326.62 ±1.66 / 329.40 ms │     no change │
│ QQuery 6  │        17.66 / 20.10 ±2.79 / 25.34 ms │        18.10 / 19.02 ±0.81 / 20.46 ms │ +1.06x faster │
│ QQuery 7  │        27.48 / 27.62 ±0.10 / 27.76 ms │        28.22 / 30.08 ±3.27 / 36.61 ms │  1.09x slower │
│ QQuery 8  │     380.54 / 381.36 ±0.55 / 381.97 ms │     377.47 / 381.91 ±3.41 / 387.81 ms │     no change │
│ QQuery 9  │     367.47 / 380.12 ±8.94 / 392.81 ms │    368.14 / 385.94 ±15.28 / 406.02 ms │     no change │
│ QQuery 10 │     116.05 / 117.98 ±1.71 / 120.57 ms │     115.74 / 118.69 ±2.26 / 121.63 ms │     no change │
│ QQuery 11 │     128.07 / 129.72 ±1.84 / 132.90 ms │     130.39 / 131.63 ±1.11 / 132.98 ms │     no change │
│ QQuery 12 │    346.07 / 381.57 ±39.41 / 439.10 ms │     348.82 / 355.31 ±9.14 / 373.31 ms │ +1.07x faster │
│ QQuery 13 │     599.60 / 607.03 ±5.44 / 613.10 ms │     598.78 / 602.52 ±2.65 / 606.82 ms │     no change │
│ QQuery 14 │    350.55 / 365.53 ±10.90 / 382.61 ms │     359.03 / 362.00 ±1.92 / 363.86 ms │     no change │
│ QQuery 15 │     326.84 / 329.09 ±2.17 / 332.72 ms │     320.38 / 325.03 ±3.29 / 329.22 ms │     no change │
│ QQuery 16 │     698.47 / 704.56 ±3.38 / 707.72 ms │     704.18 / 712.40 ±8.62 / 722.99 ms │     no change │
│ QQuery 17 │    691.16 / 717.97 ±21.80 / 755.41 ms │     696.32 / 699.85 ±3.16 / 705.24 ms │     no change │
│ QQuery 18 │ 1422.14 / 1446.23 ±22.66 / 1479.92 ms │ 1431.57 / 1447.11 ±12.40 / 1464.21 ms │     no change │
│ QQuery 19 │        35.25 / 36.01 ±0.93 / 37.84 ms │       35.61 / 51.89 ±15.97 / 71.95 ms │  1.44x slower │
│ QQuery 20 │    501.20 / 520.45 ±10.67 / 533.65 ms │     497.03 / 501.28 ±3.18 / 504.50 ms │     no change │
│ QQuery 21 │    567.02 / 589.49 ±15.91 / 615.57 ms │    583.74 / 599.57 ±13.72 / 621.71 ms │     no change │
│ QQuery 22 │    927.62 / 959.43 ±25.00 / 994.04 ms │    935.22 / 959.27 ±18.30 / 984.56 ms │     no change │
│ QQuery 23 │   364.83 / 570.63 ±131.08 / 702.82 ms │    443.69 / 551.66 ±64.20 / 630.98 ms │     no change │
│ QQuery 24 │      81.74 / 99.25 ±15.24 / 125.43 ms │       87.40 / 97.67 ±8.27 / 108.29 ms │     no change │
│ QQuery 25 │     149.77 / 159.36 ±6.87 / 168.44 ms │     149.01 / 158.55 ±7.90 / 170.64 ms │     no change │
│ QQuery 26 │    109.55 / 132.73 ±14.21 / 147.86 ms │     133.68 / 141.73 ±6.16 / 149.09 ms │  1.07x slower │
│ QQuery 27 │    695.92 / 725.08 ±34.00 / 790.41 ms │    693.34 / 706.03 ±11.91 / 723.29 ms │     no change │
│ QQuery 28 │ 2907.85 / 2944.28 ±39.63 / 3009.98 ms │ 2911.39 / 2948.20 ±28.84 / 2995.55 ms │     no change │
│ QQuery 29 │       48.55 / 54.89 ±10.38 / 75.56 ms │       49.48 / 60.94 ±15.38 / 89.13 ms │  1.11x slower │
│ QQuery 30 │     343.70 / 350.09 ±4.06 / 355.39 ms │     348.63 / 354.00 ±4.54 / 360.84 ms │     no change │
│ QQuery 31 │     405.59 / 410.65 ±3.18 / 414.72 ms │     398.26 / 408.08 ±5.89 / 414.34 ms │     no change │
│ QQuery 32 │ 1615.67 / 1669.11 ±29.16 / 1699.77 ms │ 1577.99 / 1621.18 ±38.73 / 1692.39 ms │     no change │
│ QQuery 33 │ 1557.19 / 1576.05 ±12.02 / 1589.39 ms │ 1514.27 / 1568.68 ±50.92 / 1655.35 ms │     no change │
│ QQuery 34 │ 1542.25 / 1576.50 ±18.64 / 1596.51 ms │ 1541.75 / 1571.13 ±15.01 / 1583.27 ms │     no change │
│ QQuery 35 │    302.42 / 329.78 ±42.36 / 414.10 ms │    293.69 / 314.64 ±14.80 / 333.79 ms │     no change │
│ QQuery 36 │        80.21 / 85.03 ±3.24 / 89.07 ms │        76.98 / 80.59 ±2.59 / 84.31 ms │ +1.05x faster │
│ QQuery 37 │        48.77 / 55.32 ±7.27 / 68.42 ms │        48.19 / 56.93 ±6.30 / 65.37 ms │     no change │
│ QQuery 38 │        46.07 / 50.26 ±5.40 / 60.42 ms │        46.60 / 50.48 ±4.45 / 59.15 ms │     no change │
│ QQuery 39 │     144.79 / 150.37 ±4.54 / 154.88 ms │     147.73 / 148.83 ±0.96 / 150.38 ms │     no change │
│ QQuery 40 │        29.45 / 32.12 ±1.95 / 35.39 ms │        29.40 / 31.72 ±2.45 / 35.37 ms │     no change │
│ QQuery 41 │        27.80 / 31.04 ±3.12 / 35.71 ms │        26.90 / 27.29 ±0.33 / 27.69 ms │ +1.14x faster │
│ QQuery 42 │        23.73 / 27.81 ±4.61 / 35.72 ms │        23.83 / 25.59 ±2.22 / 29.96 ms │ +1.09x faster │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 19436.39ms │
│ Total Time (worktree-dynamic-filter-restructure)   │ 19306.40ms │
│ Average Time (HEAD)                                │   452.01ms │
│ Average Time (worktree-dynamic-filter-restructure) │   448.99ms │
│ Queries Faster                                     │          5 │
│ Queries Slower                                     │          4 │
│ Queries with No Change                             │         34 │
│ Queries with Failure                               │          0 │
└────────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 100.0s
Peak memory 32.3 GiB
Avg memory 26.3 GiB
CPU user 1041.2s
CPU sys 64.0s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 100.0s
Peak memory 31.9 GiB
Avg memory 26.0 GiB
CPU user 1033.4s
CPU sys 65.5s
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 worktree-dynamic-filter-restructure
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                      HEAD ┃       worktree-dynamic-filter-restructure ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │            24.31 / 24.91 ±0.73 / 26.33 ms │            26.93 / 27.20 ±0.32 / 27.81 ms │  1.09x slower │
│ QQuery 2  │         186.34 / 193.78 ±6.07 / 203.54 ms │         182.96 / 189.32 ±5.39 / 197.01 ms │     no change │
│ QQuery 3  │         126.53 / 128.86 ±1.28 / 130.19 ms │         125.23 / 127.18 ±1.92 / 130.50 ms │     no change │
│ QQuery 4  │     1439.55 / 1465.41 ±26.50 / 1499.88 ms │     1394.82 / 1436.34 ±42.07 / 1517.41 ms │     no change │
│ QQuery 5  │        254.81 / 271.42 ±10.22 / 282.30 ms │         241.09 / 250.64 ±7.99 / 261.17 ms │ +1.08x faster │
│ QQuery 6  │         175.15 / 185.03 ±8.77 / 197.32 ms │        168.09 / 190.00 ±19.93 / 215.35 ms │     no change │
│ QQuery 7  │        547.51 / 564.99 ±12.10 / 577.17 ms │         510.54 / 514.86 ±3.29 / 520.71 ms │ +1.10x faster │
│ QQuery 8  │         145.86 / 147.49 ±0.84 / 148.21 ms │         141.80 / 144.47 ±2.42 / 148.87 ms │     no change │
│ QQuery 9  │         169.07 / 175.35 ±5.77 / 182.55 ms │         170.21 / 177.58 ±4.88 / 184.10 ms │     no change │
│ QQuery 10 │         120.96 / 127.82 ±3.63 / 130.99 ms │         121.95 / 126.71 ±3.69 / 130.92 ms │     no change │
│ QQuery 11 │       998.69 / 1009.89 ±8.61 / 1019.80 ms │        944.91 / 965.19 ±12.00 / 980.75 ms │     no change │
│ QQuery 12 │            63.62 / 64.39 ±0.60 / 65.37 ms │            62.72 / 64.37 ±1.46 / 66.42 ms │     no change │
│ QQuery 13 │         399.96 / 409.78 ±9.97 / 427.13 ms │         398.79 / 404.94 ±4.11 / 410.58 ms │     no change │
│ QQuery 14 │     1246.70 / 1265.78 ±13.33 / 1285.34 ms │     1237.65 / 1252.11 ±10.87 / 1269.15 ms │     no change │
│ QQuery 15 │           89.37 / 95.37 ±4.65 / 101.25 ms │            51.17 / 52.27 ±1.08 / 54.21 ms │ +1.82x faster │
│ QQuery 16 │            22.90 / 23.54 ±0.57 / 24.30 ms │            24.97 / 25.60 ±0.63 / 26.71 ms │  1.09x slower │
│ QQuery 17 │         517.83 / 528.73 ±8.11 / 540.81 ms │         401.39 / 413.24 ±8.52 / 423.14 ms │ +1.28x faster │
│ QQuery 18 │         245.33 / 248.61 ±3.94 / 256.37 ms │         185.55 / 192.20 ±9.64 / 211.21 ms │ +1.29x faster │
│ QQuery 19 │         169.78 / 175.54 ±6.44 / 186.63 ms │         170.71 / 175.04 ±3.47 / 179.81 ms │     no change │
│ QQuery 20 │            33.48 / 34.30 ±0.88 / 35.61 ms │            34.04 / 34.79 ±0.88 / 36.29 ms │     no change │
│ QQuery 21 │            34.88 / 35.26 ±0.35 / 35.86 ms │            37.38 / 39.15 ±1.35 / 41.56 ms │  1.11x slower │
│ QQuery 22 │        491.17 / 509.84 ±13.04 / 525.64 ms │         494.79 / 500.73 ±3.83 / 504.80 ms │     no change │
│ QQuery 23 │     1938.85 / 1993.92 ±36.71 / 2024.51 ms │      1774.40 / 1785.15 ±7.75 / 1796.09 ms │ +1.12x faster │
│ QQuery 24 │     1484.18 / 1500.06 ±17.11 / 1531.07 ms │     1264.65 / 1281.00 ±11.94 / 1293.96 ms │ +1.17x faster │
│ QQuery 25 │        661.16 / 685.06 ±12.71 / 698.51 ms │         552.91 / 561.08 ±6.08 / 571.82 ms │ +1.22x faster │
│ QQuery 26 │         167.48 / 178.98 ±9.15 / 195.37 ms │         129.59 / 130.71 ±1.01 / 132.10 ms │ +1.37x faster │
│ QQuery 27 │            24.81 / 25.75 ±0.63 / 26.69 ms │            27.01 / 30.30 ±4.36 / 38.92 ms │  1.18x slower │
│ QQuery 28 │         174.57 / 178.23 ±4.18 / 186.39 ms │         169.73 / 173.34 ±3.11 / 178.75 ms │     no change │
│ QQuery 29 │         613.11 / 623.05 ±5.45 / 628.68 ms │         486.39 / 501.07 ±8.52 / 512.40 ms │ +1.24x faster │
│ QQuery 30 │            80.87 / 83.14 ±1.28 / 84.24 ms │            82.69 / 83.84 ±0.61 / 84.48 ms │     no change │
│ QQuery 31 │         221.20 / 226.31 ±4.67 / 233.70 ms │         209.59 / 223.13 ±9.45 / 235.04 ms │     no change │
│ QQuery 32 │            35.10 / 37.97 ±1.48 / 39.15 ms │            35.99 / 42.81 ±8.65 / 59.59 ms │  1.13x slower │
│ QQuery 33 │         172.08 / 174.95 ±4.43 / 183.78 ms │         169.16 / 170.82 ±1.57 / 173.29 ms │     no change │
│ QQuery 34 │            23.60 / 24.25 ±0.47 / 24.70 ms │            23.32 / 26.63 ±3.10 / 32.34 ms │  1.10x slower │
│ QQuery 35 │         127.12 / 133.25 ±4.15 / 139.70 ms │         127.21 / 130.58 ±3.59 / 137.40 ms │     no change │
│ QQuery 36 │            30.14 / 32.20 ±1.78 / 35.43 ms │            29.02 / 30.96 ±1.38 / 33.20 ms │     no change │
│ QQuery 37 │            17.45 / 18.11 ±0.69 / 19.35 ms │            17.56 / 18.03 ±0.50 / 18.96 ms │     no change │
│ QQuery 38 │         116.90 / 123.54 ±7.38 / 135.53 ms │         118.46 / 125.18 ±5.26 / 132.24 ms │     no change │
│ QQuery 39 │        234.02 / 244.73 ±12.40 / 267.68 ms │         228.74 / 246.71 ±9.18 / 253.78 ms │     no change │
│ QQuery 40 │         180.26 / 189.31 ±8.76 / 205.10 ms │        178.13 / 189.92 ±12.44 / 212.57 ms │     no change │
│ QQuery 41 │            34.56 / 35.31 ±0.44 / 35.89 ms │            34.12 / 34.78 ±0.41 / 35.29 ms │     no change │
│ QQuery 42 │         118.97 / 121.36 ±1.97 / 124.64 ms │         119.47 / 125.09 ±8.92 / 142.76 ms │     no change │
│ QQuery 43 │            21.63 / 22.31 ±0.38 / 22.69 ms │            19.66 / 19.99 ±0.19 / 20.20 ms │ +1.12x faster │
│ QQuery 44 │            52.96 / 55.22 ±2.20 / 58.90 ms │            51.45 / 54.01 ±2.10 / 57.13 ms │     no change │
│ QQuery 45 │         140.70 / 153.27 ±6.97 / 159.81 ms │         102.06 / 105.96 ±3.56 / 111.02 ms │ +1.45x faster │
│ QQuery 46 │            24.25 / 25.16 ±1.16 / 27.39 ms │            23.97 / 24.64 ±0.62 / 25.41 ms │     no change │
│ QQuery 47 │        840.85 / 871.13 ±29.39 / 920.10 ms │        795.55 / 811.51 ±13.84 / 830.60 ms │ +1.07x faster │
│ QQuery 48 │         286.81 / 296.90 ±7.52 / 306.53 ms │        285.22 / 296.64 ±10.63 / 314.15 ms │     no change │
│ QQuery 49 │         356.79 / 362.05 ±4.23 / 365.72 ms │         353.43 / 358.44 ±2.83 / 361.31 ms │     no change │
│ QQuery 50 │         409.77 / 416.81 ±5.38 / 423.24 ms │        330.83 / 345.76 ±11.36 / 361.97 ms │ +1.21x faster │
│ QQuery 51 │         268.26 / 275.30 ±5.54 / 281.52 ms │         267.84 / 274.38 ±5.05 / 282.31 ms │     no change │
│ QQuery 52 │         119.96 / 122.97 ±2.85 / 127.96 ms │         118.60 / 120.24 ±2.92 / 126.08 ms │     no change │
│ QQuery 53 │         123.48 / 126.54 ±2.62 / 129.79 ms │         122.01 / 125.15 ±2.55 / 127.75 ms │     no change │
│ QQuery 54 │         208.94 / 213.91 ±4.08 / 220.04 ms │         205.67 / 208.17 ±2.41 / 212.57 ms │     no change │
│ QQuery 55 │         118.28 / 121.11 ±2.84 / 125.80 ms │         116.81 / 119.80 ±2.41 / 122.72 ms │     no change │
│ QQuery 56 │         166.84 / 170.99 ±3.00 / 175.79 ms │         166.78 / 170.15 ±3.09 / 174.80 ms │     no change │
│ QQuery 57 │         261.82 / 270.39 ±5.12 / 277.48 ms │         256.61 / 263.77 ±5.37 / 271.13 ms │     no change │
│ QQuery 58 │         611.63 / 625.77 ±9.85 / 638.50 ms │         420.56 / 426.80 ±6.69 / 439.65 ms │ +1.47x faster │
│ QQuery 59 │         230.71 / 233.61 ±1.73 / 235.63 ms │         220.98 / 229.24 ±8.87 / 246.24 ms │     no change │
│ QQuery 60 │         173.37 / 181.35 ±7.25 / 194.54 ms │         174.05 / 177.84 ±3.53 / 184.10 ms │     no change │
│ QQuery 61 │            25.05 / 25.69 ±0.49 / 26.34 ms │            25.22 / 26.73 ±0.91 / 27.93 ms │     no change │
│ QQuery 62 │         905.75 / 914.73 ±8.05 / 929.66 ms │        922.22 / 938.83 ±10.11 / 952.18 ms │     no change │
│ QQuery 63 │         128.53 / 133.20 ±5.55 / 142.80 ms │         122.01 / 126.80 ±5.05 / 133.70 ms │     no change │
│ QQuery 64 │     1164.43 / 1209.77 ±37.08 / 1259.08 ms │      1008.14 / 1012.53 ±4.39 / 1020.51 ms │ +1.19x faster │
│ QQuery 65 │        280.83 / 303.74 ±17.44 / 331.96 ms │        280.25 / 296.51 ±10.84 / 313.83 ms │     no change │
│ QQuery 66 │        247.43 / 278.82 ±20.39 / 301.74 ms │        250.42 / 276.12 ±17.58 / 297.15 ms │     no change │
│ QQuery 67 │         321.37 / 326.34 ±7.99 / 342.26 ms │        326.08 / 341.02 ±13.69 / 364.34 ms │     no change │
│ QQuery 68 │            24.61 / 25.62 ±0.90 / 26.74 ms │            25.04 / 30.39 ±7.31 / 44.86 ms │  1.19x slower │
│ QQuery 69 │         117.80 / 123.20 ±4.33 / 130.97 ms │         119.37 / 123.84 ±2.26 / 125.53 ms │     no change │
│ QQuery 70 │        362.78 / 375.85 ±10.41 / 393.57 ms │        358.39 / 374.01 ±12.98 / 395.00 ms │     no change │
│ QQuery 71 │         157.50 / 161.63 ±3.33 / 166.36 ms │         155.49 / 162.12 ±5.75 / 170.75 ms │     no change │
│ QQuery 72 │     2866.36 / 2882.86 ±13.54 / 2901.98 ms │        878.05 / 895.11 ±14.65 / 917.97 ms │ +3.22x faster │
│ QQuery 73 │            23.29 / 23.78 ±0.48 / 24.39 ms │           23.34 / 30.77 ±11.35 / 53.37 ms │  1.29x slower │
│ QQuery 74 │        647.65 / 666.92 ±10.94 / 681.40 ms │        601.00 / 641.16 ±30.30 / 677.12 ms │     no change │
│ QQuery 75 │         389.62 / 396.12 ±4.89 / 403.33 ms │         383.68 / 393.76 ±5.99 / 399.76 ms │     no change │
│ QQuery 76 │        253.98 / 277.99 ±16.45 / 304.86 ms │         209.29 / 211.97 ±1.92 / 214.44 ms │ +1.31x faster │
│ QQuery 77 │         248.42 / 260.06 ±7.89 / 270.50 ms │         240.73 / 249.00 ±9.95 / 268.52 ms │     no change │
│ QQuery 78 │        528.01 / 550.48 ±12.83 / 564.13 ms │        537.25 / 566.36 ±17.51 / 591.04 ms │     no change │
│ QQuery 79 │         250.32 / 264.37 ±8.23 / 272.65 ms │         245.84 / 256.21 ±9.95 / 271.62 ms │     no change │
│ QQuery 80 │         522.45 / 533.00 ±8.13 / 545.07 ms │         517.87 / 528.16 ±8.19 / 541.77 ms │     no change │
│ QQuery 81 │            63.64 / 65.95 ±1.63 / 67.89 ms │            63.91 / 69.35 ±6.08 / 79.88 ms │  1.05x slower │
│ QQuery 82 │            53.95 / 61.14 ±7.64 / 72.75 ms │            57.92 / 58.49 ±0.41 / 58.91 ms │     no change │
│ QQuery 83 │         171.05 / 176.23 ±3.28 / 181.00 ms │         102.73 / 107.43 ±5.50 / 118.00 ms │ +1.64x faster │
│ QQuery 84 │            58.60 / 59.96 ±1.06 / 61.31 ms │            58.91 / 60.32 ±0.92 / 61.53 ms │     no change │
│ QQuery 85 │         219.62 / 231.24 ±6.21 / 237.45 ms │         165.51 / 171.07 ±3.25 / 174.39 ms │ +1.35x faster │
│ QQuery 86 │            57.27 / 58.55 ±0.86 / 59.63 ms │            54.23 / 57.53 ±1.94 / 59.93 ms │     no change │
│ QQuery 87 │               3.68 / 3.78 ±0.16 / 4.10 ms │               3.82 / 3.94 ±0.12 / 4.17 ms │     no change │
│ QQuery 88 │         147.82 / 151.39 ±3.51 / 158.07 ms │         143.63 / 148.88 ±5.69 / 156.01 ms │     no change │
│ QQuery 89 │         143.50 / 149.67 ±8.79 / 167.13 ms │         139.58 / 143.88 ±4.35 / 151.44 ms │     no change │
│ QQuery 90 │            37.79 / 40.16 ±1.62 / 42.30 ms │            35.97 / 36.74 ±0.90 / 38.33 ms │ +1.09x faster │
│ QQuery 91 │            76.13 / 78.09 ±2.03 / 81.80 ms │            74.44 / 76.35 ±1.36 / 78.54 ms │     no change │
│ QQuery 92 │            77.71 / 78.95 ±1.47 / 81.18 ms │            73.22 / 78.38 ±3.33 / 82.17 ms │     no change │
│ QQuery 93 │         323.58 / 330.71 ±5.45 / 336.29 ms │         311.53 / 316.99 ±5.17 / 325.62 ms │     no change │
│ QQuery 94 │            89.13 / 90.44 ±1.06 / 91.74 ms │            85.48 / 91.14 ±3.43 / 94.23 ms │     no change │
│ QQuery 95 │         334.96 / 341.71 ±6.07 / 352.33 ms │         245.32 / 252.61 ±6.79 / 262.38 ms │ +1.35x faster │
│ QQuery 96 │            80.38 / 82.41 ±1.18 / 83.41 ms │            77.64 / 80.07 ±1.84 / 81.99 ms │     no change │
│ QQuery 97 │         173.80 / 178.99 ±4.68 / 187.71 ms │         166.26 / 172.01 ±3.95 / 177.43 ms │     no change │
│ QQuery 98 │         183.75 / 187.97 ±4.88 / 195.98 ms │         168.74 / 174.19 ±4.94 / 180.35 ms │ +1.08x faster │
│ QQuery 99 │ 10957.84 / 11242.15 ±203.51 / 11483.42 ms │ 10887.94 / 11070.49 ±117.96 / 11226.72 ms │     no change │
└───────────┴───────────────────────────────────────────┴───────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 42204.00ms │
│ Total Time (worktree-dynamic-filter-restructure)   │ 37998.77ms │
│ Average Time (HEAD)                                │   426.30ms │
│ Average Time (worktree-dynamic-filter-restructure) │   383.83ms │
│ Queries Faster                                     │         23 │
│ Queries Slower                                     │          9 │
│ Queries with No Change                             │         67 │
│ Queries with Failure                               │          0 │
└────────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 215.0s
Peak memory 6.4 GiB
Avg memory 5.4 GiB
CPU user 685.2s
CPU sys 26.0s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 195.0s
Peak memory 6.4 GiB
Avg memory 5.3 GiB
CPU user 445.2s
CPU sys 26.5s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

Benchmark for this request failed.

Last 20 lines of output:

Click to expand
 Downloading crates ...
  Downloaded prost v0.14.3
  Downloaded prost-derive v0.14.3
  Downloaded anyhow v1.0.102
   Compiling anyhow v1.0.102
   Compiling either v1.15.0
   Compiling datafusion-benchmarks v53.1.0 (/workspace/datafusion-base/benchmarks)
   Compiling itertools v0.14.0
   Compiling prost-derive v0.14.3
   Compiling prost v0.14.3
   Compiling datafusion-proto-common v53.1.0 (/workspace/datafusion-base/datafusion/proto-common)
   Compiling datafusion-proto v53.1.0 (/workspace/datafusion-base/datafusion/proto)
    Finished `bench` profile [optimized + debuginfo] target(s) in 8m 43s
     Running benches/sql.rs (/workspace/datafusion-base/target/release/deps/sql-2c9f51cbfcaf27f8)
Gnuplot not found, using plotters backend

thread 'main' (21027) panicked at benchmarks/benches/sql.rs:131:46:
assertion failed: Execution("Error in result on row 1, column 1 running query \"\nSELECT COUNT(*) > 0 from lineitem;\": expected value \"true\" but got value \"false\" in row: [\"false\"]")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: bench failed, to rerun pass `--bench sql`

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

Benchmark for this request failed.

Last 20 lines of output:

Click to expand
 Downloading crates ...
  Downloaded anyhow v1.0.102
  Downloaded prost-derive v0.14.3
  Downloaded prost v0.14.3
   Compiling anyhow v1.0.102
   Compiling either v1.15.0
   Compiling datafusion-benchmarks v53.1.0 (/workspace/datafusion-base/benchmarks)
   Compiling itertools v0.14.0
   Compiling prost-derive v0.14.3
   Compiling prost v0.14.3
   Compiling datafusion-proto-common v53.1.0 (/workspace/datafusion-base/datafusion/proto-common)
   Compiling datafusion-proto v53.1.0 (/workspace/datafusion-base/datafusion/proto)
    Finished `bench` profile [optimized + debuginfo] target(s) in 8m 57s
     Running benches/sql.rs (/workspace/datafusion-base/target/release/deps/sql-2c9f51cbfcaf27f8)
Gnuplot not found, using plotters backend

thread 'main' (21020) panicked at benchmarks/benches/sql.rs:131:46:
assertion failed: Execution("Error in result on row 1, column 1 running query \"\nSELECT COUNT(*) > 0 from lineitem;\": expected value \"true\" but got value \"false\" in row: [\"false\"]")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: bench failed, to rerun pass `--bench sql`

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 worktree-dynamic-filter-restructure
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                      HEAD ┃       worktree-dynamic-filter-restructure ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │            24.37 / 24.75 ±0.66 / 26.07 ms │            23.96 / 24.69 ±0.71 / 26.04 ms │     no change │
│ QQuery 2  │         206.29 / 208.06 ±2.30 / 212.60 ms │         203.51 / 204.09 ±0.50 / 204.96 ms │     no change │
│ QQuery 3  │         123.31 / 124.78 ±0.99 / 126.00 ms │         124.95 / 125.44 ±0.44 / 126.06 ms │     no change │
│ QQuery 4  │      1136.06 / 1144.67 ±4.70 / 1148.27 ms │      1136.91 / 1146.00 ±7.25 / 1154.03 ms │     no change │
│ QQuery 5  │        294.21 / 315.17 ±12.93 / 328.57 ms │         285.84 / 292.61 ±3.78 / 296.60 ms │ +1.08x faster │
│ QQuery 6  │         121.99 / 124.89 ±2.21 / 128.27 ms │         125.62 / 130.57 ±4.80 / 138.90 ms │     no change │
│ QQuery 7  │        441.27 / 453.68 ±10.80 / 469.36 ms │         619.35 / 623.28 ±4.85 / 632.62 ms │  1.37x slower │
│ QQuery 8  │         177.11 / 181.95 ±5.15 / 191.89 ms │         179.71 / 182.67 ±3.07 / 188.46 ms │     no change │
│ QQuery 9  │         289.74 / 298.57 ±5.61 / 304.82 ms │         289.57 / 298.06 ±5.38 / 305.76 ms │     no change │
│ QQuery 10 │        174.78 / 185.88 ±11.06 / 206.20 ms │         177.70 / 190.51 ±8.48 / 204.16 ms │     no change │
│ QQuery 11 │         724.99 / 738.55 ±8.84 / 752.13 ms │         734.19 / 742.60 ±4.64 / 748.41 ms │     no change │
│ QQuery 12 │            58.76 / 61.37 ±2.51 / 66.06 ms │            60.02 / 61.07 ±0.71 / 61.94 ms │     no change │
│ QQuery 13 │        542.67 / 554.99 ±10.36 / 573.70 ms │         552.51 / 566.03 ±8.94 / 577.87 ms │     no change │
│ QQuery 14 │     1214.14 / 1245.82 ±24.48 / 1288.46 ms │     1217.20 / 1256.01 ±30.21 / 1292.24 ms │     no change │
│ QQuery 15 │          98.04 / 104.30 ±5.11 / 109.94 ms │            72.25 / 77.62 ±6.80 / 91.05 ms │ +1.34x faster │
│ QQuery 16 │            23.08 / 23.47 ±0.27 / 23.73 ms │            22.87 / 23.91 ±0.76 / 25.23 ms │     no change │
│ QQuery 17 │        295.72 / 310.91 ±10.05 / 327.08 ms │         244.05 / 253.44 ±6.68 / 261.15 ms │ +1.23x faster │
│ QQuery 18 │         819.77 / 826.83 ±5.17 / 835.24 ms │         793.38 / 798.50 ±4.42 / 805.03 ms │     no change │
│ QQuery 19 │         149.78 / 155.34 ±3.19 / 158.54 ms │         154.11 / 156.32 ±2.17 / 159.88 ms │     no change │
│ QQuery 20 │            39.60 / 41.54 ±1.89 / 45.13 ms │            40.68 / 41.53 ±0.72 / 42.57 ms │     no change │
│ QQuery 21 │            43.99 / 45.20 ±1.44 / 48.00 ms │            42.19 / 42.46 ±0.28 / 42.95 ms │ +1.06x faster │
│ QQuery 22 │         519.90 / 529.44 ±5.29 / 535.06 ms │         514.12 / 524.52 ±7.75 / 535.21 ms │     no change │
│ QQuery 23 │     2564.38 / 2592.90 ±24.81 / 2630.63 ms │     4532.57 / 4559.10 ±20.97 / 4590.18 ms │  1.76x slower │
│ QQuery 24 │        589.06 / 618.06 ±20.06 / 644.94 ms │        362.80 / 374.85 ±10.26 / 391.15 ms │ +1.65x faster │
│ QQuery 25 │         564.64 / 574.50 ±6.78 / 582.98 ms │         634.55 / 645.13 ±8.88 / 659.74 ms │  1.12x slower │
│ QQuery 26 │        237.80 / 255.80 ±11.32 / 267.92 ms │         308.27 / 312.99 ±4.29 / 320.44 ms │  1.22x slower │
│ QQuery 27 │            25.20 / 25.80 ±0.51 / 26.44 ms │            25.05 / 25.47 ±0.23 / 25.65 ms │     no change │
│ QQuery 28 │         236.83 / 240.46 ±3.43 / 245.72 ms │        232.95 / 242.66 ±10.02 / 261.00 ms │     no change │
│ QQuery 29 │        379.63 / 399.01 ±15.46 / 420.74 ms │         339.60 / 350.15 ±9.99 / 367.14 ms │ +1.14x faster │
│ QQuery 30 │            85.96 / 87.07 ±1.10 / 88.88 ms │            85.84 / 86.72 ±0.71 / 87.63 ms │     no change │
│ QQuery 31 │         216.27 / 226.62 ±7.13 / 235.32 ms │         212.89 / 222.12 ±7.32 / 232.85 ms │     no change │
│ QQuery 32 │            33.81 / 36.60 ±1.70 / 38.56 ms │           33.52 / 41.64 ±11.82 / 64.99 ms │  1.14x slower │
│ QQuery 33 │         151.72 / 156.27 ±2.69 / 159.78 ms │         159.48 / 161.57 ±2.06 / 164.34 ms │     no change │
│ QQuery 34 │            22.99 / 23.47 ±0.45 / 24.27 ms │            22.55 / 25.51 ±3.33 / 32.00 ms │  1.09x slower │
│ QQuery 35 │         163.45 / 165.82 ±2.22 / 169.51 ms │         166.46 / 170.59 ±3.91 / 177.63 ms │     no change │
│ QQuery 36 │            30.50 / 31.55 ±0.68 / 32.46 ms │            29.87 / 35.29 ±8.86 / 52.98 ms │  1.12x slower │
│ QQuery 37 │            15.55 / 18.37 ±4.55 / 27.43 ms │            15.13 / 15.78 ±0.43 / 16.25 ms │ +1.16x faster │
│ QQuery 38 │         145.37 / 149.88 ±3.75 / 154.19 ms │         143.83 / 148.43 ±4.90 / 157.90 ms │     no change │
│ QQuery 39 │         244.70 / 246.82 ±1.32 / 248.34 ms │        243.09 / 250.34 ±10.18 / 270.32 ms │     no change │
│ QQuery 40 │         206.57 / 215.95 ±6.22 / 224.87 ms │         197.84 / 207.43 ±8.10 / 217.81 ms │     no change │
│ QQuery 41 │            35.18 / 35.87 ±0.56 / 36.74 ms │            34.68 / 35.03 ±0.32 / 35.53 ms │     no change │
│ QQuery 42 │         118.31 / 122.18 ±4.71 / 129.49 ms │         120.27 / 122.64 ±1.32 / 124.01 ms │     no change │
│ QQuery 43 │            19.68 / 19.98 ±0.25 / 20.30 ms │            19.25 / 19.58 ±0.29 / 20.07 ms │     no change │
│ QQuery 44 │            54.15 / 59.76 ±6.35 / 71.95 ms │            54.48 / 59.46 ±7.76 / 74.93 ms │     no change │
│ QQuery 45 │         119.76 / 124.56 ±4.66 / 133.42 ms │            81.18 / 84.12 ±1.78 / 85.86 ms │ +1.48x faster │
│ QQuery 46 │            24.85 / 25.98 ±0.86 / 26.96 ms │            23.85 / 24.59 ±0.91 / 26.23 ms │ +1.06x faster │
│ QQuery 47 │         876.71 / 882.60 ±3.83 / 886.45 ms │         875.75 / 886.62 ±6.03 / 893.33 ms │     no change │
│ QQuery 48 │        458.56 / 474.73 ±18.90 / 510.70 ms │         464.62 / 478.25 ±7.87 / 488.22 ms │     no change │
│ QQuery 49 │         348.63 / 363.03 ±8.08 / 369.83 ms │         351.63 / 358.30 ±6.43 / 369.73 ms │     no change │
│ QQuery 50 │      1323.65 / 1341.34 ±8.89 / 1347.36 ms │     1653.53 / 1667.33 ±10.15 / 1682.98 ms │  1.24x slower │
│ QQuery 51 │         291.39 / 303.12 ±6.32 / 310.20 ms │         301.55 / 304.46 ±2.89 / 309.65 ms │     no change │
│ QQuery 52 │         122.11 / 126.52 ±2.67 / 129.70 ms │         124.62 / 128.32 ±3.26 / 134.22 ms │     no change │
│ QQuery 53 │         155.57 / 163.33 ±7.05 / 175.17 ms │         157.26 / 161.73 ±4.72 / 170.68 ms │     no change │
│ QQuery 54 │         180.60 / 187.38 ±4.83 / 194.96 ms │         179.07 / 183.09 ±3.58 / 189.80 ms │     no change │
│ QQuery 55 │         119.73 / 125.36 ±5.86 / 135.18 ms │         119.86 / 123.37 ±3.18 / 128.44 ms │     no change │
│ QQuery 56 │         155.70 / 159.96 ±2.64 / 163.69 ms │         158.57 / 161.42 ±2.01 / 163.71 ms │     no change │
│ QQuery 57 │         275.36 / 282.85 ±5.45 / 290.44 ms │         276.09 / 282.33 ±3.24 / 285.35 ms │     no change │
│ QQuery 58 │         265.15 / 268.35 ±1.94 / 270.22 ms │         217.11 / 222.69 ±3.95 / 228.13 ms │ +1.20x faster │
│ QQuery 59 │         285.92 / 290.86 ±3.41 / 295.49 ms │         287.95 / 294.31 ±4.47 / 299.63 ms │     no change │
│ QQuery 60 │         158.76 / 163.74 ±3.50 / 168.24 ms │         160.58 / 165.43 ±4.18 / 171.37 ms │     no change │
│ QQuery 61 │            23.37 / 23.63 ±0.25 / 24.05 ms │            24.12 / 24.77 ±0.48 / 25.31 ms │     no change │
│ QQuery 62 │         914.20 / 923.63 ±7.90 / 938.13 ms │         919.75 / 932.25 ±8.77 / 946.07 ms │     no change │
│ QQuery 63 │         155.69 / 166.92 ±8.28 / 181.03 ms │         156.33 / 163.46 ±6.91 / 174.62 ms │     no change │
│ QQuery 64 │     1469.61 / 1494.53 ±16.25 / 1517.09 ms │     1743.60 / 1760.01 ±14.79 / 1782.86 ms │  1.18x slower │
│ QQuery 65 │        379.49 / 387.66 ±10.17 / 407.54 ms │        380.45 / 397.45 ±16.70 / 419.44 ms │     no change │
│ QQuery 66 │         209.37 / 218.97 ±9.43 / 234.72 ms │         211.51 / 218.76 ±7.41 / 229.73 ms │     no change │
│ QQuery 67 │        524.78 / 547.38 ±16.52 / 568.30 ms │        529.89 / 548.56 ±12.05 / 564.04 ms │     no change │
│ QQuery 68 │            25.00 / 25.31 ±0.36 / 26.00 ms │            24.28 / 27.66 ±4.88 / 37.29 ms │  1.09x slower │
│ QQuery 69 │         173.69 / 182.32 ±5.40 / 188.37 ms │        172.78 / 184.78 ±10.10 / 199.96 ms │     no change │
│ QQuery 70 │        449.53 / 459.95 ±12.99 / 485.41 ms │         454.35 / 460.46 ±4.18 / 466.30 ms │     no change │
│ QQuery 71 │         145.97 / 149.40 ±3.13 / 155.03 ms │         150.98 / 158.60 ±9.97 / 177.89 ms │  1.06x slower │
│ QQuery 72 │     3999.94 / 4060.72 ±44.12 / 4128.30 ms │     4412.21 / 4425.75 ±13.12 / 4445.80 ms │  1.09x slower │
│ QQuery 73 │            23.10 / 23.59 ±0.39 / 24.17 ms │            23.29 / 27.09 ±6.34 / 39.75 ms │  1.15x slower │
│ QQuery 74 │        531.71 / 543.21 ±13.34 / 568.82 ms │         542.77 / 547.06 ±4.47 / 554.98 ms │     no change │
│ QQuery 75 │        377.54 / 393.12 ±10.67 / 405.60 ms │         376.66 / 388.68 ±9.03 / 399.38 ms │     no change │
│ QQuery 76 │        663.72 / 695.97 ±25.17 / 740.60 ms │      1106.22 / 1110.87 ±4.02 / 1116.57 ms │  1.60x slower │
│ QQuery 77 │         266.17 / 270.17 ±3.32 / 274.10 ms │         269.75 / 274.36 ±3.33 / 278.42 ms │     no change │
│ QQuery 78 │        401.97 / 416.16 ±10.48 / 433.10 ms │         407.45 / 413.85 ±5.94 / 423.27 ms │     no change │
│ QQuery 79 │         263.98 / 274.08 ±6.58 / 281.53 ms │         262.43 / 273.07 ±8.38 / 283.86 ms │     no change │
│ QQuery 80 │        347.91 / 359.78 ±10.41 / 378.76 ms │         338.28 / 349.05 ±8.40 / 360.12 ms │     no change │
│ QQuery 81 │            61.65 / 62.91 ±0.80 / 63.84 ms │            61.84 / 62.49 ±0.51 / 63.28 ms │     no change │
│ QQuery 82 │            57.91 / 59.35 ±0.97 / 60.88 ms │            57.73 / 61.45 ±5.77 / 72.87 ms │     no change │
│ QQuery 83 │         100.12 / 105.56 ±5.15 / 115.02 ms │          93.86 / 100.05 ±6.29 / 111.96 ms │ +1.06x faster │
│ QQuery 84 │            72.69 / 74.06 ±1.36 / 75.89 ms │            72.69 / 76.23 ±3.12 / 82.00 ms │     no change │
│ QQuery 85 │        358.31 / 379.79 ±15.69 / 402.90 ms │        372.64 / 381.07 ±11.24 / 402.57 ms │     no change │
│ QQuery 86 │            65.33 / 68.72 ±5.14 / 78.92 ms │            66.00 / 67.37 ±1.18 / 68.96 ms │     no change │
│ QQuery 87 │               3.53 / 3.66 ±0.23 / 4.11 ms │               3.59 / 3.73 ±0.27 / 4.27 ms │     no change │
│ QQuery 88 │        158.40 / 166.56 ±10.03 / 185.82 ms │        156.79 / 169.49 ±10.97 / 187.69 ms │     no change │
│ QQuery 89 │        175.81 / 191.41 ±22.86 / 236.22 ms │        176.34 / 187.00 ±11.28 / 201.15 ms │     no change │
│ QQuery 90 │            38.28 / 39.61 ±0.68 / 40.13 ms │            38.23 / 39.40 ±0.91 / 40.42 ms │     no change │
│ QQuery 91 │         107.11 / 113.88 ±7.45 / 127.56 ms │         102.87 / 109.14 ±4.19 / 115.02 ms │     no change │
│ QQuery 92 │            67.05 / 69.81 ±1.78 / 72.49 ms │            67.98 / 71.68 ±3.83 / 78.63 ms │     no change │
│ QQuery 93 │         322.41 / 326.68 ±4.03 / 333.56 ms │         313.52 / 320.56 ±4.79 / 326.04 ms │     no change │
│ QQuery 94 │            90.52 / 91.37 ±0.70 / 92.24 ms │            93.01 / 94.56 ±1.39 / 96.66 ms │     no change │
│ QQuery 95 │         336.58 / 342.91 ±4.20 / 349.32 ms │         293.79 / 304.41 ±7.78 / 312.61 ms │ +1.13x faster │
│ QQuery 96 │            83.03 / 88.23 ±3.96 / 94.58 ms │            84.28 / 86.96 ±2.29 / 89.92 ms │     no change │
│ QQuery 97 │         187.70 / 195.14 ±6.36 / 204.37 ms │         188.22 / 191.97 ±3.19 / 196.15 ms │     no change │
│ QQuery 98 │         138.22 / 141.16 ±2.94 / 145.70 ms │         137.57 / 143.64 ±3.32 / 146.28 ms │     no change │
│ QQuery 99 │ 10864.81 / 11171.83 ±165.92 / 11336.69 ms │ 10842.69 / 11059.94 ±119.52 / 11185.66 ms │     no change │
└───────────┴───────────────────────────────────────────┴───────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                  ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                  │ 44595.75ms │
│ Total Time (worktree-dynamic-filter-restructure)   │ 47618.44ms │
│ Average Time (HEAD)                                │   450.46ms │
│ Average Time (worktree-dynamic-filter-restructure) │   480.99ms │
│ Queries Faster                                     │         12 │
│ Queries Slower                                     │         14 │
│ Queries with No Change                             │         73 │
│ Queries with Failure                               │          0 │
└────────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 225.1s
Peak memory 6.5 GiB
Avg memory 5.7 GiB
CPU user 479.8s
CPU sys 25.6s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 240.1s
Peak memory 6.3 GiB
Avg memory 5.7 GiB
CPU user 412.5s
CPU sys 26.9s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

Benchmark for this request failed.

Last 20 lines of output:

Click to expand
 Downloading crates ...
  Downloaded prost v0.14.3
  Downloaded prost-derive v0.14.3
  Downloaded anyhow v1.0.102
   Compiling anyhow v1.0.102
   Compiling either v1.15.0
   Compiling datafusion-benchmarks v53.1.0 (/workspace/datafusion-base/benchmarks)
   Compiling itertools v0.14.0
   Compiling prost-derive v0.14.3
   Compiling prost v0.14.3
   Compiling datafusion-proto-common v53.1.0 (/workspace/datafusion-base/datafusion/proto-common)
   Compiling datafusion-proto v53.1.0 (/workspace/datafusion-base/datafusion/proto)
    Finished `bench` profile [optimized + debuginfo] target(s) in 8m 59s
     Running benches/sql.rs (/workspace/datafusion-base/target/release/deps/sql-2c9f51cbfcaf27f8)
Gnuplot not found, using plotters backend

thread 'main' (21031) panicked at benchmarks/benches/sql.rs:131:46:
assertion failed: Execution("Error in result on row 1, column 1 running query \"\nSELECT COUNT(*) > 0 from lineitem;\": expected value \"true\" but got value \"false\" in row: [\"false\"]")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: bench failed, to rerun pass `--bench sql`

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

Benchmark for this request failed.

Last 20 lines of output:

Click to expand
 Downloading crates ...
  Downloaded prost-derive v0.14.3
  Downloaded prost v0.14.3
  Downloaded anyhow v1.0.102
   Compiling anyhow v1.0.102
   Compiling either v1.15.0
   Compiling datafusion-benchmarks v53.1.0 (/workspace/datafusion-base/benchmarks)
   Compiling itertools v0.14.0
   Compiling prost-derive v0.14.3
   Compiling prost v0.14.3
   Compiling datafusion-proto-common v53.1.0 (/workspace/datafusion-base/datafusion/proto-common)
   Compiling datafusion-proto v53.1.0 (/workspace/datafusion-base/datafusion/proto)
    Finished `bench` profile [optimized + debuginfo] target(s) in 8m 50s
     Running benches/sql.rs (/workspace/datafusion-base/target/release/deps/sql-2c9f51cbfcaf27f8)
Gnuplot not found, using plotters backend

thread 'main' (21062) panicked at benchmarks/benches/sql.rs:131:46:
assertion failed: Execution("Error in result on row 1, column 1 running query \"\nSELECT COUNT(*) > 0 from lineitem;\": expected value \"true\" but got value \"false\" in row: [\"false\"]")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: bench failed, to rerun pass `--bench sql`

File an issue against this benchmark runner

@adriangb adriangb marked this pull request as ready for review April 30, 2026 00:23
@adriangb
Copy link
Copy Markdown
Contributor Author

adriangb commented Apr 30, 2026

@gene-bordegaray @Dandandan I'm curious what you think of this. It's a bit of a compromise:

  1. Faster or neutral at low partition counts for both filter pushdown on and off.
  2. Faster or neutral at high partition counts for pushdown off. Slower for pushdown on. I think this is something we can address later by dynamically disabling optional filters that don't have a good pruning / compute cost ratio.

What this gets us is:

  1. Better perf at settings most benchmarks (and laptops, etc.) run under.
  2. Resolves @gene-bordegaray 's range partitioning issues.

@Dandandan
Copy link
Copy Markdown
Contributor

I'm quite in favor of this change. It also avoids blowing up the expression based on number of partitions, which can happen when partition count is high.

@adriangb
Copy link
Copy Markdown
Contributor Author

I'm quite in favor of this change. It also avoids blowing up the expression based on number of partitions, which can happen when partition count is high.

Well it doesn't avoid it completely, and in some ways it makes it worse. We still have 1 hash map per partition (cannot be avoided unless we pay the memory and build time cost of combining them). And we now scale our probes with the number of partitions, they used to be constant with number of partitions. But probes are much faster than hashes which is why I think unless the partition count is high this will likely be faster.

@Dandandan
Copy link
Copy Markdown
Contributor

I'm quite in favor of this change. It also avoids blowing up the expression based on number of partitions, which can happen when partition count is high.

Well it doesn't avoid it completely, and in some ways it makes it worse. We still have 1 hash map per partition (cannot be avoided unless we pay the memory and build time cost of combining them). And we now scale our probes with the number of partitions, they used to be constant with number of partitions. But probes are much faster than hashes which is why I think unless the partition count is high this will likely be faster.

I am not 100% following this.

A possible structural follow-up — re-introducing partition routing inside MultiMapLookupExpr (1 routing hash + 1 probe, so per-row cost matches legacy CASE) — would close the regression at any N, with or without #20363.

I think this would be worthwhile to add so we avoid both the expression blow up as not having to probe each of them?

Perhaps we can as well use #21900 here as for primitive columns the cost of % is much higher than hashing.

@adriangb
Copy link
Copy Markdown
Contributor Author

adriangb commented May 1, 2026

I'm quite in favor of this change. It also avoids blowing up the expression based on number of partitions, which can happen when partition count is high.

Well it doesn't avoid it completely, and in some ways it makes it worse. We still have 1 hash map per partition (cannot be avoided unless we pay the memory and build time cost of combining them). And we now scale our probes with the number of partitions, they used to be constant with number of partitions. But probes are much faster than hashes which is why I think unless the partition count is high this will likely be faster.

I am not 100% following this.

The point is: it is probably still slower at some very high partition count. But it seems to not matter in reasonable workloads.

A possible structural follow-up — re-introducing partition routing inside MultiMapLookupExpr (1 routing hash + 1 probe, so per-row cost matches legacy CASE) — would close the regression at any N, with or without #20363.

I think this would be worthwhile to add so we avoid both the expression blow up as not having to probe each of them?

Perhaps we can as well use #21900 here as for primitive columns the cost of % is much higher than hashing.

That brings back coupling to hash routing, which IMO would be nice to avoid. I will try incorporating
#21900

adriangb and others added 6 commits May 1, 2026 16:52
In Partitioned-mode HashJoinExec, when every reported partition's build
side uses a hash-table strategy, replace the routing CASE expression
(`CASE hash_repartition % N WHEN p THEN bounds AND hash_lookup ELSE
false END`) with `global_minmax AND multi_hash_lookup`.

The new MultiMapLookupExpr hashes the join keys once with HASH_JOIN_SEED
and ORs `contain_hashes()` across every partition's hash table,
eliminating both the routing-hash computation and the per-branch
re-hashing that CaseExpr does. Any non-Map partition (InList, Empty)
disqualifies the fast path and we use the legacy CASE unchanged; same
for partitions that were canceled before reporting build data.

Benchmarks (TPC-H SF=1, 7 iters back-to-back):

  TOTAL min vs no-DF:
    legacy CASE:      +3.0%
    multi_hash_lookup: +1.6%   (~halves the regression)

  Per-query (multi_hash_lookup vs CASE):
    Q4  -6.0%   Q5  -3.3%   Q7  -6.0%   Q8  -4.0%
    Q9  -3.5%   Q12 -3.2%   Q17 -1.6%   Q21 -3.8%

Refs: apache#19858

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…on IN (SET)

When every reported partition for a Partitioned hash join uses InList
pushdown and the cross-partition union would be ≤ 20 array entries,
concatenate the per-partition `ArrayRef`s and emit
`global_minmax AND struct(c0,c1,…) IN (SET)` instead of the routing
CASE. The cap is set so the merged set can participate in parquet
stats / bloom-filter pruning at the scan, which a per-partition CASE
or a `multi_hash_lookup` cannot.

A TPC-H SF=1 cap sweep (cap=20/50/100/200/2000) confirmed 20–50 is
the sweet spot — past ~200 the larger static_filter hash set blows
out of L1 and runtime regresses below the legacy CASE.

The tightened path also subsumes the `force_hash_collisions`
optimization (when the runtime collapses every key into one
partition we get the same shape, just for a different reason) so
both `#[cfg]` snapshot branches in
test_hashjoin_dynamic_filter_pushdown_partitioned now produce the
merged `IN (SET)` form.

Refs: apache#19858

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Decouple the dynamic filter from the build-side repartition strategy
entirely. The filter for `PartitionMode::Partitioned` is now always
`global_minmax AND (merged_in_list | multi_hash_lookup)`, regardless
of whether individual partitions chose Map or InList for pushdown:

  * `merged_in_list` fires when every reported partition contributed
    an InList array AND the cross-partition union stays within
    `MERGED_INLIST_MAX_TOTAL_LEN` (= 20). This is the path that
    participates in parquet stats / bloom-filter pruning.
  * Otherwise `multi_hash_lookup` probes every partition's hash table
    in one shared hashing pass.

Key change: `PushdownStrategy` is now a struct that always carries the
`Map` (the join's hash table is built unconditionally) plus an optional
InList array. With the map always available we don't need a per-row
`CASE hash_repartition % N WHEN p THEN per_partition_filter ELSE …`
expression to route rows to the right partition's data — the shared
multi-map probe finds matches in whichever partition holds them.

Removed:
  * `build_case_routing_filter` (~70 LoC) and its `CaseExpr` /
    `HashExpr` plumbing in shared_bounds
  * `repartition_random_state` field on `SharedBuildAccumulator`
  * The `REPARTITION_RANDOM_STATE` import in `exec.rs`
  * Conditional `force_hash_collisions` snapshot — both the normal
    and force-collision paths now produce the same shape

The canceled-partition fallback collapses to `lit(true)`: with a
canceled partition we don't have its map, so we can't include it in
multi_hash_lookup; emitting the no-op filter is safe (correctness is
preserved) and the query is in the middle of being torn down anyway.

Costs: TPC-H SF=1 shows a small (≈0.5–2pp) regression vs the
multimap+CASE-fallback design on noisy back-to-back runs — the
moderate-InList shape (Q11/Q14 etc.) used to use small per-partition
InLists inside CASE; now those joins use multi_hash_lookup. Per the
issue discussion the simplification is the goal even when there's no
perf win.

Refs: apache#19858

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The cross-partition merged-InList gate now reuses the existing
`optimizer.hash_join_inlist_pushdown_max_distinct_values` knob: one
configuration option caps both the per-partition InList pushdown and
the cross-partition merged set. The combine path explicitly
deduplicates by `ScalarValue` (via a HashSet first-seen walk + a
single `arrow::compute::take`) and then re-gates on the distinct
count rather than the previous total-array-length heuristic. With
the cap defaulting to 20, the worst-case dedup input is N×20 entries,
which is microseconds at the partition counts we see in practice.

The previous hardcoded 20-entry length cap and `MERGED_INLIST_MAX_TOTAL_LEN`
constant are gone — the threshold is now configurable. Default lowered
from 150 → 20 to align with parquet stats / bloom-filter pruning
practicality (a small `IN (SET)` that scans can use to drop row groups
is the entire reason for keeping this path). Users that want the wider
per-partition InList behavior can raise the value.

Within-partition build still ships duplicates: the build code in
`exec.rs` doesn't dedupe before populating
`PushdownStrategy::inlist`, relying on the join hash map's
`num_of_distinct_key()` for the per-partition gate and the static
filter inside `InListExpr` to dedupe at filter-evaluation time. Adding
explicit per-partition dedup is a follow-up — not required for
correctness because the cross-partition dedup catches everything.

Refs: apache#19858

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- `information_schema.slt`: bumps the baked-in default and doc string for
  `optimizer.hash_join_inlist_pushdown_max_distinct_values` to match the
  150 → 20 default change (sqllogictest, extended_tests, sqlite suite,
  verify-benchmark-results all hit this slt).
- `partitioned_hash_eval.rs`: drop the redundant explicit-target on a
  `[BooleanArray]` doc link. Adding `BooleanArray` to imports for
  `MultiMapLookupExpr` made the existing `[`BooleanArray`](arrow::array::BooleanArray)`
  link redundant under `-D rustdoc::redundant_explicit_links`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drop comments that read like PR-review notes ("X no longer Y", "the
legacy CASE", "this drops the routing") in favour of comments that
describe the current behaviour for someone reading the file cold.
Trim some now-redundant field-level docs and tighten doc strings on
`MultiMapLookupExpr`, `PushdownStrategy`, `build_partitioned_filter`,
and `try_build_merged_inlist`.

No functional change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@adriangb adriangb force-pushed the worktree-dynamic-filter-restructure branch from f717a99 to 17b9dce Compare May 1, 2026 21:52
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

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 origin/main
    Building datafusion v53.1.0 (current)
       Built [  85.427s] (current)
     Parsing datafusion v53.1.0 (current)
      Parsed [   0.037s] (current)
    Building datafusion v53.1.0 (baseline)
       Built [  83.381s] (baseline)
     Parsing datafusion v53.1.0 (baseline)
      Parsed [   0.037s] (baseline)
    Checking datafusion v53.1.0 -> v53.1.0 (no change; assume patch)
     Checked [   0.875s] 222 checks: 222 pass, 30 skip
     Summary no semver update required
    Finished [ 171.499s] datafusion
    Building datafusion-common v53.1.0 (current)
error: running cargo-doc on crate 'datafusion-common' failed with output:
-----
   Compiling proc-macro2 v1.0.106
   Compiling unicode-ident v1.0.24
   Compiling quote v1.0.45
   Compiling libc v0.2.186
   Compiling libm v0.2.16
   Compiling autocfg v1.5.0
    Checking cfg-if v1.0.4
   Compiling num-traits v0.2.19
   Compiling syn v2.0.117
    Checking memchr v2.8.0
   Compiling find-msvc-tools v0.1.9
   Compiling shlex v1.3.0
   Compiling zerocopy v0.8.48
   Compiling serde_core v1.0.228
    Checking itoa v1.0.18
    Checking bytes v1.11.1
   Compiling zmij v1.0.21
   Compiling jobserver v0.1.34
   Compiling cc v1.2.61
   Compiling serde_json v1.0.149
    Checking num-integer v0.1.46
    Checking iana-time-zone v0.1.65
   Compiling version_check v0.9.5
    Checking siphasher v1.0.2
    Checking stable_deref_trait v1.2.1
   Compiling getrandom v0.3.4
    Checking phf_shared v0.12.1
   Compiling ahash v0.8.12
    Checking chrono v0.4.44
    Checking num-bigint v0.4.6
   Compiling synstructure v0.13.2
   Compiling chrono-tz v0.10.4
    Checking arrow-schema v58.1.0
    Checking phf v0.12.1
    Checking once_cell v1.21.4
    Checking num-complex v0.4.6
    Checking hashbrown v0.16.1
    Checking litemap v0.8.2
    Checking lexical-util v1.0.7
    Checking writeable v0.6.3
   Compiling pkg-config v0.3.33
    Checking utf8_iter v1.0.4
   Compiling object v0.37.3
    Checking smallvec v1.15.1
   Compiling icu_properties_data v2.2.0
   Compiling zerocopy-derive v0.8.48
   Compiling zerofrom-derive v0.1.7
   Compiling yoke-derive v0.8.2
   Compiling zerovec-derive v0.11.3
    Checking zerofrom v0.1.7
    Checking yoke v0.8.2
   Compiling displaydoc v0.2.5
    Checking zerotrie v0.2.4
    Checking zerovec v0.11.6
   Compiling zstd-sys v2.0.16+zstd.1.5.7
   Compiling icu_normalizer_data v2.2.0
    Checking tinystr v0.8.3
    Checking icu_locale_core v2.2.0
    Checking potential_utf v0.1.5
    Checking icu_collections v2.2.0
    Checking icu_provider v2.2.0
   Compiling semver v1.0.28
   Compiling rustc_version v0.4.1
    Checking lexical-parse-integer v1.0.6
    Checking lexical-write-integer v1.0.6
   Compiling zstd-safe v7.2.4
    Checking lexical-write-float v1.0.6
    Checking half v2.7.1
    Checking lexical-parse-float v1.0.6
    Checking arrow-buffer v58.1.0
    Checking icu_normalizer v2.2.0
    Checking icu_properties v2.2.0
    Checking arrow-data v58.1.0
    Checking arrow-array v58.1.0
   Compiling flatbuffers v25.12.19
    Checking aho-corasick v1.1.4
    Checking regex-syntax v0.8.10
   Compiling ar_archive_writer v0.5.1
    Checking arrow-select v58.1.0
    Checking base64 v0.22.1
    Checking ryu v1.0.23
    Checking unicode-width v0.2.2
    Checking unicode-segmentation v1.13.2
    Checking pin-project-lite v0.2.17
   Compiling parking_lot_core v0.9.12
    Checking futures-sink v0.3.32
    Checking futures-core v0.3.32
    Checking regex-automata v0.4.14
    Checking futures-channel v0.3.32
    Checking comfy-table v7.2.2
    Checking arrow-ord v58.1.0
   Compiling psm v0.1.31
    Checking idna_adapter v1.2.2
    Checking lexical-core v1.0.6
   Compiling futures-macro v0.3.32
    Checking atoi v2.0.0
    Checking alloc-no-stdlib v2.0.4
    Checking foldhash v0.2.0
    Checking futures-task v0.3.32
    Checking twox-hash v2.1.2
    Checking slab v0.4.12
    Checking equivalent v1.0.2
    Checking bitflags v2.11.1
    Checking futures-io v0.3.32
    Checking scopeguard v1.2.0
    Checking percent-encoding v2.3.2
    Checking allocator-api2 v0.2.21
   Compiling thiserror v2.0.18
    Checking hashbrown v0.17.0
    Checking regex v1.12.3
    Checking form_urlencoded v1.2.2
    Checking lock_api v0.4.14
    Checking futures-util v0.3.32
    Checking lz4_flex v0.13.0
    Checking alloc-stdlib v0.2.2
    Checking arrow-cast v58.1.0
    Checking idna v1.1.0
   Compiling thiserror-impl v2.0.18
   Compiling ring v0.17.14
   Compiling stacker v0.1.24
    Checking csv-core v0.1.13
   Compiling getrandom v0.4.2
    Checking either v1.15.0
   Compiling paste v1.0.15
    Checking simdutf8 v0.1.5
   Compiling snap v1.1.1
    Checking itertools v0.14.0
    Checking csv v1.4.0
    Checking parking_lot v0.12.5
    Checking url v2.5.8
    Checking brotli-decompressor v5.0.0
    Checking indexmap v2.14.0
   Compiling async-trait v0.1.89
   Compiling tokio-macros v2.7.0
    Checking zstd v0.13.3
    Checking arrow-ipc v58.1.0
    Checking http v1.4.0
    Checking ordered-float v2.10.1
    Checking getrandom v0.2.17
    Checking humantime v2.3.0
    Checking integer-encoding v3.0.4
    Checking zlib-rs v0.6.3
    Checking untrusted v0.9.0
    Checking byteorder v1.5.0
    Checking thrift v0.17.0
    Checking object_store v0.13.2
    Checking tokio v1.52.1
    Checking flate2 v1.1.9
    Checking arrow-json v58.1.0
    Checking brotli v8.0.2
    Checking arrow-csv v58.1.0
    Checking futures v0.3.32
    Checking arrow-string v58.1.0
    Checking arrow-arith v58.1.0
    Checking arrow-row v58.1.0
   Compiling sqlparser_derive v0.5.0
   Compiling recursive-proc-macro-impl v0.1.1
    Checking log v0.4.29
   Compiling seq-macro v0.3.6
    Checking recursive v0.1.1
    Checking sqlparser v0.61.0
    Checking arrow v58.1.0
    Checking uuid v1.23.1
    Checking hex v0.4.3
    Checking parquet v58.1.0
error[E0432]: unresolved import `object_store::buffered`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parquet-58.1.0/src/arrow/async_writer/store.rs:25:19
    |
 25 | use object_store::buffered::BufWriter;
    |                   ^^^^^^^^ could not find `buffered` in `object_store`
    |
note: found an item that was configured out
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/object_store-0.13.2/src/lib.rs:545:9
    |
544 | #[cfg(feature = "tokio")]
    |       ----------------- the item is gated behind the `tokio` feature
545 | pub mod buffered;
    |         ^^^^^^^^

error[E0282]: type annotations needed
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parquet-58.1.0/src/arrow/async_writer/store.rs:98:13
    |
 98 | /             self.w
 99 | |                 .put(bs)
100 | |                 .await
    | |______________________^ cannot infer type

error[E0282]: type annotations needed
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parquet-58.1.0/src/arrow/async_writer/store.rs:107:13
    |
107 | /             self.w
108 | |                 .shutdown()
109 | |                 .await
    | |______________________^ cannot infer type

Some errors have detailed explanations: E0282, E0432.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `parquet` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...

-----

error: failed to build rustdoc for crate datafusion-common v53.1.0
note: this is usually due to a compilation error in the crate,
      and is unlikely to be a bug in cargo-semver-checks
note: the following command can be used to reproduce the error:
      cargo new --lib example &&
          cd example &&
          echo '[workspace]' >> Cargo.toml &&
          cargo add --path /home/runner/work/datafusion/datafusion/datafusion/common --features backtrace,force_hash_collisions,object_store,parquet,parquet_encryption,recursive_protection,sql,sqlparser &&
          cargo check &&
          cargo doc

    Building datafusion-physical-plan v53.1.0 (current)
       Built [  31.251s] (current)
     Parsing datafusion-physical-plan v53.1.0 (current)
      Parsed [   0.128s] (current)
    Building datafusion-physical-plan v53.1.0 (baseline)
       Built [  31.371s] (baseline)
     Parsing datafusion-physical-plan v53.1.0 (baseline)
      Parsed [   0.131s] (baseline)
    Checking datafusion-physical-plan v53.1.0 -> v53.1.0 (no change; assume patch)
     Checked [   0.775s] 222 checks: 222 pass, 30 skip
     Summary no semver update required
    Finished [  65.339s] datafusion-physical-plan
    Building datafusion-sqllogictest v53.1.0 (current)
       Built [ 135.703s] (current)
     Parsing datafusion-sqllogictest v53.1.0 (current)
      Parsed [   0.024s] (current)
    Building datafusion-sqllogictest v53.1.0 (baseline)
       Built [ 135.547s] (baseline)
     Parsing datafusion-sqllogictest v53.1.0 (baseline)
      Parsed [   0.024s] (baseline)
    Checking datafusion-sqllogictest v53.1.0 -> v53.1.0 (no change; assume patch)
     Checked [   0.113s] 222 checks: 222 pass, 30 skip
     Summary no semver update required
    Finished [ 274.368s] datafusion-sqllogictest
error: aborting due to failure to build rustdoc for crate datafusion-common v53.1.0

@gene-bordegaray
Copy link
Copy Markdown
Contributor

I like this direction as a default, seems less brittle and cleaner baseline. This approach will definitely provide some value for preserved_file_partitions (#21207 ) 😄

I’d still like to discuss the possibility of partition-aware filters path when DataFusion can prove both sides share the same partition mapping and as discussed in #21207 the proper infrastructure for expressing more types of partitioning is in place. For use cases we are seeing the partition-specific filters selectivity is quite nice.

I imagine that if we provided information from partitioning that two partitioning spaces (build and probe sides) are compatible (such as the same range partitioning) we would not only choose from IN (SET) or multi_hash_lookup, but a partition routed lookup instead with the global as a fallback.

@adriangb
Copy link
Copy Markdown
Contributor Author

adriangb commented May 2, 2026

Yes agreed.

My thought is that this a good default for now that is less brittle to things messing with partitioning.

And down the line once we've got a good story for range partitioning we can use #21900 for hash partitioned cases (assuming performance looks good) and some other system for range partitioning.

@Dandandan I looked into #21900 but immediately realized the point is that would make the partition routing faster, but part of the goal here is to not have any partition routing because it introduces brittleness and is slower than just probing more hash tables (although #21900 could flip the performance story, we'd have to confirm).

In any case - we can always merge this now and follow up with a version of MultiMapLookupExpr that uses #21900 if perf looks good?

@Dandandan
Copy link
Copy Markdown
Contributor

is slower than just probing more hash tables

I am very skeptical of probing partition x hash tables for every row is very efficient, but I see it can still be faster than evaluating a long nested expression which grows based on number of partitions, as DF doesn't have special knowledge of the "routing" (+ if everything matches it will be pure overhead).

I feel like doing the % partition in the physical expression and routing that to the correct expression / probe should be faster + more selective than just probing all tables (which as well doesn't scale well to many partitions)?

That said - I like removing the big CASE-based routing as it seems hard to get that performant.

@Dandandan
Copy link
Copy Markdown
Contributor

In any case - we can always merge this now and follow up with a version of MultiMapLookupExpr that uses #21900 if perf looks good?

Sounds good

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

Labels

common Related to common crate core Core DataFusion crate documentation Improvements or additions to documentation 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.

4 participants