Skip to content

Bump google-benchmark from v1.7.1 to v1.9.5 - #118893

Merged
thevar1able merged 5 commits into
ClickHouse:masterfrom
actueleai:bump-google-benchmark-v1.9.5
Oct 5, 2026
Merged

thevar1able merged 5 commits into
ClickHouse:masterfrom
actueleai:bump-google-benchmark-v1.9.5

Conversation

@actueleai

@actueleai actueleai commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Bumps google-benchmark from v1.7.1 to v1.9.5, moving off a pin that sat two commits past the tag onto a released upstream version; it picks up upstream fixes to the regex backend, including a regerror leak.

ClickHouse-side changes

  • contrib/google-benchmark-cmake/CMakeLists.txt — dropped sleep.cc from SRCS, since upstream removed that file in favour of std::this_thread::sleep_for.

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

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

Update google-benchmark to v1.9.5.


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

Version info

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

Update the `google-benchmark` submodule from `v1.7.1` (plus two upstream
commits) to the `v1.9.5` release tag.

The only build integration change needed is dropping `src/sleep.cc` from
the source list in `contrib/google-benchmark-cmake/CMakeLists.txt`:
upstream removed `src/sleep.cc` and `src/sleep.h` and replaced
`SleepForMilliseconds` with `std::this_thread::sleep_for`. The rest of
the source list still matches the `*.cc` files that upstream globs in
`src/CMakeLists.txt`.
@thevar1able thevar1able added the can be tested Allows running workflows for external contributors label Sep 8, 2026
@thevar1able thevar1able self-assigned this Sep 8, 2026
@thevar1able
thevar1able self-requested a review September 8, 2026 21:14
@thevar1able
thevar1able marked this pull request as ready for review September 8, 2026 21:15
@clickhouse-gh

clickhouse-gh Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [197e365]

Summary: ✅


AI Review

Summary

This PR updates the vendored google-benchmark submodule to v1.9.5, removes the deleted upstream sleep.cc from the local CMake wrapper, and mirrors upstream's benchmark::MaybeReenterWithoutASLR entrypoint behavior in ClickHouse's one hand-written benchmark main. I did not find any remaining correctness, integration, or metadata issues in the current diff, and the previously reported ASLR mismatch is fixed.

Final Verdict

✅ No actionable review findings in the current PR state.

LLVM Coverage Report

⚠️ No coverage measurement for commit 197e365: no coverage data for the changed C/C++ source files (they may be new or not instrumented).

@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. labels Sep 8, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. label Sep 8, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 197e36564 with master abd6a6d5e (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

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

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.

Compile time of recompiled translation units

6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline.

Job report

@clickhouse-gh

clickhouse-gh Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

📊 Cloud Performance Report

✅ AI verdict: no_change — no significant changes across 32 queries analysed

This PR updates the google-benchmark submodule, drops sleep.cc from its CMake source list, and adds a MaybeReenterWithoutASLR call to one Columns microbenchmark. None of this is part of the server's query-execution path. The tpch_adapted_1_official improvements on Q1 (-17.2%) and Q7 (-15.7%) are downgraded to not_sure: both queries have noisy history, and Q7's CPU time barely moved, so neither shift comes from this change. ClickBench Q34 (+7.1%) falls inside master's current variance range and stays not_sure, which matches the diff. Both benchmarks for this PR also ran on the same machine, which may add shared-host variance.

clickbench

⚠️ 1 inconclusive

Flagged queries (1 of 43)
Query Verdict Baseline median (ms) PR median (ms) Change q-value Hint
⚠️ 34 not_sure 1110 1189 +7.1% <0.0001 The +7.1% sits inside master's current range for this query. The PR only bumps google-benchmark, a microbenchmark library that the server does not use, so the suppression stands.

Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on.

tpch_adapted_1_official

⚠️ 2 inconclusive

Flagged queries (2 of 22)
Query Verdict Baseline median (ms) PR median (ms) Change q-value Hint
⚠️ 1 not_sure 64 53 -17.2% <0.0001 The -17.2% (-11 ms) cannot come from this PR, which only updates the google-benchmark microbenchmark harness. This query also has a noisy history and noisy measurements.
⚠️ 7 not_sure 80 67 -15.7% <0.0001 The -15.7% (-12.5 ms) improvement has no code path in this PR, which only changes the google-benchmark microbenchmark harness. CPU time is almost unchanged, and this query has a noisy history.

Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on.

Debug info
  • StressHouse run: 376e12db-d75d-4d28-988c-e12042637b69
  • MIRAI run: 0c16b1e0-ab78-4b26-b08e-149eb0bc3d1d
  • PR check IDs:
    • clickbench_2962385_1790972137
    • clickbench_2962398_1790972137
    • clickbench_2962404_1790972136
    • tpch_adapted_1_official_2962422_1790972136
    • tpch_adapted_1_official_2962456_1790972137
    • tpch_adapted_1_official_2962470_1790972137

thevar1able and others added 3 commits September 21, 2026 14:50
`google-benchmark` v1.9.5 makes `BENCHMARK_MAIN` call `benchmark::MaybeReenterWithoutASLR` before `benchmark::Initialize`. Mirror this in the only hand-written benchmark `main`, so it does not stay the single microbenchmark running with ASLR enabled.

ClickHouse#118893 (comment)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thevar1able
thevar1able added this pull request to the merge queue Oct 5, 2026
Merged via the queue into ClickHouse:master with commit 7e61b5f Oct 5, 2026
149 checks passed
@thevar1able
thevar1able deleted the bump-google-benchmark-v1.9.5 branch October 5, 2026 20:05
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 5, 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-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. manual approve Manual approve required to run CI pr-build Pull request with build/testing/packaging improvement pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants