Skip to content

test: Register the precompile benchmarks uniformly - #1658

Merged
chfast merged 1 commit into
masterfrom
test/bench-names
Aug 14, 2026
Merged

test: Register the precompile benchmarks uniformly#1658
chfast merged 1 commit into
masterfrom
test/bench-names

Conversation

@chfast

@chfast chfast commented Aug 14, 2026

Copy link
Copy Markdown
Member

The implementation functions are passed to BENCHMARK() directly instead of through aliases, which makes the seven namespaces that only existed to keep those aliases apart unnecessary, replaces the legacy BENCHMARK_TEMPLATE() with the form the modexp benchmarks in the same file already use, and a using enum declaration drops the redundant qualification from the generated names — precompile<ecadd, ecadd_execute> instead of precompile<PrecompileId::ecadd, evmmax_cpp>, now naming the measured implementation exactly. The benchmarks themselves are unchanged; this only removes 36 lines and makes the registrations uniform, which also keeps the names free of the :: that CodSpeed reserves for its file::name URI separator (#1653).

chfast added a commit that referenced this pull request Aug 14, 2026
BENCHMARK_TEMPLATE() is the legacy form and the modexp benchmarks in the same
file already use BENCHMARK(). Matches #1658.
Pass the implementation functions to BENCHMARK() directly instead of through
aliases, which makes the namespaces that only kept those aliases apart
unnecessary, and drop the redundant enum qualification from the names with a
using enum declaration. BENCHMARK_TEMPLATE() is the legacy form and the modexp
benchmarks in the same file already use BENCHMARK().
chfast added a commit that referenced this pull request Aug 14, 2026
BENCHMARK_TEMPLATE() is the legacy form and the modexp benchmarks in the same
file already use BENCHMARK(). Matches #1658.
@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.72%. Comparing base (81270e0) to head (6342bd4).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1658   +/-   ##
=======================================
  Coverage   97.72%   97.72%           
=======================================
  Files         171      171           
  Lines       15627    15627           
  Branches     3616     3616           
=======================================
  Hits        15271    15271           
  Misses        269      269           
  Partials       87       87           
Flag Coverage Δ
eest-develop 88.58% <ø> (ø)
eest-develop-gmp 26.52% <ø> (ø)
eest-legacy 17.15% <ø> (ø)
eest-libsecp256k1 28.79% <ø> (ø)
eest-stable 88.58% <ø> (ø)
evmone-unittests 93.43% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
core 96.10% <ø> (ø)
tooling 91.92% <ø> (ø)
tests 99.80% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Standardizes precompile benchmark registration and produces CodSpeed-compatible names without ::.

Changes:

  • Registers implementation functions directly with BENCHMARK().
  • Removes alias-only namespaces and shortens names via using enum.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chfast
chfast merged commit fce32b2 into master Aug 14, 2026
24 checks passed
@chfast
chfast deleted the test/bench-names branch August 14, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants