Skip to content

perf: keep sort-merge join pairs as runs and filter outer join pairs first - #27928

Draft
comphead wants to merge 10 commits into
apache:mainfrom
comphead:smj-27910
Draft

comphead wants to merge 10 commits into
apache:mainfrom
comphead:smj-27910

Conversation

@comphead

@comphead comphead commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

#27278 filters Inner sort-merge join pairs before materializing them. Its profiles showed where the join still spends its time:

  • On TPC-DS q72's shape (inner_1to1000_selective_filtered), gathering the filter's columns through per-pair indices took about 30% of the CPU, and recording those indices 11%.
  • With 64-row buffered batches, allocating and freeing a chunk of indices for every buffered batch took 14%.
  • A Left join whose filter keeps 5% of the pairs spent about 90% of its time materializing every pair and running the deferred filter over them, and 1% evaluating the filter.
  • Buffered batches kept, reserved and spilled columns that the join neither emits nor reads, such as a join key that the projection drops.

What changes are included in this PR?

  • Pairs stay runs until the freeze (items 1 and 2). append_output_pairs records a streamed row and its run of buffered rows as one PairRun, in a vector that the freezes reuse. Before, it stored a u64 pair per match, in chunks allocated for each buffered batch. At the freeze, a side whose rows form a range is still sliced. Long runs are copied: the buffered rows as ranges, and the streamed row repeated for primitive columns. Primitive and byte arrays copy their value ranges and validity directly. Other types are gathered row by row, and for dictionaries interleave merges what copying would concatenate. Buffered runs, or streamed rows, that average fewer than 12 pairs are still gathered row by row.
  • Outer joins filter first (item 4). A Left, Right or Full join with a filter evaluates it on the filter's columns, then materializes the pairs that pass plus the first pair of each streamed row whose pairs all fail. The deferred filter null-joins that row as before.
  • Buffered batches keep only the columns they need (item 3): the emitted ones and the filter's, once the join keys are computed. Their reservation and spill files shrink to match. When the join reads no buffered column, a freeze builds no buffered rows at all.
  • New sort_merge_join benchmark cases, inner_10to1 and left_1to1000_selective_filtered, are in a separate first commit.

What is the testing strategy for this PR?

The existing sort-merge join tests cover most of the new paths. They compare with HashJoinExec and with projected joins, and they cover spilling. Mutation checks of the new code found gaps, which the first three of these tests close:

  • join_runs_continue_only_within_a_buffered_batch: a key group starts at row 32 of one buffered batch and ends at row 32 of the next, so runs from the two batches line up. Its dictionary column is gathered with interleave, since copying would concatenate the batches' dictionaries past Int8 keys.
  • join_left_copies_runs_of_several_batches: a Left join copies runs from two buffered batches around a null-joined pair, into a key without nulls and integer, string and boolean columns with nulls.
  • join_left_keeps_nulls_of_passing_null_joined_pair: a null-joined pair that passes the filter keeps its NULL buffered values when its freeze filters a run.
  • join_with_projection_matches_projected_join now also runs with spilling. Its projections drop the buffered key.

The join fuzz tests and the sort-merge join sqllogictest files pass.

Benchmarks: cargo bench -p datafusion-physical-plan --features test_utils --bench sort_merge_join, this PR against its base plus the bench commit (the head of #27278, whose sort-merge join code main now has), with thin LTO on an Apple M5 Max. The two builds and a second copy of the base ran alternately for four rounds. The table shows each case's best round.

Benchmark Base This PR Change
inner_1to1000_selective_filtered/20000 3.52 ms 1.89 ms -46%
left_1to1000_selective_filtered/20000 (new) 30.36 ms 3.59 ms -88%
left_1to100_filtered/20000 41.50 ms 23.53 ms -43%
inner_1to100/20000 13.63 ms 8.84 ms -35%
inner_1to100_filtered/20000 10.34 ms 7.05 ms -32%
inner_group_spans_buffered_batches/8 10.78 ms 4.43 ms -59%
inner_group_spans_buffered_batches/64 3.18 ms 1.50 ms -53%
inner_group_spans_buffered_batches/512 2.32 ms 1.22 ms -47%
inner_1to1/100000 1.52 ms 1.46 ms -4%
inner_10to1/100000 (new) 1.16 ms 1.18 ms +1%
inner_1to10/100000 7.63 ms 7.98 ms +5%
inner_1to10_high_pass_filtered_narrow/100000 3.68 ms 3.70 ms +0%

The other cases changed by 4% or less, and the second copy of the base ran up to 6% apart from the first, so the small changes are within noise. Runs of about 10 pairs can be a few percent slower, because the freeze now expands them into indices that pairing used to write. A linux/arm64 run in Docker (4 vCPUs, two rounds) agreed: q72's shape took 0.54x as long as the base, its Left join 0.13x, and inner_group_spans_buffered_batches/64 0.41x, with the 1:10 cases within 5% of the base. The table predates the last three commits, review cleanups that measured 0.96x to 1.01x of the previous head on these cases (medians of four alternating rounds, with a copy of the previous head within 1%).

For item 3, in a scratch Inner join whose projection drops the buffered key and a string column, with 50,000 buffered rows per key, the peak reservation fell from 2.99 MB to 1.38 MB. With a 1 MB pool, the spilled bytes fell from 4.71 MB to 0.49 MB.

Are there any user-facing changes?

No.

… join

`inner_10to1` joins 10 streamed rows to each buffered row, as a fact table
joins a dimension on its key. `left_1to1000_selective_filtered` runs the
inputs and filter of `inner_1to1000_selective_filtered` as a Left join.
…first

A streamed row and the run of buffered rows it matches are now recorded as
one `PairRun`, in a vector that the freezes reuse, instead of a pair of `u64`
indices per match in chunks allocated for each buffered batch. At the freeze
a side whose rows form a range is sliced as before, long runs of buffered
rows are copied as ranges, and the streamed row of a long run is repeated for
primitive columns. Short runs are still gathered row by row.

Left, Right and Full joins with a filter now evaluate it before
materializing pairs, like Inner joins. They keep the pairs that pass and the
first pair of each streamed row whose pairs all fail, which the deferred
filter null-joins as before.
Buffered batches kept every input column while they waited for their key
group, and spilled them all. Once its join keys are computed, a buffered
batch now keeps only the columns that the join emits or its filter reads, so
its reservation and spill files no longer include, for example, a join key
that the projection drops.
@github-actions github-actions Bot added the physical-plan Changes to the physical-plan crate label Dec 1, 2026
@comphead

comphead commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor Author

With Comet 10TB Q72 got 156s which is improvement comparing to 208s before, but still think we can achieve more

@comphead comphead added the performance Make DataFusion faster label Dec 2, 2026
A freeze that copies runs of buffered rows built a `MutableArrayData` for each
column, which converted the column of every source batch with `to_data()` and
boxed an extend closure for each. With 64-row buffered batches, that setup took
about 6% of the CPU in a Linux profile. Primitive and byte arrays now copy their
value ranges and validity directly. Other types keep `MutableArrayData`.
@comphead

comphead commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark tpch tpcds smj

env:
    PREFER_HASH_JOIN: false

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c7363056789-6166-bbs4j 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

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

Comparing smj-27910 (b255dd5) to 5184bdd (merge-base) diff

Run configuration
run benchmark tpcds
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark tpch tpcds smj
```
env:
    PREFER_HASH_JOIN: false
```

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-c7363056789-6165-8dl2c 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

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

Comparing smj-27910 (b255dd5) to 5184bdd (merge-base) diff

Run configuration
run benchmark tpch
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark tpch tpcds smj
```
env:
    PREFER_HASH_JOIN: false
```

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-c7363056789-6167-9tkbd 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

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

Comparing smj-27910 (b255dd5) to 5184bdd (merge-base) diff

Run configuration
run benchmark smj
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark tpch tpcds smj
```
env:
    PREFER_HASH_JOIN: false
```

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)

Comparing smj-27910 (b255dd5) to 5184bdd (merge-base) diff

Run configuration
run benchmark tpch
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark tpch tpcds smj
```
env:
    PREFER_HASH_JOIN: false
```
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 smj-27910
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃     HEAD ┃ smj-27910 ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 1  │ 38.11 ms │  38.01 ms │    no change │
│ QQuery 2  │ 19.95 ms │  20.04 ms │    no change │
│ QQuery 3  │ 27.84 ms │  27.80 ms │    no change │
│ QQuery 4  │ 16.44 ms │  16.69 ms │    no change │
│ QQuery 5  │ 34.31 ms │  34.10 ms │    no change │
│ QQuery 6  │ 13.72 ms │  13.74 ms │    no change │
│ QQuery 7  │ 41.46 ms │  40.87 ms │    no change │
│ QQuery 8  │ 39.39 ms │  39.21 ms │    no change │
│ QQuery 9  │ 47.91 ms │  48.45 ms │    no change │
│ QQuery 10 │ 39.32 ms │  39.24 ms │    no change │
│ QQuery 11 │ 12.88 ms │  12.93 ms │    no change │
│ QQuery 12 │ 15.99 ms │  15.62 ms │    no change │
│ QQuery 13 │ 38.94 ms │  39.20 ms │    no change │
│ QQuery 14 │ 23.62 ms │  23.70 ms │    no change │
│ QQuery 15 │ 30.41 ms │  32.05 ms │ 1.05x slower │
│ QQuery 16 │ 13.20 ms │  13.12 ms │    no change │
│ QQuery 17 │ 62.42 ms │  63.01 ms │    no change │
│ QQuery 18 │ 39.83 ms │  40.18 ms │    no change │
│ QQuery 19 │ 32.11 ms │  31.76 ms │    no change │
│ QQuery 20 │ 31.35 ms │  31.57 ms │    no change │
│ QQuery 21 │ 54.08 ms │  53.54 ms │    no change │
│ QQuery 22 │ 13.42 ms │  13.28 ms │    no change │
└───────────┴──────────┴───────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary        ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)        │ 686.69ms │
│ Total Time (smj-27910)   │ 688.12ms │
│ Average Time (HEAD)      │  31.21ms │
│ Average Time (smj-27910) │  31.28ms │
│ Queries Faster           │        0 │
│ Queries Slower           │        1 │
│ Queries with No Change   │       21 │
│ Queries with Failure     │        0 │
└──────────────────────────┴──────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and smj-27910
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃                      smj-27910 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 38.11 / 39.57 ±1.72 / 42.45 ms │ 38.01 / 38.84 ±1.05 / 40.78 ms │     no change │
│ QQuery 2  │ 19.95 / 20.18 ±0.28 / 20.72 ms │ 20.04 / 20.22 ±0.17 / 20.53 ms │     no change │
│ QQuery 3  │ 27.84 / 28.42 ±0.89 / 30.20 ms │ 27.80 / 28.24 ±0.42 / 28.84 ms │     no change │
│ QQuery 4  │ 16.44 / 16.60 ±0.10 / 16.73 ms │ 16.69 / 17.07 ±0.61 / 18.29 ms │     no change │
│ QQuery 5  │ 34.31 / 34.44 ±0.12 / 34.60 ms │ 34.10 / 34.30 ±0.11 / 34.39 ms │     no change │
│ QQuery 6  │ 13.72 / 14.33 ±0.68 / 15.43 ms │ 13.74 / 14.19 ±0.45 / 14.75 ms │     no change │
│ QQuery 7  │ 41.46 / 43.22 ±1.82 / 46.64 ms │ 40.87 / 42.14 ±1.43 / 44.95 ms │     no change │
│ QQuery 8  │ 39.39 / 40.27 ±1.43 / 43.12 ms │ 39.21 / 39.87 ±0.57 / 40.88 ms │     no change │
│ QQuery 9  │ 47.91 / 48.84 ±0.90 / 50.17 ms │ 48.45 / 49.33 ±0.79 / 50.59 ms │     no change │
│ QQuery 10 │ 39.32 / 40.17 ±1.32 / 42.79 ms │ 39.24 / 39.49 ±0.31 / 40.09 ms │     no change │
│ QQuery 11 │ 12.88 / 13.03 ±0.17 / 13.37 ms │ 12.93 / 13.13 ±0.19 / 13.48 ms │     no change │
│ QQuery 12 │ 15.99 / 16.88 ±0.77 / 18.16 ms │ 15.62 / 15.73 ±0.10 / 15.90 ms │ +1.07x faster │
│ QQuery 13 │ 38.94 / 39.19 ±0.22 / 39.50 ms │ 39.20 / 39.57 ±0.29 / 40.08 ms │     no change │
│ QQuery 14 │ 23.62 / 24.41 ±0.99 / 26.24 ms │ 23.70 / 24.06 ±0.29 / 24.40 ms │     no change │
│ QQuery 15 │ 30.41 / 32.11 ±1.01 / 33.47 ms │ 32.05 / 32.63 ±0.67 / 33.87 ms │     no change │
│ QQuery 16 │ 13.20 / 13.34 ±0.13 / 13.51 ms │ 13.12 / 13.22 ±0.12 / 13.44 ms │     no change │
│ QQuery 17 │ 62.42 / 66.12 ±2.47 / 68.76 ms │ 63.01 / 63.67 ±0.84 / 65.31 ms │     no change │
│ QQuery 18 │ 39.83 / 40.82 ±0.53 / 41.33 ms │ 40.18 / 40.77 ±0.52 / 41.45 ms │     no change │
│ QQuery 19 │ 32.11 / 33.37 ±2.22 / 37.80 ms │ 31.76 / 32.27 ±0.47 / 33.12 ms │     no change │
│ QQuery 20 │ 31.35 / 31.59 ±0.30 / 32.19 ms │ 31.57 / 33.86 ±4.06 / 41.97 ms │  1.07x slower │
│ QQuery 21 │ 54.08 / 54.70 ±0.64 / 55.91 ms │ 53.54 / 54.44 ±1.03 / 55.99 ms │     no change │
│ QQuery 22 │ 13.42 / 13.64 ±0.23 / 14.01 ms │ 13.28 / 13.37 ±0.10 / 13.56 ms │     no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary        ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)        │ 705.26ms │
│ Total Time (smj-27910)   │ 700.42ms │
│ Average Time (HEAD)      │  32.06ms │
│ Average Time (smj-27910) │  31.84ms │
│ Queries Faster           │        1 │
│ Queries Slower           │        1 │
│ Queries with No Change   │       20 │
│ Queries with Failure     │        0 │
└──────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 1.1 GiB
Avg memory 480.9 MiB
CPU user 18.6s
CPU sys 1.6s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 1.2 GiB
Avg memory 490.8 MiB
CPU user 18.7s
CPU sys 1.4s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing smj-27910 (b255dd5) to 5184bdd (merge-base) diff

Run configuration
run benchmark smj
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark tpch tpcds smj
```
env:
    PREFER_HASH_JOIN: false
```
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 smj-27910
--------------------
Benchmark smj.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃      HEAD ┃ smj-27910 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │   8.45 ms │   8.59 ms │     no change │
│ QQuery 2  │  88.69 ms │  75.13 ms │ +1.18x faster │
│ QQuery 3  │  37.87 ms │  33.40 ms │ +1.13x faster │
│ QQuery 4  │  25.50 ms │  24.83 ms │     no change │
│ QQuery 5  │  11.94 ms │  10.47 ms │ +1.14x faster │
│ QQuery 6  │  87.78 ms │  74.44 ms │ +1.18x faster │
│ QQuery 7  │ 105.67 ms │  91.59 ms │ +1.15x faster │
│ QQuery 8  │  15.24 ms │  15.09 ms │     no change │
│ QQuery 9  │ 111.80 ms │  93.92 ms │ +1.19x faster │
│ QQuery 10 │  54.61 ms │  54.60 ms │     no change │
│ QQuery 11 │  24.87 ms │  24.62 ms │     no change │
│ QQuery 12 │  60.20 ms │  59.98 ms │     no change │
│ QQuery 13 │  95.80 ms │  93.02 ms │     no change │
│ QQuery 14 │  54.33 ms │  54.44 ms │     no change │
│ QQuery 15 │  54.37 ms │  54.41 ms │     no change │
│ QQuery 16 │  11.52 ms │  11.91 ms │     no change │
│ QQuery 17 │ 115.87 ms │ 112.03 ms │     no change │
│ QQuery 18 │ 100.95 ms │  99.13 ms │     no change │
│ QQuery 19 │ 265.69 ms │ 268.27 ms │     no change │
│ QQuery 20 │ 600.68 ms │ 538.05 ms │ +1.12x faster │
│ QQuery 21 │  91.93 ms │  91.18 ms │     no change │
│ QQuery 22 │ 103.52 ms │ 101.14 ms │     no change │
│ QQuery 23 │ 108.02 ms │ 104.98 ms │     no change │
│ QQuery 24 │  25.59 ms │  25.02 ms │     no change │
│ QQuery 25 │  64.69 ms │  66.35 ms │     no change │
│ QQuery 26 │ 106.33 ms │ 103.56 ms │     no change │
└───────────┴───────────┴───────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary        ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)        │ 2431.91ms │
│ Total Time (smj-27910)   │ 2290.15ms │
│ Average Time (HEAD)      │   93.53ms │
│ Average Time (smj-27910) │   88.08ms │
│ Queries Faster           │         7 │
│ Queries Slower           │         0 │
│ Queries with No Change   │        19 │
│ Queries with Failure     │         0 │
└──────────────────────────┴───────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and smj-27910
--------------------
Benchmark smj.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                              HEAD ┃                         smj-27910 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │       8.45 / 8.68 ±0.29 / 9.21 ms │       8.59 / 8.83 ±0.23 / 9.14 ms │     no change │
│ QQuery 2  │    88.69 / 90.01 ±0.90 / 91.04 ms │    75.13 / 76.03 ±0.82 / 77.48 ms │ +1.18x faster │
│ QQuery 3  │    37.87 / 38.89 ±1.21 / 41.05 ms │    33.40 / 34.05 ±0.36 / 34.38 ms │ +1.14x faster │
│ QQuery 4  │    25.50 / 25.78 ±0.23 / 26.10 ms │    24.83 / 24.95 ±0.09 / 25.07 ms │     no change │
│ QQuery 5  │    11.94 / 12.33 ±0.22 / 12.58 ms │    10.47 / 10.89 ±0.28 / 11.31 ms │ +1.13x faster │
│ QQuery 6  │    87.78 / 88.77 ±0.74 / 89.91 ms │    74.44 / 77.22 ±2.62 / 81.21 ms │ +1.15x faster │
│ QQuery 7  │ 105.67 / 106.21 ±0.44 / 106.94 ms │    91.59 / 92.25 ±0.42 / 92.72 ms │ +1.15x faster │
│ QQuery 8  │    15.24 / 15.48 ±0.21 / 15.84 ms │    15.09 / 15.59 ±0.46 / 16.36 ms │     no change │
│ QQuery 9  │ 111.80 / 113.02 ±1.29 / 114.98 ms │  93.92 / 100.15 ±5.14 / 107.93 ms │ +1.13x faster │
│ QQuery 10 │    54.61 / 55.08 ±0.38 / 55.50 ms │    54.60 / 55.16 ±0.50 / 55.77 ms │     no change │
│ QQuery 11 │    24.87 / 25.34 ±0.42 / 25.89 ms │    24.62 / 24.98 ±0.35 / 25.48 ms │     no change │
│ QQuery 12 │    60.20 / 64.34 ±2.13 / 66.13 ms │    59.98 / 64.44 ±3.04 / 69.36 ms │     no change │
│ QQuery 13 │  95.80 / 102.35 ±4.56 / 107.79 ms │  93.02 / 101.56 ±6.70 / 107.21 ms │     no change │
│ QQuery 14 │    54.33 / 55.52 ±1.61 / 58.71 ms │    54.44 / 54.93 ±0.50 / 55.55 ms │     no change │
│ QQuery 15 │    54.37 / 54.59 ±0.24 / 55.04 ms │    54.41 / 57.03 ±4.16 / 65.33 ms │     no change │
│ QQuery 16 │    11.52 / 11.88 ±0.32 / 12.33 ms │    11.91 / 12.21 ±0.29 / 12.56 ms │     no change │
│ QQuery 17 │ 115.87 / 116.74 ±0.58 / 117.60 ms │ 112.03 / 113.74 ±1.85 / 116.07 ms │     no change │
│ QQuery 18 │ 100.95 / 102.65 ±1.52 / 104.70 ms │  99.13 / 100.39 ±1.19 / 102.29 ms │     no change │
│ QQuery 19 │ 265.69 / 275.01 ±8.36 / 287.18 ms │ 268.27 / 275.09 ±5.95 / 285.08 ms │     no change │
│ QQuery 20 │ 600.68 / 606.13 ±4.58 / 614.50 ms │ 538.05 / 545.48 ±8.29 / 560.91 ms │ +1.11x faster │
│ QQuery 21 │   91.93 / 98.12 ±6.80 / 111.36 ms │    91.18 / 93.58 ±2.05 / 97.38 ms │     no change │
│ QQuery 22 │ 103.52 / 104.60 ±1.15 / 106.69 ms │ 101.14 / 103.29 ±3.38 / 109.90 ms │     no change │
│ QQuery 23 │ 108.02 / 109.33 ±1.59 / 112.41 ms │ 104.98 / 107.24 ±2.34 / 111.71 ms │     no change │
│ QQuery 24 │    25.59 / 26.01 ±0.36 / 26.52 ms │    25.02 / 25.53 ±0.30 / 25.84 ms │     no change │
│ QQuery 25 │    64.69 / 69.07 ±4.76 / 77.65 ms │    66.35 / 72.01 ±4.38 / 79.54 ms │     no change │
│ QQuery 26 │ 106.33 / 109.84 ±2.60 / 114.12 ms │ 103.56 / 108.12 ±2.61 / 110.83 ms │     no change │
└───────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary        ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)        │ 2485.73ms │
│ Total Time (smj-27910)   │ 2354.75ms │
│ Average Time (HEAD)      │   95.61ms │
│ Average Time (smj-27910) │   90.57ms │
│ Queries Faster           │         7 │
│ Queries Slower           │         0 │
│ Queries with No Change   │        19 │
│ Queries with Failure     │         0 │
└──────────────────────────┴───────────┘

Resource Usage

smj — base (merge-base)

Metric Value
Wall time 15.0s
Peak memory 1.1 GiB
Avg memory 423.2 MiB
CPU user 89.2s
CPU sys 2.9s
Peak spill 0 B

smj — branch

Metric Value
Wall time 15.0s
Peak memory 1.1 GiB
Avg memory 437.0 MiB
CPU user 88.0s
CPU sys 2.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)

Comparing smj-27910 (b255dd5) to 5184bdd (merge-base) diff

Run configuration
run benchmark tpcds
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark tpch tpcds smj
```
env:
    PREFER_HASH_JOIN: false
```
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 smj-27910
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃       HEAD ┃  smj-27910 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │    5.41 ms │    5.28 ms │     no change │
│ QQuery 2  │   78.25 ms │   77.59 ms │     no change │
│ QQuery 3  │   28.04 ms │   27.69 ms │     no change │
│ QQuery 4  │  425.69 ms │  409.74 ms │     no change │
│ QQuery 5  │   49.17 ms │   48.61 ms │     no change │
│ QQuery 6  │   33.76 ms │   33.72 ms │     no change │
│ QQuery 7  │   72.22 ms │   71.13 ms │     no change │
│ QQuery 8  │   37.07 ms │   37.01 ms │     no change │
│ QQuery 9  │   51.87 ms │   51.06 ms │     no change │
│ QQuery 10 │   59.93 ms │   58.90 ms │     no change │
│ QQuery 11 │  260.93 ms │  259.96 ms │     no change │
│ QQuery 12 │   28.03 ms │   27.76 ms │     no change │
│ QQuery 13 │  112.50 ms │  113.17 ms │     no change │
│ QQuery 14 │  370.69 ms │  364.54 ms │     no change │
│ QQuery 15 │   52.46 ms │   52.50 ms │     no change │
│ QQuery 16 │    5.84 ms │    5.78 ms │     no change │
│ QQuery 17 │   74.87 ms │   73.54 ms │     no change │
│ QQuery 18 │  102.39 ms │  101.07 ms │     no change │
│ QQuery 19 │   40.53 ms │   39.85 ms │     no change │
│ QQuery 20 │   34.77 ms │   35.42 ms │     no change │
│ QQuery 21 │   16.71 ms │   16.05 ms │     no change │
│ QQuery 22 │   61.05 ms │   60.72 ms │     no change │
│ QQuery 23 │  284.63 ms │  284.07 ms │     no change │
│ QQuery 24 │  185.08 ms │  182.75 ms │     no change │
│ QQuery 25 │  102.55 ms │  102.48 ms │     no change │
│ QQuery 26 │   45.57 ms │   45.47 ms │     no change │
│ QQuery 27 │    4.89 ms │    4.86 ms │     no change │
│ QQuery 28 │   57.68 ms │   59.16 ms │     no change │
│ QQuery 29 │   90.08 ms │   90.43 ms │     no change │
│ QQuery 30 │   31.21 ms │   31.05 ms │     no change │
│ QQuery 31 │  104.42 ms │  105.64 ms │     no change │
│ QQuery 32 │   19.09 ms │   19.07 ms │     no change │
│ QQuery 33 │   36.03 ms │   35.74 ms │     no change │
│ QQuery 34 │    5.52 ms │    5.38 ms │     no change │
│ QQuery 35 │   69.14 ms │   68.99 ms │     no change │
│ QQuery 36 │    5.35 ms │    5.36 ms │     no change │
│ QQuery 37 │    6.84 ms │    6.83 ms │     no change │
│ QQuery 38 │   59.73 ms │   59.46 ms │     no change │
│ QQuery 39 │   71.88 ms │   70.32 ms │     no change │
│ QQuery 40 │   22.14 ms │   21.76 ms │     no change │
│ QQuery 41 │   12.36 ms │   12.16 ms │     no change │
│ QQuery 42 │   23.29 ms │   23.29 ms │     no change │
│ QQuery 43 │    4.41 ms │    4.34 ms │     no change │
│ QQuery 44 │    5.44 ms │    5.31 ms │     no change │
│ QQuery 45 │   34.98 ms │   35.40 ms │     no change │
│ QQuery 46 │    6.43 ms │    6.41 ms │     no change │
│ QQuery 47 │  212.41 ms │  209.02 ms │     no change │
│ QQuery 48 │   91.75 ms │   91.92 ms │     no change │
│ QQuery 49 │   70.91 ms │   68.51 ms │     no change │
│ QQuery 50 │   56.23 ms │   55.50 ms │     no change │
│ QQuery 51 │   92.90 ms │   91.59 ms │     no change │
│ QQuery 52 │   24.10 ms │   23.65 ms │     no change │
│ QQuery 53 │   29.30 ms │   29.00 ms │     no change │
│ QQuery 54 │   56.45 ms │   55.43 ms │     no change │
│ QQuery 55 │   23.50 ms │   22.89 ms │     no change │
│ QQuery 56 │   37.48 ms │   37.19 ms │     no change │
│ QQuery 57 │  161.96 ms │  160.39 ms │     no change │
│ QQuery 58 │  103.32 ms │  102.52 ms │     no change │
│ QQuery 59 │  114.27 ms │  113.29 ms │     no change │
│ QQuery 60 │   37.06 ms │   36.74 ms │     no change │
│ QQuery 61 │    8.91 ms │    8.67 ms │     no change │
│ QQuery 62 │   42.28 ms │   41.86 ms │     no change │
│ QQuery 63 │   28.34 ms │   28.75 ms │     no change │
│ QQuery 64 │  247.02 ms │  247.19 ms │     no change │
│ QQuery 65 │   65.05 ms │   65.49 ms │     no change │
│ QQuery 66 │   72.64 ms │   71.48 ms │     no change │
│ QQuery 67 │  214.01 ms │  213.83 ms │     no change │
│ QQuery 68 │    6.48 ms │    6.39 ms │     no change │
│ QQuery 69 │   55.56 ms │   54.52 ms │     no change │
│ QQuery 70 │   77.60 ms │   77.99 ms │     no change │
│ QQuery 71 │   34.09 ms │   34.13 ms │     no change │
│ QQuery 72 │ 1516.25 ms │ 1518.23 ms │     no change │
│ QQuery 73 │    5.29 ms │    5.37 ms │     no change │
│ QQuery 74 │  149.43 ms │  147.44 ms │     no change │
│ QQuery 75 │  132.16 ms │  132.06 ms │     no change │
│ QQuery 76 │   33.09 ms │   33.28 ms │     no change │
│ QQuery 77 │   59.43 ms │   58.41 ms │     no change │
│ QQuery 78 │  254.93 ms │  259.37 ms │     no change │
│ QQuery 79 │   68.52 ms │   68.44 ms │     no change │
│ QQuery 80 │   91.61 ms │   91.40 ms │     no change │
│ QQuery 81 │   25.40 ms │   25.04 ms │     no change │
│ QQuery 82 │   16.12 ms │   15.94 ms │     no change │
│ QQuery 83 │   32.09 ms │   31.47 ms │     no change │
│ QQuery 84 │   28.97 ms │   28.32 ms │     no change │
│ QQuery 85 │   96.99 ms │   95.73 ms │     no change │
│ QQuery 86 │   25.01 ms │   24.60 ms │     no change │
│ QQuery 87 │   59.60 ms │   59.26 ms │     no change │
│ QQuery 88 │   58.76 ms │   59.50 ms │     no change │
│ QQuery 89 │   34.11 ms │   33.76 ms │     no change │
│ QQuery 90 │   15.75 ms │   15.79 ms │     no change │
│ QQuery 91 │   40.39 ms │   40.11 ms │     no change │
│ QQuery 92 │   29.42 ms │   27.93 ms │ +1.05x faster │
│ QQuery 93 │   47.84 ms │   47.96 ms │     no change │
│ QQuery 94 │   37.05 ms │   36.74 ms │     no change │
│ QQuery 95 │   77.09 ms │   77.64 ms │     no change │
│ QQuery 96 │   23.16 ms │   23.03 ms │     no change │
│ QQuery 97 │   49.33 ms │   49.86 ms │     no change │
│ QQuery 98 │   41.68 ms │   41.23 ms │     no change │
│ QQuery 99 │   62.68 ms │   63.98 ms │     no change │
└───────────┴────────────┴────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary        ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)        │ 8366.67ms │
│ Total Time (smj-27910)   │ 8316.65ms │
│ Average Time (HEAD)      │   84.51ms │
│ Average Time (smj-27910) │   84.01ms │
│ Queries Faster           │         1 │
│ Queries Slower           │         0 │
│ Queries with No Change   │        98 │
│ Queries with Failure     │         0 │
└──────────────────────────┴───────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and smj-27910
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                             smj-27910 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.41 / 6.05 ±0.99 / 8.00 ms │           5.28 / 5.80 ±0.98 / 7.75 ms │     no change │
│ QQuery 2  │        78.25 / 78.60 ±0.28 / 79.07 ms │        77.59 / 77.91 ±0.25 / 78.21 ms │     no change │
│ QQuery 3  │        28.04 / 28.39 ±0.23 / 28.72 ms │        27.69 / 27.89 ±0.19 / 28.21 ms │     no change │
│ QQuery 4  │     425.69 / 433.34 ±5.35 / 439.97 ms │     409.74 / 417.09 ±3.91 / 420.87 ms │     no change │
│ QQuery 5  │        49.17 / 49.44 ±0.24 / 49.79 ms │        48.61 / 49.24 ±0.41 / 49.77 ms │     no change │
│ QQuery 6  │        33.76 / 36.08 ±3.37 / 42.72 ms │        33.72 / 35.72 ±3.07 / 41.81 ms │     no change │
│ QQuery 7  │        72.22 / 73.13 ±0.78 / 74.42 ms │        71.13 / 72.11 ±1.19 / 74.28 ms │     no change │
│ QQuery 8  │        37.07 / 37.42 ±0.21 / 37.74 ms │        37.01 / 37.18 ±0.12 / 37.29 ms │     no change │
│ QQuery 9  │        51.87 / 53.16 ±0.94 / 54.64 ms │        51.06 / 52.73 ±1.29 / 54.26 ms │     no change │
│ QQuery 10 │        59.93 / 61.81 ±2.87 / 67.50 ms │        58.90 / 61.49 ±3.86 / 69.17 ms │     no change │
│ QQuery 11 │     260.93 / 265.04 ±3.61 / 270.78 ms │     259.96 / 264.03 ±3.51 / 270.15 ms │     no change │
│ QQuery 12 │        28.03 / 28.66 ±0.39 / 29.25 ms │        27.76 / 28.07 ±0.45 / 28.95 ms │     no change │
│ QQuery 13 │     112.50 / 114.70 ±2.53 / 119.60 ms │     113.17 / 114.91 ±2.50 / 119.81 ms │     no change │
│ QQuery 14 │     370.69 / 371.92 ±0.88 / 372.97 ms │     364.54 / 366.42 ±1.61 / 368.84 ms │     no change │
│ QQuery 15 │        52.46 / 54.14 ±1.42 / 56.76 ms │        52.50 / 53.70 ±1.61 / 56.87 ms │     no change │
│ QQuery 16 │           5.84 / 6.02 ±0.26 / 6.53 ms │           5.78 / 5.93 ±0.21 / 6.35 ms │     no change │
│ QQuery 17 │        74.87 / 75.72 ±0.60 / 76.68 ms │        73.54 / 74.62 ±0.63 / 75.47 ms │     no change │
│ QQuery 18 │     102.39 / 104.58 ±2.07 / 108.43 ms │     101.07 / 102.70 ±1.24 / 104.14 ms │     no change │
│ QQuery 19 │        40.53 / 41.16 ±0.41 / 41.65 ms │        39.85 / 40.61 ±0.52 / 41.43 ms │     no change │
│ QQuery 20 │        34.77 / 35.37 ±0.43 / 35.91 ms │        35.42 / 35.94 ±0.41 / 36.43 ms │     no change │
│ QQuery 21 │        16.71 / 16.88 ±0.13 / 17.04 ms │        16.05 / 16.37 ±0.25 / 16.81 ms │     no change │
│ QQuery 22 │        61.05 / 61.98 ±0.59 / 62.91 ms │        60.72 / 61.71 ±0.56 / 62.23 ms │     no change │
│ QQuery 23 │     284.63 / 289.04 ±2.45 / 291.20 ms │     284.07 / 287.99 ±2.99 / 292.92 ms │     no change │
│ QQuery 24 │     185.08 / 187.98 ±4.39 / 196.71 ms │     182.75 / 184.26 ±1.90 / 187.91 ms │     no change │
│ QQuery 25 │     102.55 / 103.89 ±1.52 / 106.72 ms │     102.48 / 103.43 ±0.80 / 104.87 ms │     no change │
│ QQuery 26 │        45.57 / 46.06 ±0.44 / 46.75 ms │        45.47 / 46.28 ±0.89 / 47.94 ms │     no change │
│ QQuery 27 │           4.89 / 5.05 ±0.21 / 5.47 ms │           4.86 / 5.01 ±0.23 / 5.47 ms │     no change │
│ QQuery 28 │        57.68 / 63.49 ±3.84 / 69.74 ms │        59.16 / 63.24 ±3.42 / 69.48 ms │     no change │
│ QQuery 29 │        90.08 / 91.58 ±1.28 / 93.39 ms │        90.43 / 91.81 ±1.20 / 93.50 ms │     no change │
│ QQuery 30 │        31.21 / 31.71 ±0.29 / 32.09 ms │        31.05 / 31.56 ±0.31 / 31.97 ms │     no change │
│ QQuery 31 │     104.42 / 106.32 ±1.32 / 108.00 ms │     105.64 / 107.52 ±2.29 / 111.85 ms │     no change │
│ QQuery 32 │        19.09 / 19.43 ±0.26 / 19.78 ms │        19.07 / 19.34 ±0.42 / 20.17 ms │     no change │
│ QQuery 33 │        36.03 / 36.50 ±0.26 / 36.77 ms │        35.74 / 35.97 ±0.23 / 36.27 ms │     no change │
│ QQuery 34 │           5.52 / 5.74 ±0.25 / 6.23 ms │           5.38 / 5.55 ±0.21 / 5.95 ms │     no change │
│ QQuery 35 │        69.14 / 71.58 ±2.82 / 76.69 ms │        68.99 / 70.00 ±1.03 / 71.91 ms │     no change │
│ QQuery 36 │           5.35 / 5.54 ±0.26 / 6.05 ms │          5.36 / 6.72 ±2.36 / 11.42 ms │  1.21x slower │
│ QQuery 37 │           6.84 / 7.09 ±0.20 / 7.39 ms │           6.83 / 7.03 ±0.23 / 7.45 ms │     no change │
│ QQuery 38 │        59.73 / 60.08 ±0.23 / 60.35 ms │        59.46 / 60.30 ±0.60 / 61.11 ms │     no change │
│ QQuery 39 │        71.88 / 72.56 ±0.52 / 73.40 ms │        70.32 / 71.22 ±0.70 / 72.41 ms │     no change │
│ QQuery 40 │        22.14 / 22.51 ±0.37 / 23.17 ms │        21.76 / 22.49 ±0.69 / 23.73 ms │     no change │
│ QQuery 41 │        12.36 / 12.45 ±0.09 / 12.60 ms │        12.16 / 12.33 ±0.15 / 12.59 ms │     no change │
│ QQuery 42 │        23.29 / 24.88 ±2.24 / 29.34 ms │        23.29 / 24.62 ±1.91 / 28.38 ms │     no change │
│ QQuery 43 │           4.41 / 4.56 ±0.22 / 5.00 ms │           4.34 / 4.49 ±0.24 / 4.97 ms │     no change │
│ QQuery 44 │           5.44 / 5.50 ±0.11 / 5.71 ms │           5.31 / 5.41 ±0.10 / 5.61 ms │     no change │
│ QQuery 45 │        34.98 / 35.66 ±0.61 / 36.47 ms │        35.40 / 35.92 ±0.31 / 36.28 ms │     no change │
│ QQuery 46 │           6.43 / 6.51 ±0.13 / 6.77 ms │           6.41 / 6.50 ±0.10 / 6.70 ms │     no change │
│ QQuery 47 │     212.41 / 216.03 ±4.19 / 224.03 ms │     209.02 / 211.71 ±2.04 / 215.35 ms │     no change │
│ QQuery 48 │        91.75 / 92.67 ±0.57 / 93.29 ms │        91.92 / 92.22 ±0.27 / 92.57 ms │     no change │
│ QQuery 49 │        70.91 / 71.66 ±0.38 / 71.91 ms │        68.51 / 69.21 ±0.57 / 70.05 ms │     no change │
│ QQuery 50 │        56.23 / 57.04 ±0.81 / 58.29 ms │        55.50 / 56.05 ±0.31 / 56.35 ms │     no change │
│ QQuery 51 │        92.90 / 94.14 ±1.13 / 95.59 ms │        91.59 / 93.91 ±1.19 / 94.89 ms │     no change │
│ QQuery 52 │        24.10 / 25.56 ±2.34 / 30.18 ms │        23.65 / 23.94 ±0.24 / 24.35 ms │ +1.07x faster │
│ QQuery 53 │        29.30 / 29.60 ±0.30 / 30.13 ms │        29.00 / 30.33 ±2.26 / 34.85 ms │     no change │
│ QQuery 54 │        56.45 / 56.79 ±0.27 / 57.23 ms │        55.43 / 55.81 ±0.32 / 56.16 ms │     no change │
│ QQuery 55 │        23.50 / 23.71 ±0.22 / 24.12 ms │        22.89 / 23.06 ±0.09 / 23.13 ms │     no change │
│ QQuery 56 │        37.48 / 37.87 ±0.29 / 38.20 ms │        37.19 / 37.40 ±0.21 / 37.78 ms │     no change │
│ QQuery 57 │     161.96 / 164.77 ±2.51 / 169.04 ms │     160.39 / 163.70 ±2.49 / 168.12 ms │     no change │
│ QQuery 58 │     103.32 / 105.17 ±2.95 / 111.04 ms │     102.52 / 104.46 ±2.04 / 108.35 ms │     no change │
│ QQuery 59 │     114.27 / 114.62 ±0.29 / 115.03 ms │     113.29 / 113.77 ±0.42 / 114.38 ms │     no change │
│ QQuery 60 │        37.06 / 37.20 ±0.11 / 37.34 ms │        36.74 / 37.39 ±0.58 / 38.30 ms │     no change │
│ QQuery 61 │           8.91 / 9.07 ±0.20 / 9.46 ms │           8.67 / 8.82 ±0.23 / 9.28 ms │     no change │
│ QQuery 62 │        42.28 / 43.59 ±2.20 / 47.98 ms │        41.86 / 43.74 ±2.46 / 48.60 ms │     no change │
│ QQuery 63 │        28.34 / 28.94 ±0.61 / 30.04 ms │        28.75 / 29.15 ±0.26 / 29.39 ms │     no change │
│ QQuery 64 │     247.02 / 249.99 ±2.29 / 253.79 ms │     247.19 / 253.17 ±3.81 / 258.53 ms │     no change │
│ QQuery 65 │        65.05 / 66.20 ±1.01 / 68.00 ms │        65.49 / 66.41 ±1.20 / 68.78 ms │     no change │
│ QQuery 66 │        72.64 / 72.85 ±0.14 / 73.03 ms │        71.48 / 74.73 ±3.72 / 81.91 ms │     no change │
│ QQuery 67 │     214.01 / 216.54 ±1.97 / 219.89 ms │     213.83 / 218.10 ±3.88 / 222.64 ms │     no change │
│ QQuery 68 │           6.48 / 6.64 ±0.23 / 7.10 ms │           6.39 / 6.56 ±0.24 / 7.03 ms │     no change │
│ QQuery 69 │        55.56 / 56.70 ±0.72 / 57.77 ms │        54.52 / 55.17 ±0.46 / 55.68 ms │     no change │
│ QQuery 70 │        77.60 / 80.52 ±3.30 / 84.68 ms │        77.99 / 78.47 ±0.56 / 79.36 ms │     no change │
│ QQuery 71 │        34.09 / 34.75 ±0.43 / 35.39 ms │        34.13 / 35.72 ±2.50 / 40.70 ms │     no change │
│ QQuery 72 │ 1516.25 / 1532.82 ±17.03 / 1553.96 ms │ 1518.23 / 1585.66 ±42.37 / 1639.42 ms │     no change │
│ QQuery 73 │           5.29 / 5.47 ±0.23 / 5.92 ms │           5.37 / 5.51 ±0.22 / 5.94 ms │     no change │
│ QQuery 74 │     149.43 / 150.83 ±1.35 / 153.17 ms │     147.44 / 152.87 ±3.48 / 157.56 ms │     no change │
│ QQuery 75 │     132.16 / 134.74 ±4.00 / 142.71 ms │     132.06 / 134.71 ±2.25 / 137.63 ms │     no change │
│ QQuery 76 │        33.09 / 33.38 ±0.25 / 33.73 ms │        33.28 / 33.40 ±0.09 / 33.52 ms │     no change │
│ QQuery 77 │        59.43 / 59.75 ±0.37 / 60.47 ms │        58.41 / 59.15 ±0.71 / 60.50 ms │     no change │
│ QQuery 78 │    254.93 / 274.45 ±17.24 / 300.54 ms │    259.37 / 269.62 ±12.34 / 293.55 ms │     no change │
│ QQuery 79 │        68.52 / 69.10 ±0.53 / 70.02 ms │        68.44 / 68.84 ±0.36 / 69.48 ms │     no change │
│ QQuery 80 │       91.61 / 94.91 ±3.88 / 102.38 ms │        91.40 / 94.15 ±2.50 / 97.52 ms │     no change │
│ QQuery 81 │        25.40 / 27.13 ±2.91 / 32.93 ms │        25.04 / 25.46 ±0.25 / 25.81 ms │ +1.07x faster │
│ QQuery 82 │        16.12 / 16.62 ±0.28 / 16.92 ms │        15.94 / 16.13 ±0.27 / 16.67 ms │     no change │
│ QQuery 83 │        32.09 / 32.37 ±0.21 / 32.72 ms │        31.47 / 31.75 ±0.27 / 32.20 ms │     no change │
│ QQuery 84 │        28.97 / 29.33 ±0.37 / 29.88 ms │        28.32 / 28.53 ±0.21 / 28.92 ms │     no change │
│ QQuery 85 │        96.99 / 98.60 ±0.91 / 99.51 ms │       95.73 / 99.01 ±2.60 / 103.72 ms │     no change │
│ QQuery 86 │        25.01 / 26.74 ±1.78 / 29.88 ms │        24.60 / 25.03 ±0.43 / 25.67 ms │ +1.07x faster │
│ QQuery 87 │        59.60 / 59.98 ±0.34 / 60.52 ms │        59.26 / 59.70 ±0.26 / 59.99 ms │     no change │
│ QQuery 88 │        58.76 / 59.77 ±1.06 / 61.78 ms │        59.50 / 60.22 ±0.93 / 62.03 ms │     no change │
│ QQuery 89 │        34.11 / 34.49 ±0.38 / 35.07 ms │        33.76 / 35.09 ±2.17 / 39.40 ms │     no change │
│ QQuery 90 │        15.75 / 15.97 ±0.25 / 16.44 ms │        15.79 / 16.00 ±0.17 / 16.29 ms │     no change │
│ QQuery 91 │        40.39 / 41.95 ±2.27 / 46.44 ms │        40.11 / 40.53 ±0.30 / 41.04 ms │     no change │
│ QQuery 92 │        29.42 / 29.67 ±0.24 / 29.99 ms │        27.93 / 28.47 ±0.80 / 30.03 ms │     no change │
│ QQuery 93 │        47.84 / 48.93 ±0.58 / 49.41 ms │        47.96 / 49.08 ±0.72 / 50.06 ms │     no change │
│ QQuery 94 │        37.05 / 37.83 ±0.66 / 39.01 ms │        36.74 / 37.97 ±1.36 / 40.56 ms │     no change │
│ QQuery 95 │        77.09 / 78.79 ±1.83 / 81.93 ms │        77.64 / 79.69 ±1.68 / 82.73 ms │     no change │
│ QQuery 96 │        23.16 / 23.47 ±0.28 / 23.88 ms │        23.03 / 23.38 ±0.27 / 23.74 ms │     no change │
│ QQuery 97 │        49.33 / 50.10 ±0.95 / 51.96 ms │        49.86 / 50.56 ±0.68 / 51.60 ms │     no change │
│ QQuery 98 │        41.68 / 42.31 ±0.57 / 43.09 ms │        41.23 / 41.72 ±0.67 / 43.06 ms │     no change │
│ QQuery 99 │        62.68 / 64.33 ±2.64 / 69.61 ms │        63.98 / 65.01 ±1.43 / 67.70 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary        ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)        │ 8515.76ms │
│ Total Time (smj-27910)   │ 8511.41ms │
│ Average Time (HEAD)      │   86.02ms │
│ Average Time (smj-27910) │   85.97ms │
│ Queries Faster           │         3 │
│ Queries Slower           │         1 │
│ Queries with No Change   │        95 │
│ Queries with Failure     │         0 │
└──────────────────────────┴───────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 45.0s
Peak memory 2.2 GiB
Avg memory 1.5 GiB
CPU user 177.4s
CPU sys 4.7s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 45.0s
Peak memory 2.3 GiB
Avg memory 1.6 GiB
CPU user 177.8s
CPU sys 4.9s
Peak spill 0 B

File an issue against this benchmark runner

@comphead

comphead commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark

@adriangbot

Copy link
Copy Markdown

Hi @comphead, run benchmark requires benchmark names (#27928 (comment)).

Usage:

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

Any benchmark name is accepted: bench.sh suite names (e.g. tpch, clickbench_partitioned, wide_schema) and Criterion bench targets (e.g. sql_planner) are resolved automatically. A name that matches neither fails on the runner.

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

env:
# shared env is inherited by BOTH the build and the run, so build
# flags go here. Builds default to no debuginfo for speed; opt back
# in for hung-job gdb dumps and cap jobs to stay within memory:
CARGO_PROFILE_RELEASE_DEBUG: "1"
CARGO_BUILD_JOBS: "1"
baseline:
ref: v45.0.0
env:
# per-side env only reaches the benchmark run, not the build
DATAFUSION_RUNTIME_MEMORY_LIMIT: 1G
changed:
ref: v46.0.0
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: 2G

Pod size and CPU architecture (each key is optional and keeps the default when absent; requests and limits are set equal):

resources:
cpu: "16"
memory: "128Gi"
arch: arm64          # arm64 or amd64

Independent benchmark shards (optional; 1–8, default 1):

run benchmark arrow_writer
shards: 4

Each shard builds both revisions, measures its assigned cases, and posts its own report. Resources and the job deadline apply per shard. DataFusion requests specifying a shard count greater than 1 fail with an error. Omit shards or use shards: 1 for DataFusion.


File an issue against this benchmark runner

- Skip loading buffered batches when the join reads no buffered column.
- Share one `PairRun::continues` rule between the summary and the ranges.
- Copy ranges of primitive and byte columns and gather the other columns,
  instead of a separate `MutableArrayData` path and dictionary check.
- Repeat streamed rows by the number of streamed rows, not runs, and build
  their indices once.
- Remap the filter's buffered columns from the remapped filter.
- Reuse `SortMergeJoinExec::probe_side`, add `filter_indices` and
  `filter_columns`, and fold the dictionary test into the runs test.
…ranges

`join_left_copies_runs_of_several_batches` now also checks the key column,
which has no nulls of its own, and a new test keeps a null-joined pair that
passes the filter in the same freeze as a filtered run.
One-row ranges had a `collect_bool` path that measured no faster than the
builder loop (0.99x on `left_1to1_unmatched`), so the gather keeps one loop.
@comphead

comphead commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark smj tpch tpcds

env:
    PREFER_HASH_JOIN: false

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c7420841699-6224-9t5bg 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

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

Comparing smj-27910 (d7fab8a) to 5184bdd (merge-base) diff

Run configuration
run benchmark smj
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark smj tpch tpcds
```
env:
    PREFER_HASH_JOIN: false
```

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-c7420841699-6226-qftrs 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

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

Comparing smj-27910 (d7fab8a) to 5184bdd (merge-base) diff

Run configuration
run benchmark tpcds
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark smj tpch tpcds
```
env:
    PREFER_HASH_JOIN: false
```

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-c7420841699-6225-m5994 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

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

Comparing smj-27910 (d7fab8a) to 5184bdd (merge-base) diff

Run configuration
run benchmark tpch
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark smj tpch tpcds
```
env:
    PREFER_HASH_JOIN: false
```

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)

Comparing smj-27910 (d7fab8a) to 5184bdd (merge-base) diff

Run configuration
run benchmark smj
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark smj tpch tpcds
```
env:
    PREFER_HASH_JOIN: false
```
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 smj-27910
--------------------
Benchmark smj.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃      HEAD ┃ smj-27910 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │   8.40 ms │   8.47 ms │     no change │
│ QQuery 2  │  89.51 ms │  74.01 ms │ +1.21x faster │
│ QQuery 3  │  36.79 ms │  31.88 ms │ +1.15x faster │
│ QQuery 4  │  24.78 ms │  24.14 ms │     no change │
│ QQuery 5  │  11.62 ms │  10.04 ms │ +1.16x faster │
│ QQuery 6  │  88.25 ms │  73.27 ms │ +1.20x faster │
│ QQuery 7  │ 104.92 ms │  90.13 ms │ +1.16x faster │
│ QQuery 8  │  15.31 ms │  15.17 ms │     no change │
│ QQuery 9  │ 108.17 ms │  92.10 ms │ +1.17x faster │
│ QQuery 10 │  53.57 ms │  54.65 ms │     no change │
│ QQuery 11 │  24.75 ms │  23.90 ms │     no change │
│ QQuery 12 │  60.54 ms │  64.64 ms │  1.07x slower │
│ QQuery 13 │  91.18 ms │  98.55 ms │  1.08x slower │
│ QQuery 14 │  54.12 ms │  54.11 ms │     no change │
│ QQuery 15 │  54.19 ms │  54.21 ms │     no change │
│ QQuery 16 │  11.50 ms │  11.19 ms │     no change │
│ QQuery 17 │ 114.94 ms │ 110.43 ms │     no change │
│ QQuery 18 │  99.11 ms │  98.05 ms │     no change │
│ QQuery 19 │ 265.89 ms │ 268.80 ms │     no change │
│ QQuery 20 │ 602.54 ms │ 534.23 ms │ +1.13x faster │
│ QQuery 21 │  93.32 ms │  92.08 ms │     no change │
│ QQuery 22 │ 101.07 ms │  99.81 ms │     no change │
│ QQuery 23 │ 103.66 ms │ 106.35 ms │     no change │
│ QQuery 24 │  25.11 ms │  24.48 ms │     no change │
│ QQuery 25 │  66.18 ms │  64.79 ms │     no change │
│ QQuery 26 │  95.35 ms │  91.74 ms │     no change │
└───────────┴───────────┴───────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary        ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)        │ 2404.78ms │
│ Total Time (smj-27910)   │ 2271.21ms │
│ Average Time (HEAD)      │   92.49ms │
│ Average Time (smj-27910) │   87.35ms │
│ Queries Faster           │         7 │
│ Queries Slower           │         2 │
│ Queries with No Change   │        17 │
│ Queries with Failure     │         0 │
└──────────────────────────┴───────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and smj-27910
--------------------
Benchmark smj.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                              HEAD ┃                          smj-27910 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │       8.40 / 8.73 ±0.40 / 9.44 ms │        8.47 / 8.81 ±0.41 / 9.59 ms │     no change │
│ QQuery 2  │    89.51 / 90.73 ±1.11 / 92.77 ms │     74.01 / 74.88 ±0.87 / 76.47 ms │ +1.21x faster │
│ QQuery 3  │    36.79 / 37.97 ±1.33 / 40.37 ms │     31.88 / 32.46 ±0.57 / 33.29 ms │ +1.17x faster │
│ QQuery 4  │    24.78 / 25.20 ±0.25 / 25.54 ms │     24.14 / 24.55 ±0.27 / 24.88 ms │     no change │
│ QQuery 5  │    11.62 / 12.11 ±0.29 / 12.50 ms │     10.04 / 10.49 ±0.27 / 10.74 ms │ +1.15x faster │
│ QQuery 6  │    88.25 / 90.40 ±1.46 / 92.20 ms │     73.27 / 75.03 ±2.05 / 79.04 ms │ +1.20x faster │
│ QQuery 7  │ 104.92 / 105.67 ±0.48 / 106.43 ms │     90.13 / 90.78 ±0.41 / 91.41 ms │ +1.16x faster │
│ QQuery 8  │    15.31 / 15.80 ±0.39 / 16.32 ms │     15.17 / 15.65 ±0.49 / 16.30 ms │     no change │
│ QQuery 9  │ 108.17 / 109.81 ±1.49 / 112.19 ms │     92.10 / 94.13 ±1.64 / 96.79 ms │ +1.17x faster │
│ QQuery 10 │    53.57 / 54.38 ±0.41 / 54.69 ms │     54.65 / 55.06 ±0.29 / 55.47 ms │     no change │
│ QQuery 11 │    24.75 / 25.04 ±0.30 / 25.59 ms │     23.90 / 24.45 ±0.35 / 24.85 ms │     no change │
│ QQuery 12 │    60.54 / 65.09 ±2.74 / 67.76 ms │     64.64 / 67.48 ±2.04 / 69.92 ms │     no change │
│ QQuery 13 │   91.18 / 97.66 ±4.08 / 103.60 ms │   98.55 / 104.54 ±5.97 / 115.93 ms │  1.07x slower │
│ QQuery 14 │    54.12 / 54.57 ±0.35 / 55.10 ms │     54.11 / 54.98 ±0.50 / 55.60 ms │     no change │
│ QQuery 15 │    54.19 / 55.37 ±1.49 / 58.31 ms │     54.21 / 54.69 ±0.29 / 54.99 ms │     no change │
│ QQuery 16 │    11.50 / 11.69 ±0.13 / 11.85 ms │     11.19 / 13.89 ±4.20 / 22.25 ms │  1.19x slower │
│ QQuery 17 │ 114.94 / 115.89 ±0.85 / 117.48 ms │  110.43 / 111.13 ±0.69 / 112.04 ms │     no change │
│ QQuery 18 │   99.11 / 99.99 ±0.79 / 101.20 ms │   98.05 / 101.71 ±5.31 / 112.13 ms │     no change │
│ QQuery 19 │ 265.89 / 275.10 ±6.53 / 283.27 ms │  268.80 / 272.75 ±4.28 / 279.07 ms │     no change │
│ QQuery 20 │ 602.54 / 607.11 ±5.16 / 616.40 ms │ 534.23 / 547.02 ±16.29 / 579.19 ms │ +1.11x faster │
│ QQuery 21 │   93.32 / 97.22 ±6.28 / 109.68 ms │     92.08 / 93.48 ±0.76 / 94.26 ms │     no change │
│ QQuery 22 │ 101.07 / 102.78 ±1.64 / 105.72 ms │   99.81 / 102.88 ±2.25 / 106.73 ms │     no change │
│ QQuery 23 │ 103.66 / 106.25 ±1.41 / 107.66 ms │  106.35 / 107.78 ±0.98 / 109.42 ms │     no change │
│ QQuery 24 │    25.11 / 25.25 ±0.19 / 25.63 ms │     24.48 / 24.85 ±0.32 / 25.43 ms │     no change │
│ QQuery 25 │    66.18 / 70.02 ±2.60 / 73.89 ms │     64.79 / 68.00 ±2.42 / 71.72 ms │     no change │
│ QQuery 26 │  95.35 / 102.50 ±4.32 / 107.00 ms │   91.74 / 100.47 ±6.23 / 108.24 ms │     no change │
└───────────┴───────────────────────────────────┴────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary        ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)        │ 2462.33ms │
│ Total Time (smj-27910)   │ 2331.95ms │
│ Average Time (HEAD)      │   94.71ms │
│ Average Time (smj-27910) │   89.69ms │
│ Queries Faster           │         7 │
│ Queries Slower           │         2 │
│ Queries with No Change   │        17 │
│ Queries with Failure     │         0 │
└──────────────────────────┴───────────┘

Resource Usage

smj — base (merge-base)

Metric Value
Wall time 15.0s
Peak memory 1.1 GiB
Avg memory 424.1 MiB
CPU user 89.1s
CPU sys 3.0s
Peak spill 0 B

smj — branch

Metric Value
Wall time 15.0s
Peak memory 1.2 GiB
Avg memory 397.2 MiB
CPU user 79.6s
CPU sys 2.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)

Comparing smj-27910 (d7fab8a) to 5184bdd (merge-base) diff

Run configuration
run benchmark tpch
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark smj tpch tpcds
```
env:
    PREFER_HASH_JOIN: false
```
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 smj-27910
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Query     ┃     HEAD ┃ smj-27910 ┃    Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━┩
│ QQuery 1  │ 38.31 ms │  38.02 ms │ no change │
│ QQuery 2  │ 20.26 ms │  20.24 ms │ no change │
│ QQuery 3  │ 27.99 ms │  28.24 ms │ no change │
│ QQuery 4  │ 16.74 ms │  16.81 ms │ no change │
│ QQuery 5  │ 34.85 ms │  34.56 ms │ no change │
│ QQuery 6  │ 13.88 ms │  13.79 ms │ no change │
│ QQuery 7  │ 39.88 ms │  40.68 ms │ no change │
│ QQuery 8  │ 39.95 ms │  39.53 ms │ no change │
│ QQuery 9  │ 48.88 ms │  48.53 ms │ no change │
│ QQuery 10 │ 39.93 ms │  39.58 ms │ no change │
│ QQuery 11 │ 13.33 ms │  13.51 ms │ no change │
│ QQuery 12 │ 16.18 ms │  16.07 ms │ no change │
│ QQuery 13 │ 39.59 ms │  39.35 ms │ no change │
│ QQuery 14 │ 23.82 ms │  23.99 ms │ no change │
│ QQuery 15 │ 30.92 ms │  30.71 ms │ no change │
│ QQuery 16 │ 13.58 ms │  13.33 ms │ no change │
│ QQuery 17 │ 63.17 ms │  63.60 ms │ no change │
│ QQuery 18 │ 40.88 ms │  40.46 ms │ no change │
│ QQuery 19 │ 32.40 ms │  32.31 ms │ no change │
│ QQuery 20 │ 31.72 ms │  31.69 ms │ no change │
│ QQuery 21 │ 54.77 ms │  54.66 ms │ no change │
│ QQuery 22 │ 13.54 ms │  13.45 ms │ no change │
└───────────┴──────────┴───────────┴───────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary        ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)        │ 694.59ms │
│ Total Time (smj-27910)   │ 693.11ms │
│ Average Time (HEAD)      │  31.57ms │
│ Average Time (smj-27910) │  31.51ms │
│ Queries Faster           │        0 │
│ Queries Slower           │        0 │
│ Queries with No Change   │       22 │
│ Queries with Failure     │        0 │
└──────────────────────────┴──────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and smj-27910
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃                      smj-27910 ┃    Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ QQuery 1  │ 38.31 / 39.78 ±1.68 / 42.48 ms │ 38.02 / 38.90 ±0.99 / 40.83 ms │ no change │
│ QQuery 2  │ 20.26 / 20.53 ±0.29 / 21.08 ms │ 20.24 / 20.68 ±0.43 / 21.50 ms │ no change │
│ QQuery 3  │ 27.99 / 28.09 ±0.10 / 28.23 ms │ 28.24 / 28.47 ±0.25 / 28.95 ms │ no change │
│ QQuery 4  │ 16.74 / 16.91 ±0.09 / 16.99 ms │ 16.81 / 16.87 ±0.06 / 16.97 ms │ no change │
│ QQuery 5  │ 34.85 / 35.64 ±1.15 / 37.91 ms │ 34.56 / 34.85 ±0.30 / 35.36 ms │ no change │
│ QQuery 6  │ 13.88 / 13.97 ±0.09 / 14.14 ms │ 13.79 / 13.90 ±0.07 / 14.01 ms │ no change │
│ QQuery 7  │ 39.88 / 42.10 ±1.16 / 43.05 ms │ 40.68 / 41.90 ±0.80 / 42.72 ms │ no change │
│ QQuery 8  │ 39.95 / 41.65 ±1.87 / 45.11 ms │ 39.53 / 40.36 ±1.03 / 42.37 ms │ no change │
│ QQuery 9  │ 48.88 / 49.55 ±0.55 / 50.24 ms │ 48.53 / 49.43 ±0.96 / 51.22 ms │ no change │
│ QQuery 10 │ 39.93 / 40.13 ±0.19 / 40.37 ms │ 39.58 / 39.79 ±0.18 / 40.05 ms │ no change │
│ QQuery 11 │ 13.33 / 13.77 ±0.46 / 14.63 ms │ 13.51 / 13.62 ±0.06 / 13.70 ms │ no change │
│ QQuery 12 │ 16.18 / 16.28 ±0.09 / 16.42 ms │ 16.07 / 16.19 ±0.12 / 16.40 ms │ no change │
│ QQuery 13 │ 39.59 / 39.92 ±0.31 / 40.29 ms │ 39.35 / 39.64 ±0.25 / 40.09 ms │ no change │
│ QQuery 14 │ 23.82 / 25.04 ±2.27 / 29.59 ms │ 23.99 / 24.67 ±0.97 / 26.54 ms │ no change │
│ QQuery 15 │ 30.92 / 31.91 ±1.53 / 34.95 ms │ 30.71 / 31.19 ±0.59 / 32.33 ms │ no change │
│ QQuery 16 │ 13.58 / 13.78 ±0.16 / 14.04 ms │ 13.33 / 13.43 ±0.09 / 13.56 ms │ no change │
│ QQuery 17 │ 63.17 / 65.48 ±1.55 / 67.60 ms │ 63.60 / 64.48 ±0.67 / 65.36 ms │ no change │
│ QQuery 18 │ 40.88 / 41.52 ±0.60 / 42.65 ms │ 40.46 / 41.71 ±1.01 / 43.35 ms │ no change │
│ QQuery 19 │ 32.40 / 33.35 ±0.70 / 34.39 ms │ 32.31 / 32.67 ±0.34 / 33.30 ms │ no change │
│ QQuery 20 │ 31.72 / 31.96 ±0.16 / 32.18 ms │ 31.69 / 32.21 ±0.48 / 33.09 ms │ no change │
│ QQuery 21 │ 54.77 / 55.25 ±0.32 / 55.70 ms │ 54.66 / 55.42 ±0.58 / 56.19 ms │ no change │
│ QQuery 22 │ 13.54 / 13.72 ±0.15 / 13.93 ms │ 13.45 / 13.61 ±0.14 / 13.85 ms │ no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary        ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)        │ 710.32ms │
│ Total Time (smj-27910)   │ 704.01ms │
│ Average Time (HEAD)      │  32.29ms │
│ Average Time (smj-27910) │  32.00ms │
│ Queries Faster           │        0 │
│ Queries Slower           │        0 │
│ Queries with No Change   │       22 │
│ Queries with Failure     │        0 │
└──────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 1.1 GiB
Avg memory 473.6 MiB
CPU user 18.9s
CPU sys 1.6s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 1.2 GiB
Avg memory 479.4 MiB
CPU user 18.8s
CPU sys 1.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)

Comparing smj-27910 (d7fab8a) to 5184bdd (merge-base) diff

Run configuration
run benchmark tpcds
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark smj tpch tpcds
```
env:
    PREFER_HASH_JOIN: false
```
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 smj-27910
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Query     ┃       HEAD ┃  smj-27910 ┃    Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ QQuery 1  │    5.33 ms │    5.42 ms │ no change │
│ QQuery 2  │   77.12 ms │   77.89 ms │ no change │
│ QQuery 3  │   27.73 ms │   27.71 ms │ no change │
│ QQuery 4  │  411.55 ms │  414.78 ms │ no change │
│ QQuery 5  │   49.01 ms │   49.19 ms │ no change │
│ QQuery 6  │   33.61 ms │   33.89 ms │ no change │
│ QQuery 7  │   72.07 ms │   71.22 ms │ no change │
│ QQuery 8  │   36.84 ms │   36.53 ms │ no change │
│ QQuery 9  │   50.81 ms │   51.48 ms │ no change │
│ QQuery 10 │   59.08 ms │   58.94 ms │ no change │
│ QQuery 11 │  248.86 ms │  254.86 ms │ no change │
│ QQuery 12 │   27.30 ms │   28.32 ms │ no change │
│ QQuery 13 │  111.97 ms │  113.08 ms │ no change │
│ QQuery 14 │  365.34 ms │  369.78 ms │ no change │
│ QQuery 15 │   50.63 ms │   50.90 ms │ no change │
│ QQuery 16 │    5.82 ms │    5.82 ms │ no change │
│ QQuery 17 │   73.91 ms │   73.11 ms │ no change │
│ QQuery 18 │  101.39 ms │  100.71 ms │ no change │
│ QQuery 19 │   39.84 ms │   40.49 ms │ no change │
│ QQuery 20 │   34.39 ms │   34.08 ms │ no change │
│ QQuery 21 │   16.62 ms │   16.36 ms │ no change │
│ QQuery 22 │   60.97 ms │   61.21 ms │ no change │
│ QQuery 23 │  282.59 ms │  284.75 ms │ no change │
│ QQuery 24 │  182.53 ms │  183.35 ms │ no change │
│ QQuery 25 │  102.42 ms │  102.16 ms │ no change │
│ QQuery 26 │   45.45 ms │   44.87 ms │ no change │
│ QQuery 27 │    4.92 ms │    4.89 ms │ no change │
│ QQuery 28 │   57.96 ms │   57.41 ms │ no change │
│ QQuery 29 │   89.28 ms │   89.45 ms │ no change │
│ QQuery 30 │   31.07 ms │   31.21 ms │ no change │
│ QQuery 31 │  105.60 ms │  105.20 ms │ no change │
│ QQuery 32 │   18.81 ms │   18.97 ms │ no change │
│ QQuery 33 │   35.78 ms │   36.20 ms │ no change │
│ QQuery 34 │    5.45 ms │    5.63 ms │ no change │
│ QQuery 35 │   69.63 ms │   69.49 ms │ no change │
│ QQuery 36 │    5.29 ms │    5.46 ms │ no change │
│ QQuery 37 │    6.74 ms │    6.77 ms │ no change │
│ QQuery 38 │   58.99 ms │   59.00 ms │ no change │
│ QQuery 39 │   70.66 ms │   70.96 ms │ no change │
│ QQuery 40 │   21.22 ms │   21.94 ms │ no change │
│ QQuery 41 │   12.55 ms │   12.41 ms │ no change │
│ QQuery 42 │   23.40 ms │   23.21 ms │ no change │
│ QQuery 43 │    4.47 ms │    4.58 ms │ no change │
│ QQuery 44 │    5.41 ms │    5.54 ms │ no change │
│ QQuery 45 │   35.64 ms │   34.78 ms │ no change │
│ QQuery 46 │    6.47 ms │    6.57 ms │ no change │
│ QQuery 47 │  209.55 ms │  208.95 ms │ no change │
│ QQuery 48 │   91.61 ms │   91.56 ms │ no change │
│ QQuery 49 │   69.40 ms │   69.62 ms │ no change │
│ QQuery 50 │   55.70 ms │   55.68 ms │ no change │
│ QQuery 51 │   90.72 ms │   90.24 ms │ no change │
│ QQuery 52 │   23.66 ms │   23.17 ms │ no change │
│ QQuery 53 │   28.26 ms │   28.24 ms │ no change │
│ QQuery 54 │   54.28 ms │   54.30 ms │ no change │
│ QQuery 55 │   22.73 ms │   23.17 ms │ no change │
│ QQuery 56 │   36.64 ms │   36.77 ms │ no change │
│ QQuery 57 │  160.20 ms │  162.12 ms │ no change │
│ QQuery 58 │  102.79 ms │  103.32 ms │ no change │
│ QQuery 59 │  112.23 ms │  112.14 ms │ no change │
│ QQuery 60 │   37.05 ms │   36.87 ms │ no change │
│ QQuery 61 │    8.63 ms │    8.80 ms │ no change │
│ QQuery 62 │   41.85 ms │   41.81 ms │ no change │
│ QQuery 63 │   28.49 ms │   28.83 ms │ no change │
│ QQuery 64 │  245.48 ms │  246.46 ms │ no change │
│ QQuery 65 │   64.90 ms │   64.77 ms │ no change │
│ QQuery 66 │   72.70 ms │   72.03 ms │ no change │
│ QQuery 67 │  210.47 ms │  208.78 ms │ no change │
│ QQuery 68 │    6.27 ms │    6.37 ms │ no change │
│ QQuery 69 │   55.77 ms │   54.85 ms │ no change │
│ QQuery 70 │   77.23 ms │   76.80 ms │ no change │
│ QQuery 71 │   34.22 ms │   34.29 ms │ no change │
│ QQuery 72 │ 1572.87 ms │ 1551.23 ms │ no change │
│ QQuery 73 │    5.16 ms │    5.28 ms │ no change │
│ QQuery 74 │  149.28 ms │  152.90 ms │ no change │
│ QQuery 75 │  131.03 ms │  133.12 ms │ no change │
│ QQuery 76 │   33.03 ms │   33.79 ms │ no change │
│ QQuery 77 │   58.97 ms │   59.40 ms │ no change │
│ QQuery 78 │  256.14 ms │  263.53 ms │ no change │
│ QQuery 79 │   68.21 ms │   68.92 ms │ no change │
│ QQuery 80 │   91.96 ms │   91.93 ms │ no change │
│ QQuery 81 │   25.11 ms │   25.18 ms │ no change │
│ QQuery 82 │   15.88 ms │   16.40 ms │ no change │
│ QQuery 83 │   31.59 ms │   31.85 ms │ no change │
│ QQuery 84 │   28.20 ms │   28.59 ms │ no change │
│ QQuery 85 │   96.75 ms │   96.36 ms │ no change │
│ QQuery 86 │   23.85 ms │   23.79 ms │ no change │
│ QQuery 87 │   58.95 ms │   59.25 ms │ no change │
│ QQuery 88 │   58.32 ms │   58.53 ms │ no change │
│ QQuery 89 │   34.18 ms │   33.70 ms │ no change │
│ QQuery 90 │   15.54 ms │   15.59 ms │ no change │
│ QQuery 91 │   39.65 ms │   40.38 ms │ no change │
│ QQuery 92 │   27.63 ms │   28.16 ms │ no change │
│ QQuery 93 │   47.87 ms │   48.04 ms │ no change │
│ QQuery 94 │   36.87 ms │   37.34 ms │ no change │
│ QQuery 95 │   77.13 ms │   76.36 ms │ no change │
│ QQuery 96 │   23.09 ms │   23.19 ms │ no change │
│ QQuery 97 │   50.46 ms │   49.19 ms │ no change │
│ QQuery 98 │   42.03 ms │   42.21 ms │ no change │
│ QQuery 99 │   62.64 ms │   62.74 ms │ no change │
└───────────┴────────────┴────────────┴───────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary        ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)        │ 8345.67ms │
│ Total Time (smj-27910)   │ 8357.46ms │
│ Average Time (HEAD)      │   84.30ms │
│ Average Time (smj-27910) │   84.42ms │
│ Queries Faster           │         0 │
│ Queries Slower           │         0 │
│ Queries with No Change   │        99 │
│ Queries with Failure     │         0 │
└──────────────────────────┴───────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and smj-27910
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                             smj-27910 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.33 / 5.87 ±0.98 / 7.83 ms │           5.42 / 6.01 ±1.04 / 8.10 ms │     no change │
│ QQuery 2  │        77.12 / 77.58 ±0.38 / 78.02 ms │        77.89 / 78.03 ±0.10 / 78.17 ms │     no change │
│ QQuery 3  │        27.73 / 28.06 ±0.28 / 28.40 ms │        27.71 / 28.04 ±0.20 / 28.31 ms │     no change │
│ QQuery 4  │     411.55 / 414.06 ±1.97 / 416.43 ms │     414.78 / 423.53 ±8.24 / 438.08 ms │     no change │
│ QQuery 5  │        49.01 / 49.23 ±0.19 / 49.46 ms │        49.19 / 49.45 ±0.42 / 50.28 ms │     no change │
│ QQuery 6  │        33.61 / 34.40 ±0.77 / 35.52 ms │        33.89 / 35.64 ±2.70 / 40.99 ms │     no change │
│ QQuery 7  │        72.07 / 72.81 ±1.01 / 74.77 ms │        71.22 / 72.62 ±1.47 / 75.41 ms │     no change │
│ QQuery 8  │        36.84 / 37.22 ±0.46 / 38.12 ms │        36.53 / 37.04 ±0.34 / 37.43 ms │     no change │
│ QQuery 9  │        50.81 / 52.47 ±0.88 / 53.22 ms │        51.48 / 52.80 ±1.17 / 54.99 ms │     no change │
│ QQuery 10 │        59.08 / 60.97 ±2.59 / 66.05 ms │        58.94 / 60.18 ±0.87 / 61.61 ms │     no change │
│ QQuery 11 │     248.86 / 253.27 ±3.83 / 258.69 ms │     254.86 / 262.01 ±7.76 / 276.86 ms │     no change │
│ QQuery 12 │        27.30 / 27.83 ±0.32 / 28.25 ms │        28.32 / 28.70 ±0.28 / 29.16 ms │     no change │
│ QQuery 13 │     111.97 / 113.90 ±1.70 / 116.51 ms │     113.08 / 114.68 ±2.07 / 118.64 ms │     no change │
│ QQuery 14 │     365.34 / 368.85 ±2.48 / 371.69 ms │     369.78 / 372.38 ±3.32 / 378.32 ms │     no change │
│ QQuery 15 │        50.63 / 52.85 ±2.29 / 56.51 ms │        50.90 / 52.48 ±2.03 / 56.47 ms │     no change │
│ QQuery 16 │           5.82 / 6.25 ±0.26 / 6.48 ms │           5.82 / 5.94 ±0.17 / 6.27 ms │ +1.05x faster │
│ QQuery 17 │        73.91 / 75.75 ±2.59 / 80.83 ms │        73.11 / 74.42 ±0.70 / 75.04 ms │     no change │
│ QQuery 18 │     101.39 / 103.45 ±2.02 / 107.26 ms │     100.71 / 102.00 ±0.85 / 103.03 ms │     no change │
│ QQuery 19 │        39.84 / 40.52 ±0.45 / 41.12 ms │        40.49 / 41.73 ±1.34 / 44.29 ms │     no change │
│ QQuery 20 │        34.39 / 34.98 ±0.31 / 35.25 ms │        34.08 / 35.11 ±0.61 / 35.80 ms │     no change │
│ QQuery 21 │        16.62 / 16.83 ±0.22 / 17.26 ms │        16.36 / 16.64 ±0.24 / 17.00 ms │     no change │
│ QQuery 22 │        60.97 / 61.72 ±0.54 / 62.28 ms │        61.21 / 61.98 ±0.66 / 63.12 ms │     no change │
│ QQuery 23 │     282.59 / 288.06 ±3.76 / 293.27 ms │     284.75 / 287.87 ±3.05 / 293.13 ms │     no change │
│ QQuery 24 │     182.53 / 186.61 ±3.31 / 192.65 ms │     183.35 / 184.56 ±1.41 / 187.02 ms │     no change │
│ QQuery 25 │     102.42 / 103.29 ±0.73 / 104.33 ms │     102.16 / 103.40 ±1.12 / 105.45 ms │     no change │
│ QQuery 26 │        45.45 / 46.06 ±0.72 / 47.45 ms │        44.87 / 45.61 ±0.51 / 46.45 ms │     no change │
│ QQuery 27 │           4.92 / 5.06 ±0.15 / 5.30 ms │           4.89 / 5.02 ±0.15 / 5.29 ms │     no change │
│ QQuery 28 │        57.96 / 61.54 ±1.83 / 63.01 ms │        57.41 / 62.42 ±4.41 / 70.00 ms │     no change │
│ QQuery 29 │        89.28 / 91.26 ±2.11 / 94.85 ms │        89.45 / 91.12 ±1.41 / 93.49 ms │     no change │
│ QQuery 30 │        31.07 / 31.55 ±0.38 / 32.03 ms │        31.21 / 31.69 ±0.38 / 32.22 ms │     no change │
│ QQuery 31 │     105.60 / 106.77 ±0.96 / 108.13 ms │     105.20 / 107.40 ±2.56 / 112.06 ms │     no change │
│ QQuery 32 │        18.81 / 19.16 ±0.33 / 19.76 ms │        18.97 / 19.50 ±0.43 / 20.18 ms │     no change │
│ QQuery 33 │        35.78 / 36.36 ±0.31 / 36.69 ms │        36.20 / 36.63 ±0.24 / 36.85 ms │     no change │
│ QQuery 34 │           5.45 / 5.60 ±0.23 / 6.05 ms │           5.63 / 5.80 ±0.24 / 6.27 ms │     no change │
│ QQuery 35 │        69.63 / 72.38 ±2.11 / 75.77 ms │        69.49 / 69.91 ±0.38 / 70.61 ms │     no change │
│ QQuery 36 │           5.29 / 5.42 ±0.22 / 5.86 ms │          5.46 / 6.51 ±1.78 / 10.02 ms │  1.20x slower │
│ QQuery 37 │           6.74 / 6.91 ±0.15 / 7.12 ms │           6.77 / 7.13 ±0.21 / 7.37 ms │     no change │
│ QQuery 38 │        58.99 / 59.52 ±0.39 / 60.15 ms │        59.00 / 59.53 ±0.67 / 60.75 ms │     no change │
│ QQuery 39 │        70.66 / 71.05 ±0.37 / 71.75 ms │        70.96 / 71.47 ±0.34 / 72.01 ms │     no change │
│ QQuery 40 │        21.22 / 21.59 ±0.30 / 22.11 ms │        21.94 / 22.62 ±0.72 / 23.98 ms │     no change │
│ QQuery 41 │        12.55 / 13.31 ±1.06 / 15.41 ms │        12.41 / 12.58 ±0.13 / 12.78 ms │ +1.06x faster │
│ QQuery 42 │        23.40 / 25.86 ±3.03 / 31.83 ms │        23.21 / 23.40 ±0.20 / 23.69 ms │ +1.11x faster │
│ QQuery 43 │           4.47 / 4.60 ±0.23 / 5.05 ms │          4.58 / 5.81 ±2.17 / 10.13 ms │  1.26x slower │
│ QQuery 44 │           5.41 / 5.51 ±0.07 / 5.60 ms │           5.54 / 5.63 ±0.09 / 5.79 ms │     no change │
│ QQuery 45 │        35.64 / 36.56 ±0.59 / 37.39 ms │        34.78 / 35.64 ±0.61 / 36.60 ms │     no change │
│ QQuery 46 │           6.47 / 6.61 ±0.17 / 6.92 ms │           6.57 / 6.86 ±0.40 / 7.64 ms │     no change │
│ QQuery 47 │     209.55 / 218.85 ±8.94 / 235.45 ms │     208.95 / 211.96 ±2.51 / 215.77 ms │     no change │
│ QQuery 48 │        91.61 / 91.97 ±0.23 / 92.27 ms │        91.56 / 92.08 ±0.42 / 92.76 ms │     no change │
│ QQuery 49 │        69.40 / 72.38 ±2.89 / 77.46 ms │        69.62 / 69.91 ±0.47 / 70.84 ms │     no change │
│ QQuery 50 │        55.70 / 56.00 ±0.24 / 56.21 ms │        55.68 / 56.07 ±0.30 / 56.58 ms │     no change │
│ QQuery 51 │        90.72 / 94.00 ±1.76 / 95.54 ms │        90.24 / 93.03 ±1.62 / 94.94 ms │     no change │
│ QQuery 52 │        23.66 / 25.76 ±3.94 / 33.64 ms │        23.17 / 23.42 ±0.26 / 23.91 ms │ +1.10x faster │
│ QQuery 53 │        28.26 / 28.66 ±0.38 / 29.26 ms │        28.24 / 30.22 ±2.57 / 35.29 ms │  1.05x slower │
│ QQuery 54 │        54.28 / 54.92 ±0.52 / 55.54 ms │        54.30 / 54.86 ±0.60 / 55.84 ms │     no change │
│ QQuery 55 │        22.73 / 23.44 ±0.92 / 25.23 ms │        23.17 / 23.31 ±0.13 / 23.53 ms │     no change │
│ QQuery 56 │        36.64 / 37.14 ±0.39 / 37.84 ms │        36.77 / 37.36 ±0.36 / 37.87 ms │     no change │
│ QQuery 57 │     160.20 / 163.61 ±3.83 / 170.75 ms │     162.12 / 164.58 ±1.69 / 167.45 ms │     no change │
│ QQuery 58 │     102.79 / 105.13 ±2.42 / 109.43 ms │     103.32 / 104.07 ±0.54 / 104.68 ms │     no change │
│ QQuery 59 │     112.23 / 112.72 ±0.40 / 113.34 ms │     112.14 / 113.18 ±0.63 / 113.97 ms │     no change │
│ QQuery 60 │        37.05 / 37.85 ±1.07 / 39.93 ms │        36.87 / 37.55 ±0.40 / 38.12 ms │     no change │
│ QQuery 61 │           8.63 / 8.83 ±0.22 / 9.24 ms │           8.80 / 9.01 ±0.25 / 9.48 ms │     no change │
│ QQuery 62 │        41.85 / 43.30 ±1.93 / 47.11 ms │        41.81 / 43.21 ±2.24 / 47.68 ms │     no change │
│ QQuery 63 │        28.49 / 29.06 ±0.52 / 29.78 ms │        28.83 / 29.30 ±0.30 / 29.58 ms │     no change │
│ QQuery 64 │     245.48 / 248.84 ±3.15 / 253.25 ms │     246.46 / 248.47 ±1.76 / 251.22 ms │     no change │
│ QQuery 65 │        64.90 / 65.98 ±1.36 / 68.65 ms │        64.77 / 65.31 ±0.37 / 65.84 ms │     no change │
│ QQuery 66 │        72.70 / 75.76 ±4.56 / 84.75 ms │        72.03 / 74.65 ±3.03 / 80.26 ms │     no change │
│ QQuery 67 │     210.47 / 214.69 ±4.38 / 222.47 ms │     208.78 / 215.62 ±5.11 / 221.96 ms │     no change │
│ QQuery 68 │           6.27 / 6.56 ±0.35 / 7.23 ms │           6.37 / 6.60 ±0.22 / 7.02 ms │     no change │
│ QQuery 69 │        55.77 / 56.45 ±1.14 / 58.73 ms │        54.85 / 55.05 ±0.19 / 55.36 ms │     no change │
│ QQuery 70 │        77.23 / 78.08 ±0.81 / 79.43 ms │        76.80 / 78.89 ±3.34 / 85.54 ms │     no change │
│ QQuery 71 │        34.22 / 36.83 ±3.99 / 44.77 ms │        34.29 / 36.71 ±4.28 / 45.27 ms │     no change │
│ QQuery 72 │ 1572.87 / 1632.96 ±41.83 / 1695.39 ms │ 1551.23 / 1590.55 ±27.75 / 1628.88 ms │     no change │
│ QQuery 73 │           5.16 / 5.31 ±0.24 / 5.79 ms │          5.28 / 6.87 ±2.74 / 12.34 ms │  1.29x slower │
│ QQuery 74 │     149.28 / 150.92 ±1.44 / 153.23 ms │     152.90 / 155.19 ±2.54 / 160.06 ms │     no change │
│ QQuery 75 │     131.03 / 132.34 ±1.25 / 134.43 ms │     133.12 / 134.59 ±1.53 / 137.52 ms │     no change │
│ QQuery 76 │        33.03 / 34.14 ±1.07 / 36.17 ms │        33.79 / 34.19 ±0.33 / 34.77 ms │     no change │
│ QQuery 77 │        58.97 / 59.43 ±0.36 / 59.86 ms │        59.40 / 60.01 ±0.42 / 60.69 ms │     no change │
│ QQuery 78 │     256.14 / 263.18 ±8.53 / 279.76 ms │    263.53 / 277.26 ±15.48 / 297.80 ms │  1.05x slower │
│ QQuery 79 │        68.21 / 68.73 ±0.51 / 69.66 ms │        68.92 / 69.17 ±0.16 / 69.40 ms │     no change │
│ QQuery 80 │        91.96 / 93.75 ±1.38 / 95.92 ms │       91.93 / 95.34 ±4.72 / 104.65 ms │     no change │
│ QQuery 81 │        25.11 / 26.17 ±1.60 / 29.35 ms │        25.18 / 25.62 ±0.29 / 26.06 ms │     no change │
│ QQuery 82 │        15.88 / 16.05 ±0.19 / 16.39 ms │        16.40 / 16.54 ±0.11 / 16.72 ms │     no change │
│ QQuery 83 │        31.59 / 31.69 ±0.09 / 31.86 ms │        31.85 / 32.17 ±0.21 / 32.46 ms │     no change │
│ QQuery 84 │        28.20 / 28.65 ±0.37 / 29.34 ms │        28.59 / 29.10 ±0.40 / 29.82 ms │     no change │
│ QQuery 85 │       96.75 / 99.69 ±4.65 / 108.92 ms │       96.36 / 99.34 ±2.93 / 104.30 ms │     no change │
│ QQuery 86 │        23.85 / 24.41 ±0.44 / 24.97 ms │        23.79 / 24.42 ±0.70 / 25.72 ms │     no change │
│ QQuery 87 │        58.95 / 59.71 ±0.79 / 61.21 ms │        59.25 / 59.94 ±0.52 / 60.71 ms │     no change │
│ QQuery 88 │        58.32 / 61.48 ±4.64 / 70.61 ms │        58.53 / 58.81 ±0.22 / 59.18 ms │     no change │
│ QQuery 89 │        34.18 / 34.76 ±0.53 / 35.68 ms │        33.70 / 34.03 ±0.22 / 34.37 ms │     no change │
│ QQuery 90 │        15.54 / 15.89 ±0.27 / 16.37 ms │        15.59 / 15.81 ±0.18 / 16.14 ms │     no change │
│ QQuery 91 │        39.65 / 40.14 ±0.42 / 40.80 ms │        40.38 / 40.71 ±0.24 / 41.00 ms │     no change │
│ QQuery 92 │        27.63 / 27.82 ±0.23 / 28.25 ms │        28.16 / 28.62 ±0.41 / 29.35 ms │     no change │
│ QQuery 93 │        47.87 / 48.42 ±0.45 / 49.13 ms │        48.04 / 48.64 ±0.86 / 50.32 ms │     no change │
│ QQuery 94 │        36.87 / 38.57 ±1.79 / 42.00 ms │        37.34 / 37.87 ±0.66 / 39.12 ms │     no change │
│ QQuery 95 │        77.13 / 78.49 ±1.16 / 79.88 ms │        76.36 / 78.95 ±2.10 / 82.78 ms │     no change │
│ QQuery 96 │        23.09 / 23.32 ±0.24 / 23.76 ms │        23.19 / 23.38 ±0.18 / 23.69 ms │     no change │
│ QQuery 97 │        50.46 / 51.65 ±1.07 / 53.44 ms │        49.19 / 50.04 ±0.70 / 51.26 ms │     no change │
│ QQuery 98 │        42.03 / 42.42 ±0.39 / 43.06 ms │        42.21 / 42.89 ±0.56 / 43.81 ms │     no change │
│ QQuery 99 │        62.64 / 63.16 ±0.28 / 63.43 ms │        62.74 / 64.54 ±2.70 / 69.91 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary        ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)        │ 8539.56ms │
│ Total Time (smj-27910)   │ 8528.52ms │
│ Average Time (HEAD)      │   86.26ms │
│ Average Time (smj-27910) │   86.15ms │
│ Queries Faster           │         4 │
│ Queries Slower           │         5 │
│ Queries with No Change   │        90 │
│ Queries with Failure     │         0 │
└──────────────────────────┴───────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 45.0s
Peak memory 2.0 GiB
Avg memory 1.5 GiB
CPU user 183.2s
CPU sys 5.0s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 45.0s
Peak memory 2.2 GiB
Avg memory 1.5 GiB
CPU user 177.7s
CPU sys 5.2s
Peak spill 0 B

File an issue against this benchmark runner

`filter_ranges` reserved one kept range per input range, but a long run of
buffered rows splits into a range for each slice of pairs that pass, so a
selective filter grew the vector several times per freeze. In a Linux
profile of TPC-DS q72 the regrowth took about 6% of the join's CPU. The
capacity now bounds the slices by the pairs that pass and by one more than
the pairs that fail, plus one per input range, without a pass over the mask.

The benchmarks sort `data` within each key group, so their filters keep one
slice per run and never regrow. On a variant of
`inner_1to1000_selective_filtered` whose buffered `data` has no order within
a key group, as q72's quantities have none, this is 3.5% faster.
…time

A filter-first freeze materialized the pairs that passed, often a few
hundred out of `batch_size`, and the output coalescer then copied them
again into its batch. When the freeze of an Inner join keeps no more pairs
than the coalescer copies, it now records them as runs, and the stream
materializes them in batches that complete the coalescer's partial batch,
so that the coalescer passes the next ones on without copying them. Such a
freeze also builds no filter predicate and filters neither the filter's
columns nor the pairs' rows. Since the runs address the streamed batch and
the buffered batches by position, they are materialized before the streamed
batch changes, before a buffered batch is dequeued and at the end, in pieces
that join the partial batch, so every batch but the last stays full. A new
test checks a selective Inner join, with and without spilling, against the
unfiltered join and the filter.

Against the previous commit, on macOS, `inner_1to1000_selective_filtered`,
which has the shape of TPC-DS q72, is 29% faster, `inner_1to100_filtered`
15%, `inner_1to10_filtered` 10% and `inner_1to1_filtered` 5%, and the
variant with unordered buffered `data` 13%. The two Left cases, which do not
take this path, are 4-5% slower: the new code changes the inlining, which
leaves arrow's `BooleanBuilder::extend` in
`FilterMetadata::append_filter_metadata` out of line.
`FilterMetadata::append_filter_metadata` extended its builders from the
arrays' iterators. Arrow's `BooleanBuilder::extend` collects the values into
a `Vec<Option<bool>>` and builds a `BooleanArray` from it to append. After
the previous commit, which changed the inlining, building that array took 5%
of `left_1to1000_selective_filtered` in a profile. `append_array` copies the
arrays' buffers instead.

Against the previous commit, on macOS, `left_1to100_filtered` is 14% faster
and `left_1to1000_selective_filtered` 10%, so both are now faster than before
the previous two commits, by 10% and 5%. The Inner cases do not change.
@comphead

comphead commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark smj

env:
    PREFER_HASH_JOIN: false

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c7426115273-6241-mxl28 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

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

Comparing smj-27910 (0259a38) to 5184bdd (merge-base) diff

Run configuration
run benchmark smj
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark smj
```
env:
    PREFER_HASH_JOIN: false
```

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)

Comparing smj-27910 (0259a38) to 5184bdd (merge-base) diff

Run configuration
run benchmark smj
env:
  PREFER_HASH_JOIN: "false"
Trigger comment
run benchmark smj
```
env:
    PREFER_HASH_JOIN: false
```
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 smj-27910
--------------------
Benchmark smj.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃      HEAD ┃ smj-27910 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │   8.31 ms │   8.62 ms │     no change │
│ QQuery 2  │  87.45 ms │  76.22 ms │ +1.15x faster │
│ QQuery 3  │  37.04 ms │  31.76 ms │ +1.17x faster │
│ QQuery 4  │  25.07 ms │  24.75 ms │     no change │
│ QQuery 5  │  11.84 ms │  10.22 ms │ +1.16x faster │
│ QQuery 6  │  85.95 ms │  73.76 ms │ +1.17x faster │
│ QQuery 7  │ 103.57 ms │  91.37 ms │ +1.13x faster │
│ QQuery 8  │  15.15 ms │  14.94 ms │     no change │
│ QQuery 9  │ 108.42 ms │  93.53 ms │ +1.16x faster │
│ QQuery 10 │  53.36 ms │  54.33 ms │     no change │
│ QQuery 11 │  24.72 ms │  24.56 ms │     no change │
│ QQuery 12 │  61.88 ms │  61.84 ms │     no change │
│ QQuery 13 │  97.43 ms │ 100.49 ms │     no change │
│ QQuery 14 │  54.47 ms │  53.99 ms │     no change │
│ QQuery 15 │  54.34 ms │  54.23 ms │     no change │
│ QQuery 16 │  11.66 ms │  12.71 ms │  1.09x slower │
│ QQuery 17 │ 113.52 ms │ 113.18 ms │     no change │
│ QQuery 18 │  98.31 ms │ 100.55 ms │     no change │
│ QQuery 19 │ 264.96 ms │ 265.89 ms │     no change │
│ QQuery 20 │ 602.16 ms │ 538.14 ms │ +1.12x faster │
│ QQuery 21 │  93.81 ms │  91.14 ms │     no change │
│ QQuery 22 │ 100.58 ms │  94.49 ms │ +1.06x faster │
│ QQuery 23 │ 106.77 ms │ 100.75 ms │ +1.06x faster │
│ QQuery 24 │  24.99 ms │  25.06 ms │     no change │
│ QQuery 25 │  67.65 ms │  63.61 ms │ +1.06x faster │
│ QQuery 26 │ 103.13 ms │  97.85 ms │ +1.05x faster │
└───────────┴───────────┴───────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary        ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)        │ 2416.55ms │
│ Total Time (smj-27910)   │ 2277.97ms │
│ Average Time (HEAD)      │   92.94ms │
│ Average Time (smj-27910) │   87.61ms │
│ Queries Faster           │        11 │
│ Queries Slower           │         1 │
│ Queries with No Change   │        14 │
│ Queries with Failure     │         0 │
└──────────────────────────┴───────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and smj-27910
--------------------
Benchmark smj.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                               HEAD ┃                         smj-27910 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │        8.31 / 8.72 ±0.28 / 9.14 ms │       8.62 / 8.83 ±0.24 / 9.23 ms │     no change │
│ QQuery 2  │     87.45 / 88.34 ±1.01 / 90.30 ms │    76.22 / 77.95 ±1.89 / 81.63 ms │ +1.13x faster │
│ QQuery 3  │     37.04 / 38.14 ±0.65 / 38.96 ms │    31.76 / 32.37 ±0.67 / 33.60 ms │ +1.18x faster │
│ QQuery 4  │     25.07 / 25.35 ±0.18 / 25.56 ms │    24.75 / 25.23 ±0.33 / 25.77 ms │     no change │
│ QQuery 5  │     11.84 / 12.11 ±0.22 / 12.40 ms │    10.22 / 10.40 ±0.14 / 10.61 ms │ +1.16x faster │
│ QQuery 6  │     85.95 / 89.31 ±2.36 / 93.00 ms │    73.76 / 76.38 ±2.70 / 80.94 ms │ +1.17x faster │
│ QQuery 7  │  103.57 / 104.15 ±0.37 / 104.65 ms │    91.37 / 92.05 ±0.48 / 92.74 ms │ +1.13x faster │
│ QQuery 8  │     15.15 / 15.61 ±0.42 / 16.39 ms │    14.94 / 15.48 ±0.45 / 16.10 ms │     no change │
│ QQuery 9  │  108.42 / 114.03 ±4.09 / 120.49 ms │   93.53 / 95.75 ±3.19 / 102.08 ms │ +1.19x faster │
│ QQuery 10 │     53.36 / 54.47 ±0.61 / 55.22 ms │    54.33 / 54.74 ±0.36 / 55.39 ms │     no change │
│ QQuery 11 │     24.72 / 25.13 ±0.28 / 25.51 ms │    24.56 / 24.93 ±0.24 / 25.27 ms │     no change │
│ QQuery 12 │     61.88 / 66.30 ±2.84 / 69.43 ms │    61.84 / 65.81 ±3.13 / 70.72 ms │     no change │
│ QQuery 13 │   97.43 / 103.26 ±4.16 / 110.15 ms │ 100.49 / 103.20 ±2.41 / 107.46 ms │     no change │
│ QQuery 14 │     54.47 / 55.33 ±0.97 / 57.19 ms │    53.99 / 54.73 ±0.70 / 56.01 ms │     no change │
│ QQuery 15 │     54.34 / 54.87 ±0.37 / 55.51 ms │    54.23 / 55.17 ±0.56 / 55.82 ms │     no change │
│ QQuery 16 │     11.66 / 12.13 ±0.35 / 12.72 ms │    12.71 / 16.69 ±7.08 / 30.84 ms │  1.38x slower │
│ QQuery 17 │  113.52 / 115.63 ±1.21 / 116.91 ms │ 113.18 / 115.53 ±1.92 / 118.85 ms │     no change │
│ QQuery 18 │   98.31 / 100.55 ±2.10 / 104.51 ms │ 100.55 / 101.62 ±0.79 / 102.61 ms │     no change │
│ QQuery 19 │ 264.96 / 280.52 ±19.21 / 317.84 ms │ 265.89 / 276.97 ±8.34 / 291.19 ms │     no change │
│ QQuery 20 │  602.16 / 606.53 ±3.19 / 610.72 ms │ 538.14 / 542.36 ±4.08 / 550.02 ms │ +1.12x faster │
│ QQuery 21 │  93.81 / 104.37 ±16.28 / 136.81 ms │    91.14 / 92.50 ±0.90 / 93.62 ms │ +1.13x faster │
│ QQuery 22 │  100.58 / 102.01 ±0.93 / 103.03 ms │   94.49 / 98.40 ±4.89 / 107.96 ms │     no change │
│ QQuery 23 │  106.77 / 109.27 ±2.16 / 112.40 ms │ 100.75 / 101.61 ±0.64 / 102.36 ms │ +1.08x faster │
│ QQuery 24 │     24.99 / 25.29 ±0.34 / 25.93 ms │    25.06 / 25.29 ±0.23 / 25.63 ms │     no change │
│ QQuery 25 │     67.65 / 70.19 ±3.65 / 77.40 ms │    63.61 / 66.97 ±2.49 / 71.08 ms │     no change │
│ QQuery 26 │  103.13 / 109.86 ±4.35 / 116.77 ms │  97.85 / 103.08 ±5.28 / 112.30 ms │ +1.07x faster │
└───────────┴────────────────────────────────────┴───────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary        ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)        │ 2491.46ms │
│ Total Time (smj-27910)   │ 2334.04ms │
│ Average Time (HEAD)      │   95.83ms │
│ Average Time (smj-27910) │   89.77ms │
│ Queries Faster           │        10 │
│ Queries Slower           │         1 │
│ Queries with No Change   │        15 │
│ Queries with Failure     │         0 │
└──────────────────────────┴───────────┘

Resource Usage

smj — base (merge-base)

Metric Value
Wall time 15.0s
Peak memory 1.2 GiB
Avg memory 435.1 MiB
CPU user 88.6s
CPU sys 3.0s
Peak spill 0 B

smj — branch

Metric Value
Wall time 15.0s
Peak memory 1.3 GiB
Avg memory 404.1 MiB
CPU user 79.7s
CPU sys 2.7s
Peak spill 0 B

File an issue against this benchmark runner

@andygrove andygrove left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This review is based on d7fab8a, before the three commits pushed since.

Thanks @comphead. Keeping pairs as runs makes the pairing state much simpler, and the wins reproduce here. I ran 10 alternating rounds on an M3 Max with thin LTO, against the PR's base plus the bench commit: left_1to1000_selective_filtered 0.11x, left_1to100_filtered 0.50x, inner_1to100 0.59x, inner_group_spans_buffered_batches/8 0.44x.

I found one wrong-results case, in Full joins with a filter. When a streamed row's pairs straddle a freeze and filtering first keeps few of them, the deferred metadata can stay under batch_size. Then the flush gate at the top of join doesn't fire after the row. If a buffered group that matches nothing comes next, a later freeze_all pushes its null-joined rows ahead of the rest of the streamed row's pairs. That splits the row's group in get_corrected_filter_mask, so the row comes out joined to NULLs as well as with its match. On main every pair reached the metadata, so the gate always fired right after such a row.

The test below fails on this PR and passes on main. The same shape also fails at the default batch size, with one streamed row against a 10,000-row key group. I left a fix that worked in a prototype on the materialize_pairs docs. With it, the filtered Left and Right joins of a 20,000-case differential fuzz matched main exactly, and the filtered Full joins all matched HashJoinExec.

Test
/// A Full join row whose pairs straddle a freeze, and of which only the first
/// passes the filter, keeps just that pair when a buffered group that matches
/// nothing comes before the rest of its pairs reach the deferred filter.
#[tokio::test]
async fn join_full_filtered_row_straddling_a_freeze() -> Result<()> {
    let left = build_table(
        ("a1", &vec![5, 7, 8, 9]),
        ("b1", &vec![0, 0, 0, 0]),
        ("c1", &vec![1, 2, 3, 4]),
    );
    let right = build_table(
        ("a2", &vec![5, 5, 5, 5, 5, 6, 10]),
        ("b2", &vec![0, 1, 1, 1, 1, 0, 0]),
        ("c2", &vec![10, 11, 12, 13, 14, 15, 16]),
    );
    let on = vec![(
        Arc::new(Column::new_with_schema("a1", &left.schema())?) as _,
        Arc::new(Column::new_with_schema("a2", &right.schema())?) as _,
    )];
    // `b2 < 1`
    let filter = JoinFilter::new(
        Arc::new(BinaryExpr::new(
            Arc::new(Column::new("b2", 0)),
            Operator::Lt,
            Arc::new(Literal::new(ScalarValue::Int32(Some(1)))),
        )),
        vec![ColumnIndex {
            index: 1,
            side: JoinSide::Right,
        }],
        Arc::new(Schema::new(vec![Field::new("b2", DataType::Int32, true)])),
    );
    let join = join_with_filter(
        left,
        right,
        on,
        filter,
        Full,
        vec![SortOptions::default()],
        NullEquality::NullEqualsNothing,
    )?;
    let task_ctx = Arc::new(
        TaskContext::default()
            .with_session_config(SessionConfig::new().with_batch_size(4)),
    );
    let batches = common::collect(join.execute(0, task_ctx)?).await?;
    assert_snapshot!(batches_to_sort_string(&batches), @r"
    +----+----+----+----+----+----+
    | a1 | b1 | c1 | a2 | b2 | c2 |
    +----+----+----+----+----+----+
    |    |    |    | 10 | 0  | 16 |
    |    |    |    | 5  | 1  | 11 |
    |    |    |    | 5  | 1  | 12 |
    |    |    |    | 5  | 1  | 13 |
    |    |    |    | 5  | 1  | 14 |
    |    |    |    | 6  | 0  | 15 |
    | 5  | 0  | 1  | 5  | 0  | 10 |
    | 7  | 0  | 2  |    |    |    |
    | 8  | 0  | 3  |    |    |    |
    | 9  | 0  | 4  |    |    |    |
    +----+----+----+----+----+----+
    ");
    Ok(())
}

Two open PRs touch the same code. #27346 re-evaluates the buffered join keys when a spilled batch is read back. It merges cleanly with this PR, but the batch it reads back is now projected, and join_with_projection_matches_projected_join fails with both applied. #27731's regression test also passes on this PR without its fix. The dictionary overflow now surfaces in finish_buffered_batch, which JoinedRecordBatches::concat_batches already propagates, instead of inside push_batch.

This review was AI-assisted.

Comment on lines +2424 to +2426
/// pairs of a many-to-many join. An outer join also keeps the first pair of
/// each streamed row whose pairs all fail, which the deferred filter
/// null-joins unless another freeze passes one of the row's pairs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This relies on a row's kept pairs reaching the deferred metadata back to back across freezes. In a Full join a later freeze_all can push null-joined buffered rows between them, which is the case in the review body. Freezing the rest of a row as soon as its scan finishes, when the row straddled a freeze, fixed it in a prototype:

                 Ordering::Equal => {
+                    let mut straddled = false;
                     while !self.pair_streamed_row_with_group() {
                         self.freeze_and_emit(emitter).await?;
+                        straddled = true;
+                    }
+                    // The deferred filter needs a streamed row's pairs back to back,
+                    // and a later `freeze_all` would push null-joined buffered rows
+                    // ahead of the rest of this row.
+                    if straddled && self.deferred_filtering {
+                        self.restore_spilled_batches_for_freeze().await?;
+                        self.freeze_streamed()?;
                     }

Comment on lines +1356 to +1357
buffered_schema =
Arc::new(buffered_schema.project(&buffered_gathered_columns)?);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

From here on buffered_schema holds the kept columns, so its field doc ("Input schema of buffered") is out of date. Could it say so? on_buffered still indexes the input's columns, which is what trips up #27346 when it re-evaluates the keys on a restored batch.

end += runs[i].len;
i += 1;
}
let none_passed = if end - start == 1 {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Inverting this one-pair shortcut still passes every sort-merge join test, though it changes the output of 151 of 2,500 fuzz cases. Could you add a test where a streamed row's only pair fails in a freeze that filters first? This one fails with the shortcut inverted:

Test
/// A streamed row whose only pair fails the filter is still null-joined when a
/// longer run in the same freeze makes the freeze filter first.
#[tokio::test]
async fn join_left_null_joins_single_failing_pair_in_filtered_freeze() -> Result<()> {
    let left = build_table(
        ("a1", &vec![1, 2]),
        ("b1", &vec![0, 0]),
        ("c1", &vec![10, 20]),
    );
    let right = build_table(
        ("a2", &vec![1, 1, 2]),
        ("b2", &vec![1, 1, 0]),
        ("c2", &vec![0, 1, 2]),
    );
    let on = vec![(
        Arc::new(Column::new_with_schema("a1", &left.schema())?) as _,
        Arc::new(Column::new_with_schema("a2", &right.schema())?) as _,
    )];
    // `b2 > 0`
    let filter = JoinFilter::new(
        Arc::new(BinaryExpr::new(
            Arc::new(Column::new("b2", 0)),
            Operator::Gt,
            Arc::new(Literal::new(ScalarValue::Int32(Some(0)))),
        )),
        vec![ColumnIndex {
            index: 1,
            side: JoinSide::Right,
        }],
        Arc::new(Schema::new(vec![Field::new("b2", DataType::Int32, true)])),
    );
    let (_, batches) = join_collect_with_filter(left, right, on, filter, Left).await?;
    assert_snapshot!(batches_to_string(&batches), @r"
    +----+----+----+----+----+----+
    | a1 | b1 | c1 | a2 | b2 | c2 |
    +----+----+----+----+----+----+
    | 1  | 0  | 10 | 1  | 1  | 0  |
    | 1  | 0  | 10 | 1  | 1  | 1  |
    | 2  | 0  | 20 |    |    |    |
    +----+----+----+----+----+----+
    ");
    Ok(())
}

let status = &mut self.buffered_data.batches[batch]
.join_filter_status[run.buffered_row..run.buffered_row + run.len];
for (i, state) in status.iter_mut().enumerate() {
if *state != FilterState::SomePassed {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Replacing this condition with true also passes every sort-merge join test, though 93 of 2,500 fuzz cases change. This test pins it down, since its buffered row passes with the first streamed row and fails with the second:

Test
/// A buffered row that passes the filter with one streamed row and fails with a
/// later one has matched, so a Full join does not also null-join it.
#[tokio::test]
async fn join_full_keeps_buffered_row_that_passed_once() -> Result<()> {
    let left = build_table(
        ("a1", &vec![1, 1]),
        ("b1", &vec![0, 0]),
        ("c1", &vec![10, 20]),
    );
    let right = build_table(("a2", &vec![1]), ("b2", &vec![0]), ("c2", &vec![30]));
    let on = vec![(
        Arc::new(Column::new_with_schema("a1", &left.schema())?) as _,
        Arc::new(Column::new_with_schema("a2", &right.schema())?) as _,
    )];
    // `c1 < 15`
    let filter = JoinFilter::new(
        Arc::new(BinaryExpr::new(
            Arc::new(Column::new("c1", 0)),
            Operator::Lt,
            Arc::new(Literal::new(ScalarValue::Int32(Some(15)))),
        )),
        vec![ColumnIndex {
            index: 2,
            side: JoinSide::Left,
        }],
        Arc::new(Schema::new(vec![Field::new("c1", DataType::Int32, true)])),
    );
    let (_, batches) = join_collect_with_filter(left, right, on, filter, Full).await?;
    assert_snapshot!(batches_to_sort_string(&batches), @r"
    +----+----+----+----+----+----+
    | a1 | b1 | c1 | a2 | b2 | c2 |
    +----+----+----+----+----+----+
    | 1  | 0  | 10 | 1  | 0  | 30 |
    | 1  | 0  | 20 |    |    |    |
    +----+----+----+----+----+----+
    ");
    Ok(())
}

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

Labels

performance Make DataFusion faster physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sort-merge join: follow-ups to filtering pairs before materializing them

3 participants