Skip to content

perf(repartition): drive input + completion from a single task#21788

Closed
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:repartition-single-task-per-input
Closed

perf(repartition): drive input + completion from a single task#21788
Dandandan wants to merge 1 commit intoapache:mainfrom
Dandandan:repartition-single-task-per-input

Conversation

@Dandandan
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • Closes #.

Rationale for this change

Each RepartitionExec input partition currently spawns two tokio tasks:

  1. pull_from_input — the worker that pulls batches from the input stream and routes them to per-output senders.
  2. wait_for_task — a shepherd that only awaits the worker's JoinHandle and forwards EOS (None) or the joined error to each output sender.

Observing a ClickBench run under tokio-console shows the shepherd is pure overhead: on ~300 captured SpawnedTask rows, it's an exact 1:1 split between workers (polls ≈ 300–600, busy ≈ hundreds of ms) and shepherds (polls ≈ 3–5, busy ≈ 4–30 µs). That doubles the number of tokio tasks created per RepartitionExec and adds a cross-task waker round-trip per partition for no useful work.

Example paired rows from the capture (same total lifetime, radically different workload):

task total busy polls
worker 615ms 391ms 349
shepherd 615ms 22µs 4

What changes are included in this PR?

  • Introduce RepartitionExec::drive_input that wraps pull_from_input in AssertUnwindSafe(..).catch_unwind() and, after the inner future resolves, forwards None / error / a synthesized panic error to each output sender from the same task.
  • Remove RepartitionExec::wait_for_task.
  • The outer spawn loop in RepartitionExecState::consume_input_streams now spawns exactly one task per input partition.

Panic safety is preserved: a panic from pull_from_input is surfaced as DataFusionError::Context("Join Error", Execution("task panicked: …")), mirroring the previous JoinError-wrapping path closely enough for existing callers.

Net effect: tokio tasks spawned per RepartitionExec drops from 2 · N to N (where N = input partitions), with one fewer cross-task waker hop per partition.

Are these changes tested?

Yes — covered by existing repartition tests in datafusion/physical-plan/src/repartition/mod.rs:

  • cargo test -p datafusion-physical-plan --lib repartition::41/41 pass, including:
    • error_for_input_exec (exercises panic propagation from input)
    • repartition_with_error_in_stream (exercises error propagation)
    • All spilling / ordering / drop-cancel tests.
  • cargo clippy -p datafusion-physical-plan --all-targets -- -D warnings → clean.
  • cargo fmt --check → clean.

Are there any user-facing changes?

No public API changes. The only behavior difference is the wording of panic errors surfaced through repartition: they now carry "task panicked: {msg}" (synthesized from the panic payload via downcast_ref) instead of the exact JoinError Display, but remain wrapped in DataFusionError::Context("Join Error", …) as before.

Previously each RepartitionExec input partition spawned two tokio tasks:
`pull_from_input` (the worker) and `wait_for_task` (a shepherd that only
awaited the worker's `JoinHandle` and forwarded EOS or the joined error
to the per-output senders). Observing ClickBench under tokio-console
showed a perfect 1:1 shepherd/worker split with shepherds at ~4 polls /
<30µs busy — pure overhead that doubled the task count per
RepartitionExec and added a cross-task waker round-trip per partition.

Fold the forwarder into the same task by wrapping `pull_from_input` in
`AssertUnwindSafe(..).catch_unwind()` and emitting `None` / error /
synthesized-panic markers to `senders` after the inner future resolves.
Panic safety is preserved: a panic is surfaced as
`DataFusionError::Context("Join Error", Execution("task panicked: …"))`,
mirroring the previous `JoinError` wrapping so existing callers see an
equivalent error shape.

Net effect: tasks spawned per RepartitionExec drops from 2·N to N
(where N = input partitions).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Dandandan
Copy link
Copy Markdown
Contributor Author

run benchmarks

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

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4298110714-1758-2xg85 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

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

Comparing repartition-single-task-per-input (d52306d) to 9a1ed57 (merge-base) diff using: clickbench_partitioned
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4298110714-1759-r5nhm 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

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

Comparing repartition-single-task-per-input (d52306d) to 9a1ed57 (merge-base) diff using: tpcds
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4298110714-1760-k9db9 6.12.55+ #1 SMP Sun Feb 1 08:59:41 UTC 2026 aarch64 GNU/Linux

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

Comparing repartition-single-task-per-input (d52306d) to 9a1ed57 (merge-base) diff using: tpch
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and repartition-single-task-per-input
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃     repartition-single-task-per-input ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.17 / 4.60 ±6.76 / 18.12 ms │          1.18 / 4.73 ±6.98 / 18.68 ms │     no change │
│ QQuery 1  │        13.20 / 13.41 ±0.11 / 13.52 ms │        12.98 / 13.12 ±0.08 / 13.21 ms │     no change │
│ QQuery 2  │        37.76 / 38.71 ±1.26 / 41.15 ms │        37.06 / 37.30 ±0.23 / 37.70 ms │     no change │
│ QQuery 3  │        31.77 / 32.28 ±0.53 / 33.27 ms │        31.77 / 31.89 ±0.14 / 32.16 ms │     no change │
│ QQuery 4  │     243.68 / 248.04 ±4.78 / 257.07 ms │     240.60 / 244.18 ±3.95 / 251.47 ms │     no change │
│ QQuery 5  │     283.68 / 286.08 ±1.41 / 287.65 ms │     283.44 / 284.89 ±1.09 / 286.57 ms │     no change │
│ QQuery 6  │          6.22 / 7.95 ±1.96 / 11.78 ms │           6.60 / 7.11 ±0.41 / 7.55 ms │ +1.12x faster │
│ QQuery 7  │        14.18 / 14.26 ±0.09 / 14.42 ms │        14.58 / 16.94 ±4.46 / 25.85 ms │  1.19x slower │
│ QQuery 8  │     328.18 / 330.75 ±1.57 / 333.12 ms │     334.90 / 338.91 ±2.82 / 341.96 ms │     no change │
│ QQuery 9  │    491.24 / 513.15 ±13.64 / 526.93 ms │     500.79 / 507.67 ±5.74 / 518.12 ms │     no change │
│ QQuery 10 │        75.14 / 78.37 ±3.69 / 83.57 ms │        74.16 / 76.51 ±3.06 / 82.55 ms │     no change │
│ QQuery 11 │        85.95 / 87.57 ±2.09 / 91.60 ms │        85.86 / 86.85 ±0.83 / 88.35 ms │     no change │
│ QQuery 12 │     276.74 / 280.21 ±4.08 / 288.00 ms │     276.11 / 279.20 ±3.13 / 284.81 ms │     no change │
│ QQuery 13 │     401.13 / 406.26 ±7.42 / 420.26 ms │     394.13 / 400.20 ±7.31 / 414.41 ms │     no change │
│ QQuery 14 │     286.43 / 288.03 ±2.25 / 292.51 ms │     286.86 / 290.04 ±2.41 / 292.58 ms │     no change │
│ QQuery 15 │     286.92 / 289.11 ±1.41 / 290.70 ms │     286.77 / 291.18 ±3.33 / 295.17 ms │     no change │
│ QQuery 16 │     624.27 / 631.42 ±6.92 / 642.92 ms │     631.88 / 639.97 ±8.90 / 657.19 ms │     no change │
│ QQuery 17 │     625.09 / 631.75 ±4.90 / 637.32 ms │     627.97 / 634.36 ±6.74 / 646.92 ms │     no change │
│ QQuery 18 │  1265.81 / 1273.37 ±5.99 / 1284.10 ms │ 1251.20 / 1287.06 ±25.62 / 1323.89 ms │     no change │
│ QQuery 19 │        29.12 / 29.36 ±0.20 / 29.59 ms │        29.39 / 29.97 ±0.95 / 31.84 ms │     no change │
│ QQuery 20 │     518.61 / 523.62 ±6.37 / 536.15 ms │     525.23 / 528.25 ±3.44 / 534.84 ms │     no change │
│ QQuery 21 │     594.08 / 599.77 ±4.67 / 608.15 ms │     594.17 / 598.25 ±2.39 / 600.70 ms │     no change │
│ QQuery 22 │ 1060.48 / 1072.85 ±12.94 / 1097.78 ms │  1060.19 / 1069.88 ±9.36 / 1086.98 ms │     no change │
│ QQuery 23 │ 3317.02 / 3333.09 ±13.86 / 3353.81 ms │ 3295.97 / 3325.65 ±16.70 / 3344.06 ms │     no change │
│ QQuery 24 │        42.00 / 50.71 ±9.32 / 67.45 ms │        42.82 / 50.95 ±7.51 / 61.12 ms │     no change │
│ QQuery 25 │     113.77 / 117.58 ±3.08 / 121.76 ms │     113.72 / 116.13 ±2.93 / 121.62 ms │     no change │
│ QQuery 26 │        42.58 / 43.34 ±0.58 / 44.07 ms │        42.28 / 43.88 ±2.82 / 49.51 ms │     no change │
│ QQuery 27 │     669.10 / 675.14 ±5.26 / 681.22 ms │     671.05 / 676.77 ±4.64 / 683.82 ms │     no change │
│ QQuery 28 │ 3024.58 / 3034.74 ±11.11 / 3055.96 ms │ 2986.83 / 3016.52 ±18.13 / 3040.55 ms │     no change │
│ QQuery 29 │        42.89 / 48.08 ±8.81 / 65.67 ms │        42.43 / 43.37 ±1.23 / 45.76 ms │ +1.11x faster │
│ QQuery 30 │     310.80 / 315.93 ±4.11 / 321.87 ms │     309.98 / 315.63 ±4.98 / 322.93 ms │     no change │
│ QQuery 31 │     302.31 / 309.60 ±5.42 / 317.48 ms │     298.42 / 307.63 ±5.46 / 313.53 ms │     no change │
│ QQuery 32 │  1002.54 / 1006.05 ±3.73 / 1013.13 ms │   999.31 / 1005.82 ±3.65 / 1009.27 ms │     no change │
│ QQuery 33 │ 1431.46 / 1453.47 ±16.02 / 1481.35 ms │ 1408.09 / 1430.19 ±12.01 / 1444.76 ms │     no change │
│ QQuery 34 │  1446.69 / 1457.26 ±9.35 / 1472.52 ms │  1433.41 / 1449.83 ±9.98 / 1461.77 ms │     no change │
│ QQuery 35 │    288.53 / 306.25 ±18.16 / 330.38 ms │    286.95 / 308.57 ±26.93 / 355.71 ms │     no change │
│ QQuery 36 │        68.57 / 69.87 ±1.60 / 72.92 ms │        61.89 / 65.98 ±3.18 / 71.37 ms │ +1.06x faster │
│ QQuery 37 │        35.97 / 37.38 ±1.40 / 40.08 ms │        35.58 / 40.42 ±4.71 / 47.97 ms │  1.08x slower │
│ QQuery 38 │        43.04 / 47.17 ±4.71 / 55.80 ms │        42.97 / 43.80 ±0.56 / 44.59 ms │ +1.08x faster │
│ QQuery 39 │     129.45 / 134.91 ±5.00 / 142.72 ms │    127.42 / 146.38 ±20.11 / 185.06 ms │  1.08x slower │
│ QQuery 40 │        14.35 / 14.80 ±0.30 / 15.25 ms │        14.46 / 14.98 ±0.54 / 16.02 ms │     no change │
│ QQuery 41 │        13.82 / 15.75 ±3.69 / 23.14 ms │        14.04 / 14.16 ±0.08 / 14.29 ms │ +1.11x faster │
│ QQuery 42 │        13.54 / 13.70 ±0.11 / 13.82 ms │        13.37 / 13.79 ±0.22 / 13.98 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                │ 20165.75ms │
│ Total Time (repartition-single-task-per-input)   │ 20128.92ms │
│ Average Time (HEAD)                              │   468.97ms │
│ Average Time (repartition-single-task-per-input) │   468.11ms │
│ Queries Faster                                   │          5 │
│ Queries Slower                                   │          3 │
│ Queries with No Change                           │         35 │
│ Queries with Failure                             │          0 │
└──────────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

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

clickbench_partitioned — branch

Metric Value
Wall time 105.0s
Peak memory 30.9 GiB
Avg memory 23.1 GiB
CPU user 1071.5s
CPU sys 62.0s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot
Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and repartition-single-task-per-input
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                     HEAD ┃         repartition-single-task-per-input ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │              6.81 / 7.39 ±0.77 / 8.91 ms │               7.04 / 7.46 ±0.73 / 8.92 ms │     no change │
│ QQuery 2  │        147.70 / 148.22 ±0.51 / 148.87 ms │         143.75 / 144.40 ±0.45 / 144.92 ms │     no change │
│ QQuery 3  │        113.13 / 114.17 ±0.87 / 115.72 ms │         113.55 / 114.19 ±0.40 / 114.79 ms │     no change │
│ QQuery 4  │     1355.26 / 1359.12 ±3.36 / 1364.90 ms │      1315.45 / 1326.31 ±8.40 / 1341.24 ms │     no change │
│ QQuery 5  │        171.63 / 172.78 ±1.00 / 174.46 ms │         172.01 / 173.59 ±1.25 / 175.87 ms │     no change │
│ QQuery 6  │       837.08 / 870.36 ±30.22 / 915.68 ms │        839.59 / 858.10 ±19.31 / 893.57 ms │     no change │
│ QQuery 7  │        337.18 / 340.74 ±3.38 / 346.65 ms │         335.59 / 336.84 ±1.18 / 338.65 ms │     no change │
│ QQuery 8  │        112.59 / 113.42 ±0.66 / 114.48 ms │         113.27 / 114.47 ±1.51 / 117.35 ms │     no change │
│ QQuery 9  │        104.55 / 105.12 ±0.36 / 105.60 ms │         100.66 / 102.31 ±2.33 / 106.90 ms │     no change │
│ QQuery 10 │        100.96 / 101.76 ±0.44 / 102.30 ms │         101.90 / 104.18 ±2.22 / 108.45 ms │     no change │
│ QQuery 11 │       940.49 / 956.70 ±10.04 / 971.03 ms │         937.19 / 940.44 ±4.04 / 948.34 ms │     no change │
│ QQuery 12 │           43.92 / 44.30 ±0.42 / 45.12 ms │            43.50 / 43.93 ±0.24 / 44.20 ms │     no change │
│ QQuery 13 │        391.62 / 394.26 ±3.03 / 400.03 ms │         389.90 / 391.81 ±1.49 / 393.36 ms │     no change │
│ QQuery 14 │        977.64 / 984.89 ±3.95 / 988.39 ms │         968.04 / 977.64 ±8.41 / 990.75 ms │     no change │
│ QQuery 15 │           15.12 / 15.55 ±0.24 / 15.80 ms │            14.88 / 15.24 ±0.23 / 15.52 ms │     no change │
│ QQuery 16 │              7.56 / 7.69 ±0.09 / 7.82 ms │               7.19 / 7.37 ±0.19 / 7.71 ms │     no change │
│ QQuery 17 │        224.14 / 225.76 ±1.37 / 227.89 ms │         222.79 / 224.65 ±2.34 / 229.22 ms │     no change │
│ QQuery 18 │        123.96 / 124.58 ±0.59 / 125.48 ms │         123.60 / 124.71 ±0.60 / 125.37 ms │     no change │
│ QQuery 19 │        153.98 / 156.24 ±1.77 / 159.26 ms │         155.43 / 156.41 ±1.32 / 159.00 ms │     no change │
│ QQuery 20 │           13.58 / 13.69 ±0.06 / 13.75 ms │            13.23 / 13.58 ±0.29 / 13.93 ms │     no change │
│ QQuery 21 │           19.29 / 19.60 ±0.24 / 19.88 ms │            19.29 / 19.63 ±0.23 / 20.00 ms │     no change │
│ QQuery 22 │        477.92 / 482.87 ±4.23 / 489.21 ms │         488.78 / 492.20 ±3.17 / 496.44 ms │     no change │
│ QQuery 23 │        846.14 / 852.34 ±5.99 / 863.48 ms │        827.17 / 835.17 ±10.16 / 855.13 ms │     no change │
│ QQuery 24 │        375.98 / 382.65 ±7.63 / 395.15 ms │         372.57 / 376.26 ±4.58 / 385.12 ms │     no change │
│ QQuery 25 │        334.52 / 336.82 ±1.70 / 339.67 ms │         332.22 / 334.72 ±1.74 / 336.82 ms │     no change │
│ QQuery 26 │           77.08 / 77.42 ±0.19 / 77.63 ms │            77.58 / 77.92 ±0.27 / 78.25 ms │     no change │
│ QQuery 27 │              6.87 / 6.96 ±0.10 / 7.14 ms │               6.88 / 7.00 ±0.13 / 7.25 ms │     no change │
│ QQuery 28 │        148.20 / 149.12 ±0.70 / 149.75 ms │         147.91 / 149.77 ±1.65 / 152.72 ms │     no change │
│ QQuery 29 │        272.41 / 276.23 ±4.48 / 284.84 ms │         270.63 / 274.10 ±3.26 / 280.02 ms │     no change │
│ QQuery 30 │           41.82 / 42.01 ±0.11 / 42.11 ms │            41.53 / 41.83 ±0.29 / 42.36 ms │     no change │
│ QQuery 31 │        163.68 / 165.79 ±2.66 / 171.00 ms │         164.75 / 165.56 ±0.54 / 166.32 ms │     no change │
│ QQuery 32 │           13.66 / 13.89 ±0.12 / 14.00 ms │            13.51 / 13.77 ±0.27 / 14.25 ms │     no change │
│ QQuery 33 │        139.54 / 140.12 ±0.59 / 141.21 ms │         138.98 / 141.10 ±1.95 / 144.03 ms │     no change │
│ QQuery 34 │              6.96 / 7.10 ±0.11 / 7.28 ms │               6.89 / 7.06 ±0.14 / 7.31 ms │     no change │
│ QQuery 35 │        100.10 / 101.81 ±1.17 / 103.42 ms │          99.66 / 101.06 ±1.18 / 103.04 ms │     no change │
│ QQuery 36 │              6.56 / 6.87 ±0.20 / 7.13 ms │               6.58 / 6.73 ±0.10 / 6.88 ms │     no change │
│ QQuery 37 │              8.51 / 8.56 ±0.05 / 8.64 ms │              8.17 / 9.15 ±1.77 / 12.69 ms │  1.07x slower │
│ QQuery 38 │           85.69 / 89.52 ±4.11 / 95.47 ms │            84.24 / 86.18 ±1.29 / 88.07 ms │     no change │
│ QQuery 39 │        118.86 / 121.70 ±3.12 / 127.01 ms │         116.84 / 120.87 ±4.76 / 130.23 ms │     no change │
│ QQuery 40 │        102.91 / 108.25 ±5.70 / 118.66 ms │         102.71 / 106.02 ±3.25 / 111.58 ms │     no change │
│ QQuery 41 │           14.37 / 14.66 ±0.16 / 14.82 ms │            14.26 / 14.38 ±0.11 / 14.57 ms │     no change │
│ QQuery 42 │        106.59 / 108.99 ±3.41 / 115.72 ms │         106.16 / 106.92 ±0.57 / 107.49 ms │     no change │
│ QQuery 43 │              5.73 / 5.84 ±0.13 / 6.09 ms │               5.70 / 5.80 ±0.17 / 6.15 ms │     no change │
│ QQuery 44 │           11.87 / 12.06 ±0.12 / 12.19 ms │            11.61 / 11.81 ±0.19 / 12.14 ms │     no change │
│ QQuery 45 │           49.10 / 49.74 ±0.79 / 51.26 ms │            48.65 / 48.77 ±0.13 / 48.93 ms │     no change │
│ QQuery 46 │              8.42 / 8.67 ±0.15 / 8.84 ms │               8.41 / 8.54 ±0.12 / 8.73 ms │     no change │
│ QQuery 47 │        718.69 / 729.87 ±8.25 / 740.35 ms │         720.28 / 727.60 ±6.08 / 736.38 ms │     no change │
│ QQuery 48 │        272.44 / 275.63 ±3.62 / 282.49 ms │         274.47 / 277.48 ±3.14 / 283.14 ms │     no change │
│ QQuery 49 │        248.11 / 249.57 ±1.04 / 250.62 ms │         248.92 / 251.24 ±2.46 / 255.40 ms │     no change │
│ QQuery 50 │        206.25 / 213.13 ±6.23 / 221.70 ms │         207.29 / 211.90 ±4.84 / 220.74 ms │     no change │
│ QQuery 51 │        177.82 / 180.51 ±2.73 / 185.40 ms │         177.25 / 180.08 ±1.96 / 183.21 ms │     no change │
│ QQuery 52 │        106.37 / 107.58 ±1.19 / 109.72 ms │         108.10 / 110.38 ±3.65 / 117.66 ms │     no change │
│ QQuery 53 │        102.35 / 102.91 ±0.51 / 103.81 ms │         103.08 / 103.83 ±0.52 / 104.44 ms │     no change │
│ QQuery 54 │        144.41 / 145.55 ±1.36 / 148.11 ms │         146.84 / 148.64 ±2.71 / 153.99 ms │     no change │
│ QQuery 55 │        105.84 / 106.60 ±0.41 / 106.90 ms │         107.46 / 108.94 ±1.46 / 111.39 ms │     no change │
│ QQuery 56 │        140.20 / 140.87 ±0.43 / 141.54 ms │         142.50 / 143.37 ±1.21 / 145.73 ms │     no change │
│ QQuery 57 │        165.84 / 167.24 ±0.82 / 168.00 ms │         166.47 / 169.75 ±2.84 / 174.33 ms │     no change │
│ QQuery 58 │        309.32 / 311.13 ±1.29 / 312.44 ms │         309.87 / 312.60 ±1.86 / 315.70 ms │     no change │
│ QQuery 59 │        197.60 / 199.89 ±2.03 / 202.96 ms │         194.47 / 197.05 ±1.60 / 199.42 ms │     no change │
│ QQuery 60 │        140.31 / 141.98 ±1.54 / 144.82 ms │         142.04 / 143.39 ±1.11 / 145.41 ms │     no change │
│ QQuery 61 │           13.89 / 14.02 ±0.07 / 14.09 ms │            13.73 / 13.80 ±0.09 / 13.97 ms │     no change │
│ QQuery 62 │        864.93 / 878.32 ±9.06 / 893.44 ms │         881.62 / 892.09 ±6.49 / 901.63 ms │     no change │
│ QQuery 63 │        102.05 / 102.83 ±0.90 / 104.57 ms │         101.83 / 102.26 ±0.33 / 102.73 ms │     no change │
│ QQuery 64 │        659.96 / 664.87 ±3.92 / 670.88 ms │         661.01 / 666.17 ±4.69 / 674.38 ms │     no change │
│ QQuery 65 │        245.79 / 248.14 ±2.21 / 252.05 ms │         248.12 / 249.64 ±1.52 / 251.94 ms │     no change │
│ QQuery 66 │        213.16 / 223.11 ±8.45 / 237.16 ms │         214.02 / 219.69 ±7.09 / 233.47 ms │     no change │
│ QQuery 67 │        295.32 / 301.32 ±7.16 / 313.60 ms │         294.35 / 300.51 ±7.89 / 315.29 ms │     no change │
│ QQuery 68 │              8.45 / 8.66 ±0.16 / 8.92 ms │               8.77 / 8.92 ±0.16 / 9.21 ms │     no change │
│ QQuery 69 │          96.04 / 99.35 ±4.40 / 108.04 ms │          97.56 / 100.91 ±5.10 / 111.04 ms │     no change │
│ QQuery 70 │        313.71 / 322.41 ±8.67 / 336.44 ms │         313.43 / 318.70 ±4.71 / 325.79 ms │     no change │
│ QQuery 71 │        135.02 / 136.58 ±2.69 / 141.92 ms │         133.03 / 135.27 ±2.60 / 140.21 ms │     no change │
│ QQuery 72 │        599.71 / 609.51 ±6.05 / 616.80 ms │         586.78 / 592.81 ±5.29 / 602.16 ms │     no change │
│ QQuery 73 │              6.93 / 7.06 ±0.13 / 7.30 ms │               6.70 / 6.84 ±0.14 / 7.11 ms │     no change │
│ QQuery 74 │        623.62 / 629.17 ±3.95 / 633.45 ms │         581.27 / 593.31 ±8.22 / 603.77 ms │ +1.06x faster │
│ QQuery 75 │        269.26 / 272.22 ±2.19 / 275.36 ms │         266.86 / 268.60 ±1.71 / 271.28 ms │     no change │
│ QQuery 76 │        131.03 / 131.91 ±0.67 / 132.69 ms │         130.17 / 131.56 ±1.01 / 133.30 ms │     no change │
│ QQuery 77 │        187.28 / 188.77 ±0.78 / 189.60 ms │         186.20 / 187.71 ±1.08 / 189.41 ms │     no change │
│ QQuery 78 │        332.70 / 336.39 ±3.50 / 342.82 ms │         330.98 / 333.14 ±1.57 / 335.00 ms │     no change │
│ QQuery 79 │        231.34 / 234.12 ±2.70 / 237.76 ms │         233.94 / 236.71 ±2.31 / 240.43 ms │     no change │
│ QQuery 80 │        317.24 / 318.99 ±1.67 / 321.84 ms │         318.14 / 320.46 ±1.59 / 322.59 ms │     no change │
│ QQuery 81 │           26.16 / 26.61 ±0.39 / 27.17 ms │            25.92 / 27.68 ±2.88 / 33.42 ms │     no change │
│ QQuery 82 │           39.92 / 40.43 ±0.42 / 41.15 ms │            39.63 / 40.08 ±0.41 / 40.76 ms │     no change │
│ QQuery 83 │           37.30 / 37.74 ±0.32 / 38.19 ms │            37.60 / 37.79 ±0.21 / 38.18 ms │     no change │
│ QQuery 84 │           46.45 / 46.57 ±0.12 / 46.77 ms │            46.60 / 46.81 ±0.23 / 47.24 ms │     no change │
│ QQuery 85 │        140.44 / 141.76 ±1.35 / 144.18 ms │         141.33 / 142.49 ±1.25 / 144.85 ms │     no change │
│ QQuery 86 │           37.55 / 37.79 ±0.20 / 38.08 ms │            37.32 / 37.88 ±0.36 / 38.17 ms │     no change │
│ QQuery 87 │              3.51 / 3.61 ±0.18 / 3.97 ms │               3.54 / 3.67 ±0.22 / 4.10 ms │     no change │
│ QQuery 88 │         98.70 / 100.07 ±0.96 / 101.71 ms │          98.97 / 101.41 ±4.04 / 109.47 ms │     no change │
│ QQuery 89 │        116.38 / 117.66 ±1.16 / 119.73 ms │         115.87 / 116.72 ±0.44 / 117.17 ms │     no change │
│ QQuery 90 │           22.33 / 22.53 ±0.20 / 22.87 ms │            22.55 / 23.02 ±0.29 / 23.44 ms │     no change │
│ QQuery 91 │           58.37 / 58.71 ±0.40 / 59.48 ms │            58.94 / 61.52 ±2.50 / 66.27 ms │     no change │
│ QQuery 92 │           56.35 / 56.94 ±0.49 / 57.83 ms │            57.10 / 57.51 ±0.31 / 57.95 ms │     no change │
│ QQuery 93 │        180.93 / 181.78 ±0.80 / 183.21 ms │         180.08 / 182.43 ±2.10 / 185.38 ms │     no change │
│ QQuery 94 │           60.46 / 61.05 ±0.36 / 61.45 ms │            61.36 / 61.67 ±0.32 / 62.28 ms │     no change │
│ QQuery 95 │        125.06 / 126.17 ±1.41 / 128.90 ms │         125.79 / 126.18 ±0.33 / 126.68 ms │     no change │
│ QQuery 96 │           67.86 / 68.97 ±0.83 / 70.38 ms │            67.86 / 68.71 ±0.76 / 69.88 ms │     no change │
│ QQuery 97 │        116.78 / 117.99 ±0.75 / 118.76 ms │         116.48 / 117.55 ±0.92 / 119.08 ms │     no change │
│ QQuery 98 │        147.82 / 150.34 ±1.53 / 152.44 ms │         149.59 / 151.12 ±1.49 / 153.78 ms │     no change │
│ QQuery 99 │ 10793.84 / 10890.70 ±94.41 / 11070.19 ms │ 10765.75 / 10921.91 ±131.75 / 11080.66 ms │     no change │
└───────────┴──────────────────────────────────────────┴───────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                                ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                                │ 30933.92ms │
│ Total Time (repartition-single-task-per-input)   │ 30831.47ms │
│ Average Time (HEAD)                              │   312.46ms │
│ Average Time (repartition-single-task-per-input) │   311.43ms │
│ Queries Faster                                   │          1 │
│ Queries Slower                                   │          1 │
│ Queries with No Change                           │         97 │
│ Queries with Failure                             │          0 │
└──────────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

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

tpcds — branch

Metric Value
Wall time 155.0s
Peak memory 6.2 GiB
Avg memory 5.5 GiB
CPU user 257.4s
CPU sys 8.4s
Peak spill 0 B

File an issue against this benchmark runner

@Dandandan Dandandan closed this Apr 22, 2026
@adriangbot
Copy link
Copy Markdown

Benchmark for this request hit the 7200s job deadline before finishing.

Benchmarks requested: tpch

Kubernetes message
Job was active longer than specified deadline

File an issue against this benchmark runner

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

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants