Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile EOF analysis in terms of EIP-3860 #175

Open
axic opened this issue Jan 26, 2025 · 4 comments
Open

Profile EOF analysis in terms of EIP-3860 #175

axic opened this issue Jan 26, 2025 · 4 comments

Comments

@axic
Copy link
Member

axic commented Jan 26, 2025

See ethereum/EIPs#9265 (comment)

@pdobacz
Copy link
Member

pdobacz commented Jan 27, 2025

To keep in mind that EOF validation is currently only done for
1/ EOF creation txs
2/ (tenative) TXCREATE

and therefore is charged for at a much greater (than EIP-3860) rate for the calldata itself.

We still want to know how EOF code validation cost relates to some sensible point of reference (ECRECOVER?).

@shemnon
Copy link
Contributor

shemnon commented Jan 28, 2025

Benchmark contract ideas

  • Uniswapv3 router compiled by the new SOLC (or some other representative contract)
  • Min container (just STOP, like we have in EEST)
  • Max subcontainers - top level "wide"
  • Max nested subcontainers - "Deep"
  • "square" subcontainers (as deep as it is wide)
  • repeated invocation of the same opcode for each opcode that has validation handling
    • Optionally all in one section then spread across 1000, but I don't expect findings for this.
  • Max Code Sections, each a different size

@shemnon
Copy link
Contributor

shemnon commented Jan 28, 2025

Easy target too: every contract in EEST tests. Should cover many from the above list.

@chfast
Copy link
Member

chfast commented Jan 29, 2025

Benchmark infra in evmone: ethereum/evmone#1119.

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

No branches or pull requests

4 participants