Skip to content

Conversation

@danceratopz
Copy link

Hi @CPerezz, please check carefully, thanks!

Use correct EVM gas constants for opcode costs:
- G_BASE (2) -> G_VERY_LOW (3) for DUP, ISZERO, MLOAD, MSTORE, SUB
- G_MID (8) -> G_HIGH (10) for JUMPI
- G_LOW (5) -> G_VERY_LOW (3) for MLOAD, MSTORE

This fixes underestimation of loop_condition_overhead and
overhead_per_contract calculations in test_multi_opcode.py and
test_single_opcode.py.
@CPerezz CPerezz merged commit 63e7322 into CPerezz:feat/update-stateful-benches-osaka Jan 8, 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.

2 participants