Skip to content

Add gas benchmarks for key Rollups operations#5

Open
e3o8o wants to merge 1 commit into
eez-association:mainfrom
e3o8o:feat/gas-benchmarks
Open

Add gas benchmarks for key Rollups operations#5
e3o8o wants to merge 1 commit into
eez-association:mainfrom
e3o8o:feat/gas-benchmarks

Conversation

@e3o8o
Copy link
Copy Markdown

@e3o8o e3o8o commented Feb 27, 2026

Add 12 gas benchmark tests measuring costs for rollup creation, proxy deployment, execution Loading, batch posting, and execution lookup.

Run with: forge test --match-contract GasBenchmarkTest --gas-report -vv

Add 12 gas benchmark tests measuring costs for:

Rollup Creation:
- Single rollup creation
- 100th rollup creation (storage scaling)

Proxy Deployment:
- L2 proxy contract creation
- Proxy address computation (CREATE2)

Execution Loading:
- 1 execution × 1 state delta
- 1 execution × 3 state deltas (3 rollups)
- 1 execution × 5 state deltas (5 rollups)
- 10 executions × 1 state delta each

Batch Posting:
- Single rollup postBatch
- 5-rollup postBatch with ETH rebalancing

Execution Lookup:
- Lookup scaling with increasing stored executions
- Ether deposit

Run with: forge test --match-contract GasBenchmarkTest --gas-report -vv
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.

1 participant