Repository navigation
Run the ascii performance test queries with format Null - #131252
Conversation
The 14 queries of tests/performance/ascii.xml return 10M rows to perf.py's Python client. On master CI they take 1.0-1.9 s each, and the server spends 82-96% of that time waiting on the network send, with only 75-309 ms of CPU, so the test mostly measures clickhouse-driver decoding rather than the ASCII fast paths of the UTF-8 string functions that ClickHouse#61632 added. Mark the 14 queries disabled (their text and numbers are unchanged) and append the same 14 calls with format Null as queries 14-27. The row count of each copy is picked from a 10M..1000M ladder so that its projected CI median is in 0.2-0.75 s on amd and arm (local server CPU scaled by the CIDB/local UserTime ratio of the old query). 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; 0 findings) plus my own cold review (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-10:20261113-101000 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261113-091200 |
|
Workflow [PR], commit [5f80334] Summary: ✅
AI ReviewSummaryPR #131252, head Missing context / blind spots
Final VerdictStatus: ✅ Approve. The supplied local measurements support this benchmark-only change; no required code changes identified. |
92f8fd7
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
From the #129258 audit: the 14 queries of
ascii.xml(seven UTF-8 string functions, each on an ASCII and a non-ASCII constant,from numbers(10000000)) have 14-day master medians of 1.02-1.94 s on amd and 0.96-1.77 s on arm.They are long because they have no
format Null: perf.py receives all 10M rows (60-210 MB) in its Python client. On master CI the server spends 92-97% of each query's time waiting on the network send and 76-334 ms on CPU, so the test mostly measures the client's decoding, not the ASCII paths added in #61632 (whose own benchmarks usedformat Null).No existing query number or text changes: 14 queries are disabled and 14 are appended. Queries 0-13 get
disabled="1". The same 14 calls are appended as queries 14-27 withformat Null, each on its own row count (20M-200M rows): per row, an ASCII call is up to 9 times cheaper than its non-ASCII pair, so one row count cannot keep them all between 0.2 and 0.75 s.Measured locally with
perf.py(official master release binary, 8 pinned cores,max_threads = 8, 3 old/new pass pairs) and scaled by each old query's CI/local server CPU ratio: queries 14-27 should take 0.20-0.48 s on amd and 0.24-0.52 s on arm, about 130 s amd and 110 s arm less per master perf job. Queries 0-13 did not run in any new pass (system.query_log). A three times slower function (lowerUTF8nested three times) makes the old query 0.3% slower and the new one 2.8 times slower.Queries 14-27 start a new history (CIDB has only 0-13 for this test). Both servers of a perf run use the PR's file, so this PR's perf report shows no "faster" verdict for this test.
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/131252]
Version info
26.11.1.2191-master(included in26.11and later)