Repository navigation
Run four adaptive_aggregation_top_k_threshold queries on hits_10m_single - #131677
Conversation
Queries 0, 2, 3 and 6 of tests/performance/adaptive_aggregation_top_k_threshold.xml take 1.29-1.80 s on MasterCI amd (query 6 1.13 s on arm): each is a GROUP BY URL over the 100M rows of hits_100m_single, and the top-K threshold the file measures is a part of that time. They get disabled="1" and are appended as queries 7-10 with the table changed to hits_10m_single, nothing else. No existing query number or text changes. Measured with perf.py on official MasterCI release builds (ClickHouse#129258 series rig): - size: each copy takes 0.124-0.138 of its original's time (3 A/A passes x 25 runs), projected 174-223 ms amd and 109-140 ms arm; about 64 s amd and 40 s arm less query time per master perf job; - regime: the copies freeze every producer, merge, and the ascending ones settle (8-9 of 256 units merged at 8 threads, 9-13 at 12), like the originals do on CI; - sensitivity, the builds before and after ClickHouse#130281: originals 1.252x / 1.308x / 1.201x / 1.419x faster, copies 1.196x / 1.465x / 1.167x / 1.353x. Query 1 stays enabled: its ClickHouse#130281 effect locally (1.066x) is below three times the A/A noise, so there is no measurement that a copy keeps it. Related: ClickHouse#129258 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding) plus my own cold review (2 nits).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-11:20261114-195800 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261114-184900 |
|
Workflow [PR], commit [521cf0b] Summary: ✅
AI ReviewSummaryPR #131677 replaces four expensive performance queries with copies using The assessment of retained benchmark sensitivity relies on the author's reported A/A measurements, profile events, and comparisons across the optimization in #130281. Benchmarks were not rerun locally; the current CI reports contain no performance-query results. Final VerdictStatus: ✅ Approve |
3f5aeae
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Five queries of
adaptive_aggregation_top_k_threshold.xmltake more than 1 s on MasterCI since the file landed in #130281: queries 0-3 and 6 (numbered from 0, as in the report) at 1286-1799 ms on amd, and query 6 at 1128 ms on arm. Each is aGROUP BY URLover all 100M rows ofhits_100m_single; the shared top-K threshold the file measures is a part of that time (#130281 made these queries 7.5% to 29% faster on CI).No existing query number or text changes: 4 queries are disabled and 4 are appended. Queries 0, 2, 3 and 6 get
disabled="1"and are appended as 7-10 with one word changed:hits_100m_single->hits_10m_single(10M rows, loaded by every perf job).Measured with
perf.pyon official MasterCI release builds (3 A/A passes of up to 25 runs per query): each copy takes 0.12-0.14 of its original's time, so about 170-220 ms on amd and 110-140 ms on arm, and about 64 s (amd) and 40 s (arm) less query time per master perf job. The copies go through the adaptive aggregator like the originals at 8 and 12 threads (AdaptiveAggregation*profile events): every producer freezes, the merge runs, and the ascending ones skip all but 8-13 merge units. On the builds before and after #130281, queries 0, 2, 3 and 6 are 1.25x, 1.31x, 1.20x and 1.42x faster, their copies 1.20x, 1.47x, 1.17x and 1.35x.Query 1 stays as it is: locally #130281 made it only 1.07x faster, less than three times the A/A noise of my passes, so I have no measurement that a copy would keep that sensitivity.
Queries 7-10 start a new history (CIDB has only 0-6 for this test). 7 queries stay enabled, so every master job still runs all of them.
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/131677]
Version info
26.11.1.2327-master(included in26.11and later)