Repository navigation
Make the replace_string_fast_path performance test less noisy - #122571
Conversation
Each query copied only 5 million rows and finished in ~20 ms, so the performance comparison measured memory-bandwidth jitter: query #4 (`FixedString` verbatim copy) was flagged as a confirmed slowdown on `master` itself (2026-09-17) and on unrelated pull requests (#119839, #110613), and queries #2..#4 moved 11-17% together in one run. Process 20 million rows, so each query takes ~100 ms. Report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=110613&sha=dbef7b1548eb9998ee9556d003008cd13d3bffee&name_0=PR&name_1=Performance%20Comparison%20%28arm_release%2C%20master_head%2C%204%2F6%29 PR: #110613 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Workflow [PR], commit [a25bf88] Summary: ✅
AI ReviewSummaryThis PR raises the Final Verdict
|
|
Acknowledged. No fix is in progress for either query. I'm investigating |
|
|
…e test Query #1 (`FINAL WHERE v = 7 LIMIT 100`) never reaches its limit: only 47 rows survive FINAL, so it scans all of (k, v) and lazily reads `payload` for those 47 rows. With default granules (~5-6K rows of 2 KB random, incompressible strings, ~10 MB each) every match decodes ~6 MB of payload, ~285 MB in total. After ClickHouse#122479 both compared servers read identical data, but on arm one server of a pair still copies those same bytes out of the page cache ~20% slower in a few percent of fills, and with merges stopped all runs of the query carry it: PR ClickHouse#122571 got a confirmed +17.8% on `Performance Comparison (arm_release, master_head, 6/6)` this way. With `index_granularity = 256` a granule is ~0.5 MB and one compressed block, so each match reads ~0.5 MB. Measured on a two-server rig with the XML's own statements: #1 ReadCompressedBytes 284.1 MB -> 31.8 MB, SelectedRows 1,015,104, #0 and #2 read less too (58.7 -> 13.3 MB). The test still measures FINAL over the same two intersecting parts with lazy materialization of the wide payload. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each query of the
replace_string_fast_pathperformance test processed only 5 million rows and finished in ~20 ms, so the comparison measured memory-bandwidth jitter rather than the code. Query #4 (FixedStringverbatim copy) was flagged as a confirmed slowdown onmasteritself (2026-09-17) and on unrelated pull requests, and in the run below queries #2..#4 moved 11-17% together on a PR that does not touchreplaceAll.This PR raises the row count to 20 million, so each query takes ~100 ms.
Report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=110613&sha=dbef7b1548eb9998ee9556d003008cd13d3bffee&name_0=PR&name_1=Performance%20Comparison%20%28arm_release%2C%20master_head%2C%204%2F6%29
Related: #110613
Related: #119839
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/122571]
Version info
26.10.1.1411-master(included in26.10and later)