execution-spec-tests icon indicating copy to clipboard operation
execution-spec-tests copied to clipboard

new(tests): add benchmarks with mass binop opcodes

Open chfast opened this issue 7 months ago • 1 comments

🗒️ Description

This adds the benchmarks for EVM execution focused on binary instructions (takes two values, produces one). The benchmark has simple structure: the contract code is the infinite loop will up to the code size limit with the parametrized binop applied to two initial values balanced with DUP2 instruction.

🔗 Related Issues

https://github.com/ethereum/execution-spec-tests/issues/1571

✅ Checklist

  • [ ] All: Set appropriate labels for the changes.
  • [x] All: Considered squashing commits to improve commit history.
  • [ ] All: Added an entry to CHANGELOG.md.
  • [ ] All: Considered updating the online docs in the ./docs/ directory.
  • [ ] Tests: All converted JSON/YML tests from ethereum/tests have been added to converted-ethereum-tests.txt.
  • [ ] Tests: A PR with removal of converted JSON/YML tests from ethereum/tests have been opened.
  • [ ] Tests: Included the type and version of evm t8n tool used to locally execute test cases: e.g., ref with commit hash or geth 1.13.1-stable-3f40e65.
  • [ ] Tests: Ran mkdocs serve locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.

chfast avatar May 13 '25 08:05 chfast

I plan to enable this for MOD too so don't merge yet.

chfast avatar May 14 '25 09:05 chfast