Skip to content

Build with -ftrivial-auto-var-init=zero - #127909

Closed
groeneai wants to merge 4 commits into
ClickHouse:masterfrom
groeneai:build-ftrivial-auto-var-init-zero
Closed

groeneai wants to merge 4 commits into
ClickHouse:masterfrom
groeneai:build-ftrivial-auto-var-init-zero

Conversation

@groeneai

@groeneai groeneai commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Closes: #127891
Related: ClickHouse/zstd#6
Related: ClickHouse/icu#3

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

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

Harden official builds by compiling with -ftrivial-auto-var-init=zero, so that an automatic variable that is read before it is written yields zero instead of stale stack contents.

Description

-ftrivial-auto-var-init=zero goes into COMPILER_FLAGS next to -fstack-protector-strong, so it reaches src/, programs/, base/ and contrib (except contrib/compiler-rt-cmake, which resets flags). Sanitizer and fuzzer builds do not get it: MemorySanitizer and UndefinedBehaviorSanitizer report exactly the reads it would hide. The musl startup and dynamic linker objects, which already get -fno-stack-protector, keep their locals uninitialized: the flag added memset calls to stage 2 of ldso/dynlink.c, which must not call extern symbols.

These locals made queries slower when zeroed, so they are marked uninitialized; each is written before it is read:

Geomean of new/old time over all queries, and slower queries:

amd_release arm_release
flag only (632fd7f) +0.19%: cryptographic_hashes #23 +31%, arithmetic #58 +23% +0.31%: format_readable #0 +17%, #1 +17%, #2 +27%, collations #1 +16%, ip_trie #2 +16%
3 buffers (420eac3), 2 runs +0.17%, +0.11%: none +0.25%, +0.27%: codecs_float_select #11 +24%, ip_trie #2 +18%, decimal_casts #7 +17%, collations #1 +16%
+ zstd, ICU (c51a35f) +0.19%: long_primary_key #0, #1, #2 +35%, arithmetic #58 +20% +0.31%: promql_selector_pk_range #2 +16%
+ Field (93458ba) +0.09%: long_primary_key #1, #2 +15% +0.24%: none

Binary size of the compressed clickhouse from CI, compared with master: amd +0.22%, arm +0.27%.

In a 5% slice of the stateless tests, no test fails with the flag and passes without it. No test is added: the flag only changes the result of reading an uninitialized variable, which is undefined behaviour.

Local measurements and the slower queries that are not annotated
  • Local amd64 release builds, one thread: BLAKE3 0.68 s without the flag, 0.89 s with it, 0.68 s annotated; COLLATE 'tr' sort of 2M Cyrillic strings 0.131 s with the flag, 0.113-0.119 s with the ICU change; index analysis of the Tuple key of promql_selector_pk_range (80K marks) 0.108 s with the flag, 0.098 s with the Field change, 0.090 s with the master binary from CI.
  • codecs_float_select UDF support #11, ip_trie Repair subtree2 #2 (default ZSTD codec): zeroing the per-block decoder state changed the code of zstd's sequence decoders; with the zstd change they compile as without the flag.
  • long_primary_key (amd): index analysis runs +1.2-1.6% instructions but +18-56% cycles in the CI binaries, all front-end resteers (BACLEARS 0.05-0.06M per query in 6 builds without the flag, 3-19M in 8 builds with it). The flag adds ~320 KiB of code between Range.cpp and KeyCondition.cpp, which puts their hot branches 64 MiB apart, where they evict each other in the branch target buffer (master: 64 MiB - 329 KiB). Shifting KeyCondition.cpp by 128 KiB in a local build with the flag removes the resteers (BACLEARS 0.05M, index analysis 0.135 s -> 0.113 s, CI master 0.109 s). This is code layout, not zeroing, so nothing is annotated for it.
  • arithmetic LEFT JOIN ....ON SUPPORT #58: the intDivOrZero kernels compile identically, and the query is not slower locally with the CI binaries.
  • decimal_casts Error fetching data from materialized view #7: identical conversion loops in the two arm binaries, also reported slower on other PRs.
  • format_readable Repair subtree2 #2: +27% -> +7% on arm with the annotation; on amd the annotated runs show +8-10% with identical code in the hot loop.
  • Query results are identical with and without each annotation.

🤖 Generated with Claude Code

Clang zero-fills every automatic variable that has no initializer, so a read
before the first write yields zero instead of stale stack contents (a stale
pointer reads as null). The flag goes into COMPILER_FLAGS next to
-fstack-protector-strong, so it reaches src/, programs/, base/ and contrib,
including libc++, libc++abi, libunwind and the glibc compatibility layer;
contrib/compiler-rt-cmake resets inherited flags to an allowlist and stays out,
as it does for the stack protector.

Sanitizer and fuzzer builds do not get it: MemorySanitizer reports exactly the
reads it would turn into zeros, UndefinedBehaviorSanitizer reports the invalid
bool and enum values such reads load, and a fuzzing build exists to find bugs.

In the musl build, the objects that already carry -fno-stack-protector (the CRT
start file and musl's early-init and dynamic linker objects) also get
-ftrivial-auto-var-init=uninitialized: with the flag, __dls2, load_library and
map_library in ldso/dynlink.c gained calls to memset, and stage 2 of the
dynamic linker must not call extern symbols. With the opt-out, all 51 functions
of those objects compile to the same code as without the flag.

Measured on a local amd64 build with the amd_release PR configuration: 17,285
of 17,643 compile commands carry the flag (the rest are compiler-rt and isa-l's
NASM sources), the MSan, ASan+UBSan and fuzzer configurations carry it nowhere,
our_syscall, remapToHugeStep2/3 and the memcpy/memmove/memset/memcmp/bcmp
implementations disassemble identically, and .text grows by 3.1 MB (+0.58%),
the stripped binary by 3.2 MB (+0.43%), the compressed one by 0.4 MB (+0.18%).

Closes ClickHouse#127891

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 0 findings) and my own review (2 nits, not blocking).

# Sev Finding Verdict Evidence / action
1 💡 The CMake comment excludes TSan builds only as "not shipped", while Debug builds keep the flag AGREE, noted intentional: builds that run like the shipped binary get the flag, the bug-finding sanitizer and fuzzer builds do not
2 💡 Today the musl opt-out changes code only in ldso/dynlink.c (3 new memset calls); the other early-init objects only gain inline zero stores AGREE, noted kept: it mirrors the existing -fno-stack-protector list and keeps those objects as they are on master, on both architectures

Severity: ❌ blocker / ⚠️ major / 💡 nit.

Session id: cron:clickhouse-review-slot-9:20261027-022000

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? N/A for a defect: a requested hardening flag. The deterministic observable is codegen: a char buf[4096] local gains a memset at entry with the flag, and the compile_commands.json census reproduces on every configure.
b Root cause explained? Clang's -ftrivial-auto-var-init=zero zero-fills every automatic variable without an initializer at its declaration, so a read before the first write yields zero instead of stale stack contents.
c Fix matches root cause? Yes: the flag goes into COMPILER_FLAGS next to -fstack-protector-strong, as the issue asks; sanitizer and fuzzer builds keep uninitialized locals; no [[clang::uninitialized]] without a measured slower query.
d Test intent preserved / new tests added? No test: reading an uninitialized variable is undefined behaviour and cannot be asserted from SQL. Validation is codegen, a stateless slice, CI and Performance Comparison.
e Both directions demonstrated? Base build: flag in 0 of 17,643 compile commands; flag build: 17,285 of 17,643. musl early init: new memset calls in ldso/dynlink.c without the opt-out, none with it (51 of 51 functions identical).
f Fix is general across code paths? Measured on release, debug, musl, MSan, ASan+UBSan and fuzzer configurations; our_syscall, remapToHugeStep2/3 and the mem primitives disassemble identically with and without the flag.
g Fix generalizes across inputs (params/datatypes/wrappers)? N/A (no input-dependent behaviour). The flag is target-independent; ARM is covered by arm_release CI.
h Backward compatible? (maintainer-approved exception only) Yes: no setting, format or protocol change.
i Invariants and contracts preserved? Zeroing never adds a call where code must not make one (C-2/C-3 checks), compiler-rt keeps its flag allowlist, and sanitizer builds keep their MSan/UBSan signal.

Session id: cron:clickhouse-impl-slot-5:20261026-223400

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @pamarcos @thevar1able, could you review this and add the can be tested and pr-performance labels, so that CI and Performance Comparison on both amd_release and arm_release run? It adds -ftrivial-auto-var-init=zero to COMPILER_FLAGS for non-sanitizer, non-fuzzer builds, and keeps locals uninitialized in the musl startup and dynamic linker objects that already get -fno-stack-protector, because zeroing added memset calls to stage 2 of ldso/dynlink.c.

@clickhouse-gh

clickhouse-gh Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [93458ba]

Summary: ✅


AI Review

Summary

The PR enables -ftrivial-auto-var-init=zero outside sanitizer/fuzzer builds, exempts musl startup code, and preserves selected hot buffers in ClickHouse, ZSTD, and ICU. Request changes until final-head measurements close the reproduced primary-key analysis slowdown.

Findings

⚠️ Majors

  • CMakeLists.txt:443: Unconditional rollout retains an unresolved primary-key performance risk. On AMD at c51a35f, long_primary_key query 0 increased from 0.1490 s to 0.2011 s (+34.9%); query 1 increased from 0.1492 s to 0.2000 s (+34.0%). Query 0 was also slower in both earlier PR runs (+11.9%, +11.35%). The latest seven-sample estimate spans +32.9–36.6%, above the history-based 11.1% threshold; recent master p95 is approximately 0.173 s. The description independently reproduces the index-analysis slowdown and attributes it to code layout. The new Field exemption targets container teardown, while these queries use scalar DateTime/String keys. Whether the final revision removes the slowdown remains unverified. Required action: measure these queries with the final AMD release binaries and mitigate any persistent regression before enabling the flag globally.
Tests
  • ⚠️ Performance evidence currently ends at c51a35f; the reviewed head is 93458ba41f743390699e4aaa3da9df9b478d92a1. The current Praktika workflow is still running, with release performance comparisons pending. Final-head results should also establish that the Field exemption closes the previously measured ARM promql_selector_pk_range slowdown.
Final Verdict

⚠️ Request changes. Provide final-head performance evidence for primary-key analysis and mitigate any persistent material slowdown. The earlier inline finding about ZSTD/ICU zeroing is addressed by the pinned dependency changes and is resolved; it is not retained as a finding.

@clickhouse-gh clickhouse-gh Bot added pr-build Pull request with build/testing/packaging improvement submodule changed At least one submodule changed in this PR. comp-build-system Build system (CMake, compilation, platform builds). labels Oct 27, 2026
@thevar1able thevar1able added can be tested Allows running workflows for external contributors ci-performance performance only labels Oct 27, 2026
…init=zero`

Performance Comparison on the flag-only head (632fd7f) reported 7 slower
queries. Three of them come from a per-row zeroing of a stack buffer in our
own code, found with `-Rpass-missed=annotation-remarks` and the disassembly:

- `ImplBLAKE3::apply` `hasher`: a 1776-byte `memset` per row (the BLAKE3
  CV stack). cryptographic_hashes ClickHouse#23 (BLAKE3) was 31% slower on amd_release.
  Local amd64 release build, 10M rows, one thread: base 0.680 s, flag 0.893 s,
  annotated 0.682 s.
- `formatReadable` (`src/Common/formatReadable.cpp`) `buffer`: 163 bytes per
  row. format_readable #0/ClickHouse#1 (formatReadableSize/Quantity) were 17% slower on
  arm_release. Local amd64: formatReadableSize base 0.230 s, flag 0.248 s,
  annotated 0.242 s; the rest is `decimal_rep` in double-conversion's
  `ToFixed`, which is upstream library code and is not annotated here.
- `FunctionFormatReadableTimeDelta::getFractionalString` `buffer`: 163 bytes
  per row. format_readable ClickHouse#2 (formatReadableTimeDelta) was 27% slower on
  arm_release (7% faster on amd_release).

Each buffer is read only after it is written: the converters write the first
`builder.position()` bytes, and `llvm_blake3_hasher_init` writes every field of
the hasher except the CV stack, whose entries are pushed before they are read.

Not annotated, because no ClickHouse stack buffer explains them:
arithmetic ClickHouse#58 (amd: the `intDivOrZero` Float64 kernels disassemble identically
with and without the flag, and the query is not slower locally), ip_trie ClickHouse#2
(arm: the lookup path zeroes at most 16 bytes per row), and collations ClickHouse#1 (arm:
the zeroing is in ICU's `RuleBasedCollator::doCompare` iterators, ~1 KB per
comparison, inside `contrib/icu`).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Algunenano Algunenano self-assigned this Oct 27, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

The description now has the Performance Comparison results before and after the annotations. The functional tests have not run yet, because ci-performance runs only the performance jobs. Could someone replace it with pr-performance, so that the full CI runs as well?

@Algunenano Algunenano added pr-performance Pull request with some performance improvements and removed ci-performance performance only labels Oct 27, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

The label change did not start a new workflow run, so the functional tests have still not run on 420eac3. Could someone re-run the workflow?

The description now has the second Performance Comparison run of that head. Neither of its new slower queries on arm comes from a zeroed buffer: ip_trie #2 reads a TinyLog table, which uses the default ZSTD codec, so like codecs_float_select #11 it runs zstd's sequence decoder, and decimal_casts #7 runs identical conversion loops in both binaries. @ thevar1able, marking seqState uninitialized in the ClickHouse/zstd fork makes ZSTD_decompressSequences compile on aarch64 as it does without the flag. Should I open that PR on ClickHouse/zstd, or keep zstd as is?

Comment thread CMakeLists.txt Resolved
…init=zero`

The remaining arm_release slowdowns on this PR come from contrib code:
`codecs_float_select` ClickHouse#11 (+24%) and `ip_trie` ClickHouse#2 (+18%) decode `ZSTD`, and
`collations` ClickHouse#1 (+16%) compares strings with ICU.

- contrib/zstd -> ClickHouse/zstd#6 (0c4a7b5): `seqState`, the
  `sequences` ring and the decoded `seq_t` temporaries of the sequence decoders.
  `ZSTD_decompressSequences`, `...SplitLitBuffer` and `...Long` then compile to
  the same code as without the flag on aarch64 and x86-64.
- contrib/icu -> ClickHouse/icu#3 (e16b61b): the two collation
  iterators of the UTF-8 `RuleBasedCollator::doCompare`, 400 or 496 bytes each,
  zero-filled on every comparison that leaves the Latin fast path.

Local amd64 release builds, flag only vs with these annotations (max_threads=1,
3 x 7 runs): ORDER BY ... COLLATE 'tr' on 2M Cyrillic strings 0.131 s -> 0.113-0.119 s;
the ZSTD Float64 scan returns to 0.183 s, as without the flag (0.164 s with it).
Query results are identical (8 collations, zstd levels 3 and 19 with a 128 MiB window,
a ZSTD MergeTree column).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Oct 28, 2026
With `-ftrivial-auto-var-init=zero`, `Field::destroyContainerIteratively`
starts with a 904-byte `memset` of the inline buffer of `to_destroy`, and it
runs whenever an `Array`, `Tuple`, `Map` or `Object` `Field` is destroyed.
Primary key analysis over a `Tuple` key destroys such a `Field` per range,
which is what `promql_selector_pk_range` ClickHouse#2 measures (+14% to +16% on
arm_release in each run of this PR that sampled it).

Local amd64, the CI binaries of this PR (c51a35f) and of the master reference,
`EXPLAIN indexes = 1` over the 80K marks of that test's samples table with a
continuous `id` range, one thread: reference 0.090 s, c51a35f 0.103 s. With
local release builds: 0.108 s without this change, 0.098 s with it; the
memset's share of the profile goes from 4.5% to 0.6% (0.3% in the reference).
Query results are identical (9 stateless tests on tuples, maps and deeply
nested values, a 100000-level array literal, the PromQL queries).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread CMakeLists.txt
# Sanitizer reports exactly such reads, and Undefined Behavior Sanitizer the invalid `bool` and enum values
# they load. contrib/compiler-rt-cmake resets it, like the stack protector above.
if (NOT SANITIZE AND NOT ENABLE_FUZZING)
set (COMPILER_FLAGS "${COMPILER_FLAGS} -ftrivial-auto-var-init=zero")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[P1] Close the reproduced primary-key slowdown before global enablement

The remaining AMD long_primary_key slowdown needs final-head validation before enabling this globally. At c51a35f, query 0, time increases from 0.1490 s to 0.2011 s (+34.9%); query 1 increases from 0.1492 s to 0.2000 s (+34.0%). Query 0 also slowed by 11.9% and 11.35% in the two earlier PR runs. Its latest seven-sample comparison estimates a 32.9–36.6% slowdown, and recent master p95 is about 0.173 s. The description independently reproduces slower index analysis locally.

The code-layout diagnosis still leaves this workload cost unresolved. The current Field exemption addresses container teardown, while these queries filter scalar DateTime/String keys; performance results for 93458ba are pending, so whether that revision also removes this slowdown remains unverified. Please compare these queries on the final AMD release binaries and mitigate the slowdown if it persists before unconditional rollout.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 93458ba

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Build profile diff infra, not from this PR: the CI logs cluster never passed the readiness probe, so the job ended with LogClusterNotReady: the endpoint never became ready before comparing anything. All 329 runs of this job in the last 24 hours ended the same way, on 245 PRs #126200 (mine, open)
PR praktika rollup of the row above #126200 (the owner of the row above)

All 12 Performance Comparison shards passed on this head; the remaining amd_release long_primary_key slowdown (queries 1 and 2) is analysed in the description. CIDB has no FAIL or ERROR row in this run.

Session id: cron:our-pr-ci-monitor:20261028-113007

@motsc

motsc commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

🕵 @snelheidai, please independently challenge the final-head performance evidence for this PR; no implementation change is requested yet.

Scope:

  1. Recompute the changed-query classification from all six amd_release and six arm_release shards at 93458ba4, including 30-day master history.
  2. Determine whether the remaining amd64 long_primary_key Repair subtree2 #1/Repair subtree2 #2 slowdown is stable and attributable to this PR's code-layout change rather than machine variance.
  3. Check whether the ZSTD, ICU, and Field exemptions removed the earlier ARM regressions without moving cost into another hot workload.
  4. Report per-architecture geomean, every stable changed query, relevant instruction/profile counters, and an explicit accept/reject conclusion under the existing within-noise budget.

Do not repeat identical CI shards unless the existing artifacts are insufficient, and do not propose another exemption without a concrete hot-path profile showing which zeroing causes the cost.

@clickhouse-gh

clickhouse-gh Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 93458ba41 with master 0525e0c76 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes
Binary Master PR Δ
programs/clickhouse-stripped 808.39 MiB 807.55 MiB -861.77 KiB (-0.10%)

Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Object file sizes

12362 object files changed (+3.13 MiB total), 0 added.

Object file Master PR Δ
contrib/hive-metastore-cmake/CMakeFiles/_hivemetastore.dir/__/hive-metastore/ThriftHiveMetastore.cp… 5.82 MiB 5.88 MiB +62.41 KiB (+1.05%)
src/CMakeFiles/dbms.dir/Interpreters/SystemLog.cpp.o 4.95 MiB 5.01 MiB +61.39 KiB (+1.21%)
contrib/arrow-cmake/CMakeFiles/_arrow.dir/__/arrow/cpp/src/arrow/builder.cc.o 8.33 MiB 8.38 MiB +50.52 KiB (+0.59%)
src/Functions/array/CMakeFiles/clickhouse_functions_array.dir/arrayElement.cpp.o 10.20 MiB 10.25 MiB +49.34 KiB (+0.47%)
src/CMakeFiles/dbms.dir/Functions/FunctionsConversion.cpp.o 24.58 MiB 24.63 MiB +48.65 KiB (+0.19%)
src/CMakeFiles/dbms.dir/Interpreters/Aggregator.cpp.o 27.27 MiB 27.31 MiB +48.22 KiB (+0.17%)
src/Functions/array/CMakeFiles/clickhouse_functions_array.dir/arrayNormalizedGini.cpp.o 2.94 MiB 2.98 MiB +44.51 KiB (+1.48%)
src/CMakeFiles/dbms.dir/Storages/StorageReplicatedMergeTree.cpp.o 4.70 MiB 4.75 MiB +43.23 KiB (+0.90%)
src/Functions/array/CMakeFiles/clickhouse_functions_array.dir/arrayDistance.cpp.o 10.11 MiB 10.15 MiB +40.30 KiB (+0.39%)
contrib/arrow-cmake/CMakeFiles/_arrow.dir/__/arrow/cpp/src/arrow/compute/kernels/scalar_round.cc.o 5.94 MiB 5.98 MiB +36.85 KiB (+0.61%)
src/AggregateFunctions/CMakeFiles/clickhouse_aggregate_functions.dir/AggregateFunctionCorr.cpp.o 7.07 MiB 7.03 MiB -34.62 KiB (-0.48%)
src/CMakeFiles/dbms.dir/Functions/if.cpp.o 11.51 MiB 11.54 MiB +32.81 KiB (+0.28%)
src/Functions/CMakeFiles/clickhouse_functions_obj.dir/dateDiff.cpp.o 1.55 MiB 1.58 MiB +29.09 KiB (+1.83%)
src/Dictionaries/CMakeFiles/clickhouse_dictionaries.dir/SparseHashedDictionary.cpp.o 21.10 MiB 21.12 MiB +28.04 KiB (+0.13%)
contrib/librdkafka-cmake/CMakeFiles/_rdkafka.dir/__/librdkafka/src/rdkafka_mock_handlers.c.o 456.88 KiB 484.69 KiB +27.81 KiB (+6.09%)
contrib/arrow-cmake/CMakeFiles/_arrow.dir/__/arrow/cpp/src/arrow/compute/kernels/scalar_temporal_un… 5.83 MiB 5.85 MiB +27.64 KiB (+0.46%)
src/Functions/CMakeFiles/clickhouse_functions_obj.dir/modulo.cpp.o 17.43 MiB 17.45 MiB +27.48 KiB (+0.15%)
src/Functions/CMakeFiles/clickhouse_functions_obj.dir/FunctionsNumericIndexedVector.cpp.o 19.51 MiB 19.54 MiB +27.46 KiB (+0.14%)
contrib/arrow-cmake/CMakeFiles/_arrow.dir/__/arrow/cpp/src/arrow/compute/kernels/scalar_arithmetic.… 4.85 MiB 4.88 MiB +27.18 KiB (+0.55%)
src/CMakeFiles/dbms.dir/Storages/MergeTree/MergeTreeData.cpp.o 4.40 MiB 4.42 MiB +26.05 KiB (+0.58%)

719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only clickhouse-bundle) and not compared.

Compile time of recompiled translation units

16494 translation units recompiled, 33018 s compile time in total, 15953 of them have a recent master baseline.

Translation unit Master PR Δ vs median
contrib/grpc-cmake/__/grpc/src/core/ext/transport/chttp2/transport/frame_settings.cc 5.1 s 11.7 s +6.7 s (+134%)
contrib/grpc-cmake/__/grpc/src/core/client_channel/client_channel_filter.cc 5.8 s 11.9 s +6.2 s (+109%)
contrib/grpc-cmake/__/grpc/src/core/ext/transport/chttp2/transport/chttp2_transport.cc 7.8 s 13.8 s +6.1 s (+80%)
contrib/grpc-cmake/__/grpc/src/core/xds/grpc/xds_route_config_parser.cc 5.9 s 11.6 s +5.8 s (+101%)
contrib/grpc-cmake/__/grpc/src/core/ext/transport/chttp2/transport/frame_goaway.cc 5.0 s 10.6 s +5.8 s (+119%)
contrib/grpc-cmake/__/grpc/src/core/client_channel/retry_interceptor.cc 5.8 s 11.4 s +5.7 s (+100%)
contrib/grpc-cmake/__/grpc/src/core/server/xds_server_config_fetcher_legacy.cc 6.2 s 11.6 s +5.5 s (+90%)
contrib/grpc-cmake/__/grpc/src/core/ext/transport/chttp2/transport/parsing.cc 5.3 s 10.5 s +5.3 s (+101%)
contrib/grpc-cmake/__/grpc/src/core/xds/grpc/xds_listener_parser.cc 5.6 s 10.7 s +5.2 s (+93%)

Slowest changed entities of contrib/grpc-cmake/__/grpc/src/core/ext/transport/chttp2/transport/frame_settings.cc:

  • InstantiateFunction grpc_core::channelz::ZTraceCollector<grpc_core::http2_ztrace_collector_detail::Config, grpc_core::H…: +1.1 s (+250%)
  • InstantiateFunction grpc_core::channelz::ZTraceCollector<grpc_core::http2_ztrace_collector_detail::Config, grpc_core::H…: +1.1 s (+253%)
  • InstantiateFunction grpc_core::channelz::ZTraceCollector<grpc_core::http2_ztrace_collector_detail::Config, grpc_core::H…: +0.7 s (+263%)

Translation units without a recent master baseline:

  • contrib/grpc-cmake/__/grpc/src/core/ext/transport/chttp2/transport/http2_server_transport.cc: 15.3 s
  • programs/keeper/Keeper.cpp (clickhouse-keeper): 7.6 s

Job report

@motsc motsc closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-build-system Build system (CMake, compilation, platform builds). manual approve Manual approve required to run CI pr-build Pull request with build/testing/packaging improvement pr-performance Pull request with some performance improvements submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build with -ftrivial-auto-var-init=zero

4 participants