You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "Dandandan (via GitHub)" <gi...@apache.org> on 2026/05/28 19:35:46 UTC
[PR] Avoid TopK sort-key work for rejected batches [datafusion]
Dandandan opened a new pull request, #22603:
URL: https://github.com/apache/datafusion/pull/22603
## Which issue does this PR close?
N/A. Follow-up performance cleanup found while profiling ClickBench TopK queries.
## Rationale for this change
`TopK::insert_batch` evaluated sort expressions before checking its dynamic filter. When the dynamic filter rejected the whole batch, this still allocated sort-key arrays and row-conversion scratch that would never be used. Scalar dynamic filters were also expanded into full boolean arrays before the all-true/all-false check.
## What changes are included in this PR?
- Evaluate the TopK dynamic filter before building sort keys.
- Fast-path scalar boolean dynamic filters so scalar true does not allocate a boolean array, and scalar false/null returns before sort-key evaluation.
- Keep existing array-filter behavior for partial matches, including null-mask preparation and filter predicate reuse.
- Add a unit test for the scalar-false dynamic-filter path.
## Are these changes tested?
- `cargo fmt --all`
- `cargo test -p datafusion-physical-plan topk -- --nocapture`
- `cargo clippy --all-targets --all-features -- -D warnings`
- `cargo run --profile release-nonlto --bin dfbench -- clickbench -q 21 -i 1 -n 8`
- `cargo run --profile release-nonlto --bin dfbench -- clickbench -q 22 -i 1 -n 8`
- `cargo run --profile release-nonlto --bin dfbench -- clickbench -q 23 -i 1 -n 8`
- `cargo run --profile release-nonlto --bin dfbench -- clickbench -q 33 -i 1 -n 8`
- `cargo run --profile release-nonlto --bin dfbench -- clickbench -q 34 -i 1 -n 8`
- `cargo run --profile release-nonlto --bin mem_profile -- --bench-profile release-nonlto clickbench --query 23 -i 1 -n 8`
Local non-LTO smoke results: q21 1179.87 ms, q22 2206.03 ms, q23 5718.53 ms on repeat, q33 2413.82 ms on repeat, q34 2259.08 ms. q23 mem_profile reported 5753.62 ms, peak RSS 2.2 GB, peak commit 2.3 GB.
## Are there any user-facing changes?
No. This is an execution-time allocation/performance cleanup.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Avoid TopK sort-key work for rejected batches [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #22603:
URL: https://github.com/apache/datafusion/pull/22603#issuecomment-4567581257
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/22603#issuecomment-4567563662)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4567563662-353-vzs5q 6.12.68+ #1 SMP Wed Apr 1 02:23:28 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 codex/topk-dynamic-filter-allocation (f9ce07f2cb5c4982421f91fc3a9f7fbe2912bb73) to 0da8961 (merge-base) [diff](https://github.com/apache/datafusion/compare/0da89616e43299546ed8405cfa900d0f97cb2515..f9ce07f2cb5c4982421f91fc3a9f7fbe2912bb73) using: clickbench_partitioned
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Avoid TopK sort-key work for rejected batches [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on PR #22603:
URL: https://github.com/apache/datafusion/pull/22603#issuecomment-4567563662
run benchmarks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Avoid TopK sort-key work for rejected batches [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #22603:
URL: https://github.com/apache/datafusion/pull/22603#issuecomment-4567716524
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/22603#issuecomment-4567563662)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and codex_topk-dynamic-filter-allocation
--------------------
Benchmark clickbench_partitioned.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ codex_topk-dynamic-filter-allocation โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 0 โ 1.13 / 4.54 ยฑ6.76 / 18.05 ms โ 1.13 / 4.55 ยฑ6.81 / 18.17 ms โ no change โ
โ QQuery 1 โ 12.29 / 12.47 ยฑ0.11 / 12.62 ms โ 12.69 / 12.94 ยฑ0.14 / 13.08 ms โ no change โ
โ QQuery 2 โ 35.18 / 35.57 ยฑ0.26 / 35.84 ms โ 35.26 / 35.48 ยฑ0.18 / 35.75 ms โ no change โ
โ QQuery 3 โ 30.28 / 31.65 ยฑ0.75 / 32.44 ms โ 30.20 / 30.67 ยฑ0.32 / 31.06 ms โ no change โ
โ QQuery 4 โ 218.53 / 223.78 ยฑ6.10 / 235.75 ms โ 219.36 / 222.33 ยฑ3.42 / 228.88 ms โ no change โ
โ QQuery 5 โ 267.00 / 270.33 ยฑ2.78 / 274.78 ms โ 265.17 / 267.94 ยฑ1.70 / 270.37 ms โ no change โ
โ QQuery 6 โ 1.18 / 1.31 ยฑ0.23 / 1.78 ms โ 1.17 / 1.31 ยฑ0.22 / 1.73 ms โ no change โ
โ QQuery 7 โ 13.16 / 13.25 ยฑ0.08 / 13.35 ms โ 13.67 / 13.89 ยฑ0.14 / 14.06 ms โ no change โ
โ QQuery 8 โ 312.92 / 315.78 ยฑ1.78 / 318.31 ms โ 311.71 / 316.13 ยฑ3.19 / 321.29 ms โ no change โ
โ QQuery 9 โ 439.61 / 446.05 ยฑ4.10 / 451.09 ms โ 439.65 / 446.28 ยฑ4.55 / 450.54 ms โ no change โ
โ QQuery 10 โ 67.97 / 68.43 ยฑ0.38 / 69.01 ms โ 68.41 / 69.60 ยฑ1.06 / 71.39 ms โ no change โ
โ QQuery 11 โ 79.73 / 80.85 ยฑ0.78 / 81.69 ms โ 79.69 / 80.49 ยฑ0.77 / 81.92 ms โ no change โ
โ QQuery 12 โ 263.41 / 264.81 ยฑ2.11 / 269.01 ms โ 258.91 / 265.34 ยฑ4.73 / 271.16 ms โ no change โ
โ QQuery 13 โ 356.24 / 377.15 ยฑ22.24 / 417.20 ms โ 352.74 / 369.26 ยฑ11.68 / 381.92 ms โ no change โ
โ QQuery 14 โ 274.10 / 277.63 ยฑ3.21 / 283.42 ms โ 275.34 / 278.70 ยฑ4.27 / 286.83 ms โ no change โ
โ QQuery 15 โ 263.64 / 266.83 ยฑ2.49 / 270.74 ms โ 260.85 / 264.73 ยฑ3.24 / 269.44 ms โ no change โ
โ QQuery 16 โ 603.60 / 608.27 ยฑ3.36 / 612.34 ms โ 597.09 / 606.34 ยฑ6.25 / 613.38 ms โ no change โ
โ QQuery 17 โ 603.16 / 610.16 ยฑ6.00 / 619.79 ms โ 610.40 / 614.72 ยฑ5.34 / 624.97 ms โ no change โ
โ QQuery 18 โ 1217.39 / 1237.83 ยฑ15.93 / 1265.58 ms โ 1223.47 / 1248.57 ยฑ25.69 / 1297.93 ms โ no change โ
โ QQuery 19 โ 27.50 / 28.58 ยฑ1.60 / 31.71 ms โ 27.60 / 28.35 ยฑ0.76 / 29.45 ms โ no change โ
โ QQuery 20 โ 511.98 / 517.44 ยฑ7.55 / 532.41 ms โ 511.29 / 519.27 ยฑ6.69 / 531.53 ms โ no change โ
โ QQuery 21 โ 589.53 / 592.24 ยฑ2.63 / 595.88 ms โ 590.12 / 591.54 ยฑ1.39 / 593.77 ms โ no change โ
โ QQuery 22 โ 1035.90 / 1048.57 ยฑ10.11 / 1065.22 ms โ 1054.82 / 1068.80 ยฑ7.51 / 1076.86 ms โ no change โ
โ QQuery 23 โ 3139.30 / 3155.67 ยฑ9.64 / 3166.35 ms โ 3105.53 / 3131.28 ยฑ16.12 / 3148.94 ms โ no change โ
โ QQuery 24 โ 41.21 / 42.52 ยฑ2.19 / 46.89 ms โ 41.42 / 42.63 ยฑ1.20 / 44.79 ms โ no change โ
โ QQuery 25 โ 109.70 / 112.78 ยฑ3.58 / 119.35 ms โ 109.83 / 117.33 ยฑ8.65 / 132.91 ms โ no change โ
โ QQuery 26 โ 42.05 / 44.08 ยฑ2.52 / 48.96 ms โ 41.59 / 42.11 ยฑ0.73 / 43.55 ms โ no change โ
โ QQuery 27 โ 661.82 / 671.31 ยฑ9.19 / 685.18 ms โ 663.08 / 671.30 ยฑ6.28 / 680.56 ms โ no change โ
โ QQuery 28 โ 2993.81 / 3017.17 ยฑ19.26 / 3042.25 ms โ 2999.05 / 3030.47 ยฑ18.76 / 3053.62 ms โ no change โ
โ QQuery 29 โ 39.37 / 44.22 ยฑ8.99 / 62.18 ms โ 39.35 / 46.29 ยฑ8.44 / 60.39 ms โ no change โ
โ QQuery 30 โ 291.16 / 298.38 ยฑ4.64 / 305.38 ms โ 291.59 / 300.64 ยฑ9.63 / 318.40 ms โ no change โ
โ QQuery 31 โ 279.84 / 286.09 ยฑ6.54 / 296.27 ms โ 281.37 / 291.66 ยฑ7.26 / 300.29 ms โ no change โ
โ QQuery 32 โ 894.85 / 924.34 ยฑ31.41 / 982.73 ms โ 900.49 / 944.87 ยฑ35.39 / 998.80 ms โ no change โ
โ QQuery 33 โ 1404.28 / 1420.42 ยฑ8.68 / 1428.56 ms โ 1375.74 / 1404.34 ยฑ20.18 / 1434.26 ms โ no change โ
โ QQuery 34 โ 1408.77 / 1417.31 ยฑ10.80 / 1437.48 ms โ 1377.48 / 1441.50 ยฑ37.26 / 1486.30 ms โ no change โ
โ QQuery 35 โ 270.15 / 285.46 ยฑ17.04 / 317.64 ms โ 269.27 / 285.89 ยฑ18.29 / 321.23 ms โ no change โ
โ QQuery 36 โ 64.29 / 66.95 ยฑ2.69 / 70.88 ms โ 63.32 / 65.34 ยฑ1.71 / 68.43 ms โ no change โ
โ QQuery 37 โ 34.95 / 36.88 ยฑ2.70 / 42.22 ms โ 35.64 / 42.56 ยฑ8.77 / 59.59 ms โ 1.15x slower โ
โ QQuery 38 โ 39.77 / 44.02 ยฑ2.88 / 47.91 ms โ 41.45 / 46.21 ยฑ3.21 / 49.68 ms โ no change โ
โ QQuery 39 โ 137.29 / 147.92 ยฑ6.86 / 155.21 ms โ 129.09 / 142.57 ยฑ9.63 / 152.95 ms โ no change โ
โ QQuery 40 โ 13.70 / 13.99 ยฑ0.30 / 14.54 ms โ 13.59 / 15.80 ยฑ4.11 / 24.01 ms โ 1.13x slower โ
โ QQuery 41 โ 13.16 / 13.33 ยฑ0.09 / 13.42 ms โ 13.32 / 16.69 ยฑ3.91 / 23.62 ms โ 1.25x slower โ
โ QQuery 42 โ 12.55 / 14.51 ยฑ3.35 / 21.20 ms โ 12.72 / 13.39 ยฑ0.90 / 15.07 ms โ +1.08x faster โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 19390.90ms โ
โ Total Time (codex_topk-dynamic-filter-allocation) โ 19450.12ms โ
โ Average Time (HEAD) โ 450.95ms โ
โ Average Time (codex_topk-dynamic-filter-allocation) โ 452.33ms โ
โ Queries Faster โ 1 โ
โ Queries Slower โ 3 โ
โ Queries with No Change โ 39 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**clickbench_partitioned โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 100.0s |
| Peak memory | 31.0 GiB |
| Avg memory | 23.2 GiB |
| CPU user | 1012.1s |
| CPU sys | 61.3s |
| Peak spill | 0 B |
**clickbench_partitioned โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 100.0s |
| Peak memory | 32.0 GiB |
| Avg memory | 23.6 GiB |
| CPU user | 1012.0s |
| CPU sys | 61.5s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Avoid TopK sort-key work for rejected batches [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #22603:
URL: https://github.com/apache/datafusion/pull/22603#issuecomment-4567694400
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/22603#issuecomment-4567563662)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and codex_topk-dynamic-filter-allocation
--------------------
Benchmark tpcds_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโ
โ Query โ HEAD โ codex_topk-dynamic-filter-allocation โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 5.76 / 6.32 ยฑ0.99 / 8.28 ms โ 5.73 / 6.23 ยฑ0.90 / 8.02 ms โ no change โ
โ QQuery 2 โ 80.58 / 81.06 ยฑ0.42 / 81.68 ms โ 80.01 / 80.47 ยฑ0.32 / 80.85 ms โ no change โ
โ QQuery 3 โ 28.90 / 29.23 ยฑ0.25 / 29.60 ms โ 28.86 / 29.23 ยฑ0.28 / 29.58 ms โ no change โ
โ QQuery 4 โ 513.09 / 518.14 ยฑ3.20 / 521.47 ms โ 504.83 / 512.96 ยฑ4.73 / 518.77 ms โ no change โ
โ QQuery 5 โ 51.16 / 51.54 ยฑ0.34 / 51.95 ms โ 51.01 / 51.24 ยฑ0.21 / 51.53 ms โ no change โ
โ QQuery 6 โ 36.20 / 36.50 ยฑ0.18 / 36.75 ms โ 35.35 / 35.85 ยฑ0.35 / 36.42 ms โ no change โ
โ QQuery 7 โ 109.37 / 110.04 ยฑ0.79 / 111.49 ms โ 107.47 / 109.28 ยฑ1.30 / 111.04 ms โ no change โ
โ QQuery 8 โ 36.86 / 37.17 ยฑ0.18 / 37.39 ms โ 36.25 / 36.55 ยฑ0.45 / 37.45 ms โ no change โ
โ QQuery 9 โ 52.61 / 54.94 ยฑ1.26 / 56.33 ms โ 52.52 / 54.12 ยฑ1.26 / 56.31 ms โ no change โ
โ QQuery 10 โ 80.72 / 82.06 ยฑ1.76 / 85.54 ms โ 80.28 / 80.62 ยฑ0.28 / 80.93 ms โ no change โ
โ QQuery 11 โ 319.39 / 324.27 ยฑ3.94 / 328.45 ms โ 313.28 / 316.87 ยฑ3.17 / 322.74 ms โ no change โ
โ QQuery 12 โ 28.87 / 29.34 ยฑ0.38 / 29.79 ms โ 28.44 / 28.80 ยฑ0.27 / 29.04 ms โ no change โ
โ QQuery 13 โ 127.56 / 128.27 ยฑ0.78 / 129.50 ms โ 126.68 / 127.97 ยฑ1.47 / 130.70 ms โ no change โ
โ QQuery 14 โ 504.95 / 507.02 ยฑ2.01 / 510.88 ms โ 504.44 / 506.62 ยฑ2.05 / 509.31 ms โ no change โ
โ QQuery 15 โ 60.27 / 61.46 ยฑ0.83 / 62.87 ms โ 60.65 / 61.81 ยฑ0.82 / 62.89 ms โ no change โ
โ QQuery 16 โ 6.41 / 6.59 ยฑ0.21 / 6.99 ms โ 6.44 / 6.58 ยฑ0.18 / 6.94 ms โ no change โ
โ QQuery 17 โ 80.53 / 81.33 ยฑ0.43 / 81.75 ms โ 80.67 / 81.73 ยฑ0.65 / 82.45 ms โ no change โ
โ QQuery 18 โ 152.23 / 153.66 ยฑ1.17 / 155.73 ms โ 151.84 / 152.68 ยฑ0.69 / 153.67 ms โ no change โ
โ QQuery 19 โ 40.74 / 41.15 ยฑ0.27 / 41.58 ms โ 41.22 / 41.43 ยฑ0.20 / 41.72 ms โ no change โ
โ QQuery 20 โ 34.74 / 35.06 ยฑ0.23 / 35.28 ms โ 35.11 / 35.78 ยฑ0.37 / 36.19 ms โ no change โ
โ QQuery 21 โ 16.91 / 17.06 ยฑ0.12 / 17.25 ms โ 16.93 / 17.24 ยฑ0.23 / 17.65 ms โ no change โ
โ QQuery 22 โ 62.73 / 63.36 ยฑ0.57 / 64.10 ms โ 62.34 / 62.81 ยฑ0.31 / 63.28 ms โ no change โ
โ QQuery 23 โ 482.35 / 485.13 ยฑ2.30 / 488.32 ms โ 481.27 / 486.34 ยฑ4.49 / 492.17 ms โ no change โ
โ QQuery 24 โ 235.80 / 237.54 ยฑ1.14 / 239.27 ms โ 234.32 / 237.17 ยฑ3.94 / 244.69 ms โ no change โ
โ QQuery 25 โ 114.79 / 116.67 ยฑ2.46 / 121.40 ms โ 114.10 / 115.16 ยฑ0.76 / 115.95 ms โ no change โ
โ QQuery 26 โ 70.49 / 70.81 ยฑ0.25 / 71.19 ms โ 69.63 / 70.49 ยฑ0.52 / 71.11 ms โ no change โ
โ QQuery 27 โ 6.44 / 6.58 ยฑ0.20 / 6.97 ms โ 6.45 / 6.57 ยฑ0.15 / 6.86 ms โ no change โ
โ QQuery 28 โ 57.55 / 62.12 ยฑ4.07 / 69.03 ms โ 60.68 / 62.08 ยฑ1.34 / 64.48 ms โ no change โ
โ QQuery 29 โ 98.04 / 99.52 ยฑ1.03 / 101.05 ms โ 98.78 / 101.95 ยฑ3.81 / 108.69 ms โ no change โ
โ QQuery 30 โ 29.87 / 30.09 ยฑ0.17 / 30.37 ms โ 30.07 / 30.54 ยฑ0.30 / 30.87 ms โ no change โ
โ QQuery 31 โ 111.63 / 113.94 ยฑ3.46 / 120.82 ms โ 111.67 / 112.24 ยฑ0.39 / 112.78 ms โ no change โ
โ QQuery 32 โ 20.00 / 20.56 ยฑ0.42 / 21.28 ms โ 20.10 / 20.44 ยฑ0.46 / 21.34 ms โ no change โ
โ QQuery 33 โ 38.50 / 38.84 ยฑ0.26 / 39.16 ms โ 38.66 / 38.81 ยฑ0.11 / 38.94 ms โ no change โ
โ QQuery 34 โ 9.14 / 9.59 ยฑ0.37 / 10.12 ms โ 9.27 / 9.57 ยฑ0.26 / 9.98 ms โ no change โ
โ QQuery 35 โ 80.62 / 80.78 ยฑ0.18 / 81.08 ms โ 80.09 / 80.48 ยฑ0.31 / 81.02 ms โ no change โ
โ QQuery 36 โ 5.88 / 6.60 ยฑ1.32 / 9.25 ms โ 5.99 / 6.11 ยฑ0.15 / 6.39 ms โ +1.08x faster โ
โ QQuery 37 โ 7.17 / 7.29 ยฑ0.07 / 7.37 ms โ 6.76 / 6.96 ยฑ0.13 / 7.13 ms โ no change โ
โ QQuery 38 โ 68.21 / 68.99 ยฑ0.64 / 69.95 ms โ 68.12 / 68.84 ยฑ0.45 / 69.38 ms โ no change โ
โ QQuery 39 โ 97.90 / 98.38 ยฑ0.51 / 99.29 ms โ 97.83 / 98.74 ยฑ0.90 / 100.26 ms โ no change โ
โ QQuery 40 โ 22.74 / 23.62 ยฑ0.92 / 25.00 ms โ 22.72 / 22.91 ยฑ0.17 / 23.15 ms โ no change โ
โ QQuery 41 โ 11.47 / 11.67 ยฑ0.26 / 12.17 ms โ 11.44 / 11.63 ยฑ0.13 / 11.82 ms โ no change โ
โ QQuery 42 โ 24.09 / 24.50 ยฑ0.31 / 25.01 ms โ 24.37 / 25.23 ยฑ1.37 / 27.95 ms โ no change โ
โ QQuery 43 โ 4.82 / 4.92 ยฑ0.10 / 5.10 ms โ 4.71 / 4.84 ยฑ0.10 / 5.03 ms โ no change โ
โ QQuery 44 โ 10.77 / 10.84 ยฑ0.09 / 11.00 ms โ 10.78 / 11.33 ยฑ0.31 / 11.71 ms โ no change โ
โ QQuery 45 โ 39.43 / 40.04 ยฑ0.38 / 40.43 ms โ 40.25 / 40.99 ยฑ0.42 / 41.45 ms โ no change โ
โ QQuery 46 โ 12.81 / 13.21 ยฑ0.28 / 13.54 ms โ 12.81 / 12.93 ยฑ0.19 / 13.30 ms โ no change โ
โ QQuery 47 โ 228.41 / 229.99 ยฑ2.09 / 234.05 ms โ 228.09 / 229.78 ยฑ1.14 / 231.49 ms โ no change โ
โ QQuery 48 โ 103.17 / 103.90 ยฑ0.51 / 104.73 ms โ 102.26 / 103.97 ยฑ1.68 / 106.98 ms โ no change โ
โ QQuery 49 โ 78.86 / 79.47 ยฑ0.62 / 80.32 ms โ 79.45 / 79.71 ยฑ0.44 / 80.58 ms โ no change โ
โ QQuery 50 โ 60.07 / 60.22 ยฑ0.12 / 60.38 ms โ 60.04 / 60.24 ยฑ0.19 / 60.57 ms โ no change โ
โ QQuery 51 โ 89.69 / 94.28 ยฑ2.95 / 98.97 ms โ 93.44 / 94.51 ยฑ1.23 / 96.89 ms โ no change โ
โ QQuery 52 โ 24.17 / 24.41 ยฑ0.17 / 24.62 ms โ 24.07 / 24.31 ยฑ0.18 / 24.59 ms โ no change โ
โ QQuery 53 โ 29.55 / 29.80 ยฑ0.13 / 29.88 ms โ 29.58 / 29.74 ยฑ0.14 / 29.95 ms โ no change โ
โ QQuery 54 โ 54.46 / 54.96 ยฑ0.39 / 55.44 ms โ 54.32 / 54.80 ยฑ0.31 / 55.24 ms โ no change โ
โ QQuery 55 โ 23.49 / 25.12 ยฑ1.86 / 28.19 ms โ 23.52 / 24.20 ยฑ0.97 / 26.12 ms โ no change โ
โ QQuery 56 โ 38.79 / 39.23 ยฑ0.50 / 40.13 ms โ 38.93 / 39.45 ยฑ0.77 / 40.97 ms โ no change โ
โ QQuery 57 โ 175.67 / 177.51 ยฑ2.34 / 182.09 ms โ 174.33 / 176.76 ยฑ1.94 / 180.21 ms โ no change โ
โ QQuery 58 โ 116.39 / 117.01 ยฑ0.35 / 117.37 ms โ 116.92 / 117.64 ยฑ0.90 / 119.37 ms โ no change โ
โ QQuery 59 โ 117.17 / 118.96 ยฑ1.21 / 120.44 ms โ 117.09 / 118.01 ยฑ0.68 / 118.99 ms โ no change โ
โ QQuery 60 โ 38.80 / 39.10 ยฑ0.25 / 39.53 ms โ 39.11 / 39.54 ยฑ0.33 / 40.07 ms โ no change โ
โ QQuery 61 โ 12.64 / 12.84 ยฑ0.20 / 13.21 ms โ 12.52 / 12.71 ยฑ0.16 / 13.01 ms โ no change โ
โ QQuery 62 โ 45.89 / 46.11 ยฑ0.17 / 46.36 ms โ 45.82 / 46.03 ยฑ0.14 / 46.24 ms โ no change โ
โ QQuery 63 โ 29.54 / 30.40 ยฑ0.74 / 31.76 ms โ 29.43 / 29.84 ยฑ0.24 / 30.08 ms โ no change โ
โ QQuery 64 โ 462.70 / 468.22 ยฑ4.15 / 474.68 ms โ 461.67 / 466.16 ยฑ4.72 / 473.74 ms โ no change โ
โ QQuery 65 โ 148.19 / 150.52 ยฑ1.86 / 152.62 ms โ 147.95 / 150.96 ยฑ1.63 / 152.51 ms โ no change โ
โ QQuery 66 โ 77.94 / 79.65 ยฑ2.64 / 84.91 ms โ 78.22 / 80.12 ยฑ2.70 / 85.30 ms โ no change โ
โ QQuery 67 โ 244.28 / 248.80 ยฑ4.87 / 256.02 ms โ 242.56 / 248.56 ยฑ3.82 / 254.07 ms โ no change โ
โ QQuery 68 โ 12.78 / 12.99 ยฑ0.26 / 13.49 ms โ 12.92 / 13.04 ยฑ0.16 / 13.36 ms โ no change โ
โ QQuery 69 โ 76.33 / 78.21 ยฑ1.97 / 81.19 ms โ 76.12 / 76.81 ยฑ0.79 / 78.35 ms โ no change โ
โ QQuery 70 โ 104.75 / 108.55 ยฑ2.85 / 112.04 ms โ 104.71 / 110.00 ยฑ4.91 / 116.15 ms โ no change โ
โ QQuery 71 โ 35.37 / 36.00 ยฑ0.51 / 36.67 ms โ 35.83 / 36.09 ยฑ0.20 / 36.34 ms โ no change โ
โ QQuery 72 โ 2125.49 / 2206.99 ยฑ100.46 / 2399.89 ms โ 2118.57 / 2179.10 ยฑ50.50 / 2270.34 ms โ no change โ
โ QQuery 73 โ 8.88 / 9.21 ยฑ0.26 / 9.68 ms โ 9.07 / 9.31 ยฑ0.25 / 9.79 ms โ no change โ
โ QQuery 74 โ 177.89 / 180.01 ยฑ2.33 / 184.34 ms โ 178.13 / 180.56 ยฑ3.61 / 187.69 ms โ no change โ
โ QQuery 75 โ 146.83 / 148.24 ยฑ2.41 / 153.06 ms โ 145.94 / 147.69 ยฑ2.65 / 152.93 ms โ no change โ
โ QQuery 76 โ 35.41 / 35.96 ยฑ0.37 / 36.36 ms โ 35.88 / 36.26 ยฑ0.36 / 36.83 ms โ no change โ
โ QQuery 77 โ 60.66 / 61.58 ยฑ1.52 / 64.62 ms โ 60.36 / 61.18 ยฑ0.52 / 61.69 ms โ no change โ
โ QQuery 78 โ 188.25 / 192.26 ยฑ4.50 / 200.81 ms โ 188.37 / 191.28 ยฑ3.02 / 196.54 ms โ no change โ
โ QQuery 79 โ 67.94 / 68.90 ยฑ0.95 / 70.70 ms โ 67.09 / 67.96 ยฑ0.99 / 69.86 ms โ no change โ
โ QQuery 80 โ 99.03 / 100.11 ยฑ0.72 / 101.29 ms โ 101.29 / 101.76 ยฑ0.47 / 102.65 ms โ no change โ
โ QQuery 81 โ 23.91 / 24.24 ยฑ0.24 / 24.54 ms โ 23.88 / 24.12 ยฑ0.18 / 24.36 ms โ no change โ
โ QQuery 82 โ 16.50 / 16.97 ยฑ0.45 / 17.79 ms โ 16.24 / 16.53 ยฑ0.18 / 16.75 ms โ no change โ
โ QQuery 83 โ 36.39 / 37.20 ยฑ0.54 / 37.86 ms โ 36.52 / 37.27 ยฑ1.04 / 39.32 ms โ no change โ
โ QQuery 84 โ 43.02 / 43.56 ยฑ0.32 / 43.99 ms โ 43.21 / 45.60 ยฑ3.72 / 52.93 ms โ no change โ
โ QQuery 85 โ 136.81 / 137.32 ยฑ0.59 / 138.31 ms โ 136.11 / 136.96 ยฑ0.88 / 138.53 ms โ no change โ
โ QQuery 86 โ 24.78 / 25.26 ยฑ0.33 / 25.77 ms โ 24.78 / 25.48 ยฑ0.41 / 26.05 ms โ no change โ
โ QQuery 87 โ 68.91 / 69.52 ยฑ0.57 / 70.34 ms โ 68.81 / 70.49 ยฑ1.39 / 72.20 ms โ no change โ
โ QQuery 88 โ 62.12 / 62.87 ยฑ0.46 / 63.34 ms โ 62.11 / 62.95 ยฑ0.58 / 63.66 ms โ no change โ
โ QQuery 89 โ 36.19 / 36.85 ยฑ0.61 / 37.93 ms โ 35.72 / 36.08 ยฑ0.25 / 36.47 ms โ no change โ
โ QQuery 90 โ 16.93 / 17.11 ยฑ0.22 / 17.49 ms โ 16.71 / 17.03 ยฑ0.30 / 17.51 ms โ no change โ
โ QQuery 91 โ 51.63 / 52.14 ยฑ0.27 / 52.34 ms โ 51.95 / 53.10 ยฑ1.14 / 55.03 ms โ no change โ
โ QQuery 92 โ 28.69 / 29.35 ยฑ0.56 / 30.29 ms โ 29.53 / 30.25 ยฑ0.60 / 31.11 ms โ no change โ
โ QQuery 93 โ 50.22 / 50.96 ยฑ0.43 / 51.54 ms โ 51.13 / 51.71 ยฑ0.66 / 52.97 ms โ no change โ
โ QQuery 94 โ 38.00 / 38.65 ยฑ0.44 / 39.15 ms โ 37.27 / 37.63 ยฑ0.28 / 38.11 ms โ no change โ
โ QQuery 95 โ 85.11 / 85.75 ยฑ0.64 / 86.95 ms โ 84.90 / 85.90 ยฑ0.97 / 87.24 ms โ no change โ
โ QQuery 96 โ 24.08 / 24.37 ยฑ0.36 / 25.08 ms โ 23.95 / 24.11 ยฑ0.17 / 24.42 ms โ no change โ
โ QQuery 97 โ 45.87 / 46.00 ยฑ0.08 / 46.09 ms โ 46.03 / 46.37 ยฑ0.38 / 46.95 ms โ no change โ
โ QQuery 98 โ 42.67 / 43.38 ยฑ0.59 / 44.41 ms โ 42.61 / 43.43 ยฑ0.91 / 45.12 ms โ no change โ
โ QQuery 99 โ 68.88 / 69.47 ยฑ0.51 / 70.32 ms โ 69.59 / 70.50 ยฑ0.90 / 72.04 ms โ no change โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 10518.26ms โ
โ Total Time (codex_topk-dynamic-filter-allocation) โ 10472.78ms โ
โ Average Time (HEAD) โ 106.25ms โ
โ Average Time (codex_topk-dynamic-filter-allocation) โ 105.79ms โ
โ Queries Faster โ 1 โ
โ Queries Slower โ 0 โ
โ Queries with No Change โ 98 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpcds โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 55.0s |
| Peak memory | 7.1 GiB |
| Avg memory | 6.3 GiB |
| CPU user | 237.1s |
| CPU sys | 5.7s |
| Peak spill | 0 B |
**tpcds โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 55.0s |
| Peak memory | 6.9 GiB |
| Avg memory | 6.2 GiB |
| CPU user | 235.8s |
| CPU sys | 5.7s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Avoid TopK sort-key work for rejected batches [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan closed pull request #22603: Avoid TopK sort-key work for rejected batches
URL: https://github.com/apache/datafusion/pull/22603
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Avoid TopK sort-key work for rejected batches [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #22603:
URL: https://github.com/apache/datafusion/pull/22603#issuecomment-4567585257
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/22603#issuecomment-4567563662)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4567563662-354-v2c9d 6.12.68+ #1 SMP Wed Apr 1 02:23:28 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 codex/topk-dynamic-filter-allocation (f9ce07f2cb5c4982421f91fc3a9f7fbe2912bb73) to 0da8961 (merge-base) [diff](https://github.com/apache/datafusion/compare/0da89616e43299546ed8405cfa900d0f97cb2515..f9ce07f2cb5c4982421f91fc3a9f7fbe2912bb73) using: tpcds
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Avoid TopK sort-key work for rejected batches [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #22603:
URL: https://github.com/apache/datafusion/pull/22603#issuecomment-4567582567
๐ค Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/22603#issuecomment-4567563662)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4567563662-355-27wnx 6.12.68+ #1 SMP Wed Apr 1 02:23:28 UTC 2026 aarch64 GNU/Linux`
<details><summary>CPU Details (lscpu)</summary>
```
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 codex/topk-dynamic-filter-allocation (f9ce07f2cb5c4982421f91fc3a9f7fbe2912bb73) to 0da8961 (merge-base) [diff](https://github.com/apache/datafusion/compare/0da89616e43299546ed8405cfa900d0f97cb2515..f9ce07f2cb5c4982421f91fc3a9f7fbe2912bb73) using: tpch
Results will be posted here when complete
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Avoid TopK sort-key work for rejected batches [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #22603:
URL: https://github.com/apache/datafusion/pull/22603#issuecomment-4567684550
๐ค Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/22603#issuecomment-4567563662)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
<details><summary>CPU Details (lscpu)</summary>
```
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>
<details><summary>Details</summary>
<p>
```
Comparing HEAD and codex_topk-dynamic-filter-allocation
--------------------
Benchmark tpch_sf1.json
--------------------
โโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโ
โ Query โ HEAD โ codex_topk-dynamic-filter-allocation โ Change โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ QQuery 1 โ 38.64 / 40.27 ยฑ1.39 / 42.12 ms โ 38.12 / 39.28 ยฑ2.01 / 43.29 ms โ no change โ
โ QQuery 2 โ 19.98 / 20.19 ยฑ0.23 / 20.63 ms โ 19.57 / 19.95 ยฑ0.31 / 20.48 ms โ no change โ
โ QQuery 3 โ 33.27 / 35.39 ยฑ2.35 / 39.46 ms โ 33.03 / 34.97 ยฑ1.63 / 37.07 ms โ no change โ
โ QQuery 4 โ 17.57 / 17.91 ยฑ0.25 / 18.24 ms โ 17.55 / 17.70 ยฑ0.10 / 17.84 ms โ no change โ
โ QQuery 5 โ 42.49 / 42.97 ยฑ0.33 / 43.32 ms โ 40.25 / 43.85 ยฑ2.38 / 47.10 ms โ no change โ
โ QQuery 6 โ 16.36 / 16.91 ยฑ0.75 / 18.36 ms โ 16.25 / 16.90 ยฑ0.84 / 18.56 ms โ no change โ
โ QQuery 7 โ 46.66 / 47.87 ยฑ1.34 / 50.20 ms โ 45.63 / 47.09 ยฑ1.92 / 50.68 ms โ no change โ
โ QQuery 8 โ 44.61 / 44.88 ยฑ0.27 / 45.32 ms โ 44.98 / 45.82 ยฑ1.35 / 48.52 ms โ no change โ
โ QQuery 9 โ 48.99 / 50.28 ยฑ0.97 / 51.61 ms โ 50.08 / 51.14 ยฑ0.64 / 51.95 ms โ no change โ
โ QQuery 10 โ 63.94 / 64.16 ยฑ0.13 / 64.35 ms โ 64.07 / 64.44 ยฑ0.61 / 65.65 ms โ no change โ
โ QQuery 11 โ 13.40 / 13.65 ยฑ0.19 / 13.94 ms โ 13.65 / 14.10 ยฑ0.63 / 15.33 ms โ no change โ
โ QQuery 12 โ 24.21 / 24.86 ยฑ0.63 / 25.78 ms โ 24.25 / 24.95 ยฑ0.47 / 25.48 ms โ no change โ
โ QQuery 13 โ 33.57 / 35.07 ยฑ1.32 / 37.15 ms โ 34.19 / 36.73 ยฑ2.00 / 39.88 ms โ no change โ
โ QQuery 14 โ 25.54 / 26.32 ยฑ0.69 / 27.50 ms โ 25.43 / 25.67 ยฑ0.19 / 25.94 ms โ no change โ
โ QQuery 15 โ 31.84 / 32.21 ยฑ0.54 / 33.28 ms โ 31.40 / 31.62 ยฑ0.26 / 32.11 ms โ no change โ
โ QQuery 16 โ 14.82 / 14.97 ยฑ0.15 / 15.25 ms โ 14.67 / 14.79 ยฑ0.12 / 15.01 ms โ no change โ
โ QQuery 17 โ 76.06 / 77.71 ยฑ1.01 / 78.87 ms โ 75.15 / 76.05 ยฑ0.94 / 77.87 ms โ no change โ
โ QQuery 18 โ 61.62 / 63.28 ยฑ1.42 / 65.66 ms โ 62.95 / 63.93 ยฑ0.84 / 65.48 ms โ no change โ
โ QQuery 19 โ 34.22 / 35.11 ยฑ0.99 / 36.61 ms โ 33.97 / 34.65 ยฑ0.75 / 36.10 ms โ no change โ
โ QQuery 20 โ 37.54 / 38.04 ยฑ0.26 / 38.25 ms โ 37.51 / 37.65 ยฑ0.09 / 37.74 ms โ no change โ
โ QQuery 21 โ 55.94 / 58.78 ยฑ2.82 / 64.04 ms โ 56.55 / 57.21 ยฑ0.45 / 57.94 ms โ no change โ
โ QQuery 22 โ 23.82 / 24.06 ยฑ0.38 / 24.82 ms โ 24.16 / 25.80 ยฑ2.76 / 31.32 ms โ 1.07x slower โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโ
โ Benchmark Summary โ โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Total Time (HEAD) โ 824.91ms โ
โ Total Time (codex_topk-dynamic-filter-allocation) โ 824.29ms โ
โ Average Time (HEAD) โ 37.50ms โ
โ Average Time (codex_topk-dynamic-filter-allocation) โ 37.47ms โ
โ Queries Faster โ 0 โ
โ Queries Slower โ 1 โ
โ Queries with No Change โ 21 โ
โ Queries with Failure โ 0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโ
```
</p>
</details>
<details><summary>Resource Usage</summary>
**tpch โ base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 5.4 GiB |
| Avg memory | 5.0 GiB |
| CPU user | 29.8s |
| CPU sys | 2.4s |
| Peak spill | 0 B |
**tpch โ branch**
| Metric | Value |
|--------|-------|
| Wall time | 5.0s |
| Peak memory | 5.5 GiB |
| Avg memory | 5.0 GiB |
| CPU user | 29.7s |
| CPU sys | 2.3s |
| Peak spill | 0 B |
</details>
---
[File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org