Skip to content

Conversation

@danceratopz
Copy link

I think we need these two small last changes? 🙏

Account for per-contract loop setup/teardown overhead:
- SLOAD loop: MSTORE init + JUMPDEST + condition check (23 gas)
- SSTORE loop: MSTORE selector + MSTORE init + JUMPDEST + condition (26 gas)
- Total: 49 gas per contract

This aligns with the approach used in test_sload_empty_erc20_balanceof
and test_sstore_erc20_approve.
Copy link
Owner

@CPerezz CPerezz left a comment

Choose a reason for hiding this comment

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

Thanks a lot and apologies for the mess...

@CPerezz CPerezz merged commit bc026bb into CPerezz:feat/update-stateful-benches-osaka Jan 8, 2026
1 of 8 checks passed
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