Skip to content

Make promql_duplicate_series_if perf queries long enough to be stable - #122061

Merged
alexey-milovidov merged 1 commit into
masterfrom
fix-promql-duplicate-series-perf-test-too-short
Sep 24, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
fix-promql-duplicate-series-perf-test-too-short

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

The queries of the promql_duplicate_series_if performance test ran in 3-17 ms (CI client_time: 3.2 ms, 7.4 ms, 17.2 ms), far below the 0.1 s minimum from tests/performance/scripts/README.md. Fixed per-query overhead dominated, so the test produced spurious "confirmed regressions" and instability in unrelated PRs, e.g. promql_duplicate_series_if #0 +15.6% in a Parquet-only PR:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=120907&sha=4772aa1520e801ada8bde3d7fe7f922dbd4d603e&name_0=PR&name_1=Performance%20Comparison%20%28amd_release%2C%20master_head%2C%204%2F6%29
It was also reported unstable in #121816 (#0) and #115053 (#2).

The 1M-row query duplicated the 10M-row one and measured only overhead, so it is dropped. The two remaining queries are scaled to 500M and 200M rows, about 0.2 s each locally.

Related: #120907

Changelog category (leave one):

  • CI Fix or improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/122061]

Version info

  • Merged into: 26.10.1.639-master (included in 26.10 and later)

The queries ran in 3-17 ms, far below the 0.1 s minimum from
`tests/performance/scripts/README.md`, so fixed per-query overhead dominated
and the test produced spurious regressions and instability in unrelated PRs,
e.g. `promql_duplicate_series_if #0` +15.6% in
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=120907&sha=4772aa1520e801ada8bde3d7fe7f922dbd4d603e&name_0=PR&name_1=Performance%20Comparison%20%28amd_release%2C%20master_head%2C%204%2F6%29
(#120907).

Drop the 1M-row query, which duplicated the 10M-row one and only measured
overhead, and scale the remaining two to about 0.2 s each.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [8a517c8]

Summary: ✅


AI Review

Summary

This PR recalibrates tests/performance/promql_duplicate_series_if.xml by dropping the redundant 1M-row case and scaling the remaining UInt8(0) and Float64(-0.0) queries so the benchmark is long enough to measure the intended zero-scan paths instead of mostly fixed per-query overhead. I did not find a code-level problem in the new query shapes.

Missing context / blind spots
  • ⚠️ The performance comparison jobs were skipped because the PR is not labeled pr-performance, so I could not verify the new runtimes or variance from CI artifacts. The remaining uncertainty is only whether the chosen row counts land in the desired 0.1-1 s window on CI hardware.
Final Verdict

✅ No review findings.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Sep 24, 2026

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

LGTM

@alexey-milovidov alexey-milovidov self-assigned this Sep 24, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Sep 24, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Sep 24, 2026
Merged via the queue into master with commit 51ce1e8 Sep 24, 2026
173 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-promql-duplicate-series-perf-test-too-short branch September 24, 2026 22:22
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 24, 2026
@clickhouse-gh clickhouse-gh Bot added comp-promql PromQL / time-series subsystem: TimeSeries storage engine, PromQL parser, PromQL-to-SQL converter... and removed comp-testing Test content only (no production code). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-promql PromQL / time-series subsystem: TimeSeries storage engine, PromQL parser, PromQL-to-SQL converter... pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants