Skip to content

feat(test-benchmark): devnet-7 compatibility for stateful benchmark#2885

Open
LouisTsai-Csie wants to merge 7 commits into
ethereum:devnets/bal/7from
LouisTsai-Csie:devnet-7-bench
Open

feat(test-benchmark): devnet-7 compatibility for stateful benchmark#2885
LouisTsai-Csie wants to merge 7 commits into
ethereum:devnets/bal/7from
LouisTsai-Csie:devnet-7-bench

Conversation

@LouisTsai-Csie
Copy link
Copy Markdown
Collaborator

@LouisTsai-Csie LouisTsai-Csie commented May 20, 2026

🗒️ Description

This is the branch for benchmarking on devnet-7. It should not be merged before the following issue being resolved:

  • Three commits being reverted, since they are conflicting the existing benchmark implementation (Done ✅ )
  • commit: 97870e8
  • commit: 0d06ba2
  • commit: 0cd4522

Details of each commit:

  • commit 765f607: there are several cache strategies, now we only need NO_CACHE variant, this commit remove all the other combination.
  • commit 3c11409: use dynamic gas cost calculation instead of hardcoding cost.
  • commit 159d43b: same as commit 3c11409
  • commit 2eee485: Update pre-funding account, originally we use 0x111...111 as initial pkey, but it is already occupied, update it to use a more random seed. Related PR feat: add extra withdrawal request for pre-funding NethermindEth/gas-benchmarks#146 could be found in gas-benchmarks.
  • commit 8a911bb: refactor test_sstore_bloated benchmark to support eip-8037 state gas calculation.
  • commit 15ee1b1 and ea8c452: there were some linting issue in devnets/bal/7 branch. These commits used for fixing the linting issue.

For commit 765f607, 3c11409 and 8a911bb, they are already reviewed and merged into devnets/bal/3. This PR cherry-picks them to make sure benchmark test implementation is up-to-date to the latest spec.

Then the linting issue should be fixed, which is included in this PR #2884 , and then rebase this PR, review and merge.

🔗 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 and others added 6 commits May 20, 2026 13:59
…hmark (ethereum#2771)

* refactor: failing 8037 benchmark cases

* refactor: auth tx limit

* fix: linitng issue

* chore: ignore local EIP-8037 notes in `markdownlint-cli2`

Add `.markdownlint-cli2.yaml` with an `ignores` list for the
`EIP8037_REMAINING_FAILURES.md`, `EIP8037_PORTED_STATIC_FAILURES.md`,
and `EIP8037_IMPLEMENTATION.md` working notes at the repo root.

* refactor: deploy contract gas limit accounting

* fix: gas accounting

* feat: add stub for new snapshot

---------

Co-authored-by: danceratopz <danceratopz@gmail.com>
@LouisTsai-Csie LouisTsai-Csie changed the base branch from forks/amsterdam to devnets/bal/7 May 20, 2026 06:17
@LouisTsai-Csie LouisTsai-Csie marked this pull request as draft May 20, 2026 06:18
Comment on lines +647 to +651
gas_limit=(
intrinsic_calc(authorization_list_or_count=1)
+ storage_init_code.gas_cost(fork)
+ 500_000
),
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Remove the hardcoded gas limit, adjust to dynamic gas cost calculation and leave some buffer.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This applies to other changes within the file.

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