Skip to content

refactor(test-benchmark): support 8037 for SSTORE benchmark - #2787

Merged
LouisTsai-Csie merged 3 commits into
ethereum:devnets/bal/3from
LouisTsai-Csie:fix-sstore-benchmark-8037
May 7, 2026
Merged

LouisTsai-Csie merged 3 commits into
ethereum:devnets/bal/3from
LouisTsai-Csie:fix-sstore-benchmark-8037

Conversation

@LouisTsai-Csie

@LouisTsai-Csie LouisTsai-Csie commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

🗒️ Description

Under eip-8037, SSTORE on a zero to nonzero transition incurs an additional state-gas cost (32 * cost_per_state_byte) that was not being accounted for when sizing the per-tx iteration count. This PR updates the IteratingBytecode to support the eip-8037 helper and refactor the SSTORE benchmark.

🔗 Related Issues or PRs

N/A.

✅ Checklist

  • All: Ran fast static checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:
    just static
  • All: PR title adheres to the repo standard - it will be used as the squash commit message and should start type(scope):.
  • All: Considered updating the online docs in the ./docs/ directory.
  • All: Set appropriate labels for the changes (only maintainers can apply labels).
  • Tests: Ran mkdocs serve locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.
  • Tests: For PRs implementing a missed test case, update the post-mortem document to add an entry the list.
  • Ported Tests: All converted JSON/YML tests from ethereum/tests or tests/static have been assigned @ported_from marker.

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@LouisTsai-Csie
LouisTsai-Csie force-pushed the fix-sstore-benchmark-8037 branch from f0abc1d to 9169087 Compare April 30, 2026 11:12
@codecov

codecov Bot commented Apr 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (devnets/bal/3@6426b69). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             devnets/bal/3    #2787   +/-   ##
================================================
  Coverage                 ?   86.45%           
================================================
  Files                    ?      599           
  Lines                    ?    37214           
  Branches                 ?     3817           
================================================
  Hits                     ?    32175           
  Misses                   ?     4502           
  Partials                 ?      537           
Flag Coverage Δ
unittests 86.45% <ø> (?)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LouisTsai-Csie
LouisTsai-Csie force-pushed the fix-sstore-benchmark-8037 branch from ea706e0 to 41253e3 Compare April 30, 2026 13:54
cache_txs.append(
Transaction(
gas_limit=tx.gas_limit,
data=tx.data,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The data does not seem to be set (always empty) is this correct?

@LouisTsai-Csie
LouisTsai-Csie force-pushed the fix-sstore-benchmark-8037 branch from c060847 to 7b77c8c Compare May 5, 2026 08:44
@LouisTsai-Csie
LouisTsai-Csie marked this pull request as ready for review May 5, 2026 09:14

@fselmo fselmo left a comment

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.

I think this makes sense @LouisTsai-Csie. If you're seeing what you need in gas-benchmarks I think we can merge this and address anything else in a future PR. Going to approve to unblock you but I left some comments for us to think about.

@LouisTsai-Csie
LouisTsai-Csie requested a review from fselmo May 7, 2026 03:11
@LouisTsai-Csie
LouisTsai-Csie merged commit 2ec27b0 into ethereum:devnets/bal/3 May 7, 2026
21 checks passed
LouisTsai-Csie added a commit to LouisTsai-Csie/execution-specs that referenced this pull request May 14, 2026
LouisTsai-Csie added a commit to LouisTsai-Csie/execution-specs that referenced this pull request May 20, 2026
LouisTsai-Csie added a commit to LouisTsai-Csie/execution-specs that referenced this pull request May 20, 2026
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.

3 participants