Repository navigation
Disable the JSON hashing query of the hashing_serialized_values performance test - #132468
Conversation
…rmance test Query 1 (sipHash64 over a JSON column) failed Performance Comparison (amd_release) on PRs that do not touch its code path (ClickHouse#111005: 0.526 -> 0.611 s, and another PR: 0.534 -> 0.660 s) and is marked slower on master runs. Both servers execute the same work (7.333G vs 7.337G instructions in the ClickHouse#111005 job, within 0.15% in 18 of the 19 profiled runs; the 19th is a PR that changes this loop), but the per-row loop through SerializationObject, SerializationDynamic, path iteration and four hash-map lookups lands in a slow mode in some builds: one or two extra branch misses per row (0.125M vs 4.143M over 4M rows in the ClickHouse#111005 job), or more cycles at equal misses. ASLR is off, so the mode is fixed per binary: the confirmation reruns at three stack placements and the dashboard reruns all reproduced +16.5%. The red job's two binaries reproduce it locally (0.495 vs 0.595 s, same instructions, 1M vs 21M branch misses over 5 runs). Shortening the loop does not remove the dependence (the remaining frames are about 30% slower in the slow builds too), so the query is disabled with disabled="1", which keeps the numbers and history of queries 0 and 2, and the json_values table that only it read is removed. Query 0 still measures the row-by-row serialization branch of executeGeneric, query 2 the aggregate-state path. Related: ClickHouse#111005 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; 0 findings), plus my own review of the diff (1 finding, in the commit message only).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261117-194200 |
|
cc @Algunenano, could you review this? It disables query 1 of hashing_serialized_values (sipHash64 over JSON), whose time is set by each amd build's code layout (one or two extra branch misses per row at equal instructions), and drops the json_values table only it read; queries 0 and 2 keep their indices and history. |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261117-191100 |
|
Workflow [PR], commit [39db70c] Summary: ✅
AI ReviewSummaryDisables the layout-sensitive Final VerdictStatus: ✅ Approve |
a56b118
…any-rows-every-type
Conflicts: src/Common/SipHashStrings.{h,cpp} keep master's `*Rows` functions and
this branch's ones; the perf tests keep master's queries and append this branch's
after them. The `sipHash128(j)` query is dropped with the `json_values` table
master removed in ClickHouse#132468.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #111005
Related: #124728
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Query
#1of thehashing_serialized_valuesperformance test (sipHash64over aJSONcolumn) is disabled, because its time depends on the code layout of each build rather than on the change being tested.Description
Performance Comparison (amd_release, master_head, 2/6)failed on #111005 withhashing_serialized_values#1as its only blocker, 0.526 -> 0.611 s (report), although #111005 only changesreplaceRegexpOne/replaceRegexpAll. Another PR had the same red, 0.534 -> 0.660 s (report), and master runs also mark this queryslower.The build decides this, not the change. Both servers do the same work (7.333G vs 7.337G instructions in the red job), but in some builds the per-row loop gets one or two extra branch misses per row: 0.125M vs 4.143M in the red job, over 4M rows. ASLR is off in this job, so the slow mode is fixed per binary: the confirmation reruns at three stack placements and the dashboard reruns all reproduced +16.5%. Any PR that relinks this code redraws the mode against its reference.
#1is nowdisabled="1", which keeps the numbers and history of#0and#2, and thejson_valuestable that only#1read is removed.#0(xxHash64overVariant) still measures the row-by-row serialization branch ofexecuteGenericthis test was added for, and#2the aggregate-state path. A shorter loop would not fix it: in the slow builds the rest of it is about 30% slower too.Validation:
perf.py --print-queriesprints the same three queries. On two local servers the test runs without errors,#0and#2run 8 times each, andsystem.query_logshows#1is never sent. The red job's two binaries reproduce#1here: 0.495 vs 0.595 s, equal instructions, 1M vs 21M branch misses over 5 runs (perf stat).🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/132468]
Version info
26.11.1.2663-master(included in26.11and later)