L1 Sepolia
L2 Optimism
Setup — deploy PolicyHashProgram.sol on both networks first
DEPLOYMENT
Smart Contract Deployment
Gas used and cost to deploy PolicyHashProgram.sol — from real deployment transaction receipt
Metric L1 — Ethereum Sepolia L2 — Optimism Sepolia
Gas used (units)
Gas price (Gwei)
Cost (ETH)
Cost (USD)
WRITING TIME
Writing Time — storeMotherHash()
10 batches × 3 transactions = 30 txs per layer · each row = avg of 3 txs · parallel receipts per batch
Test # L1 Time (s) L2 Time (s)
WRITING GAS
Writing Policy Hash — Gas Cost
10 batches × 3 txs = 30 txs per layer · each row = avg gas of 3 transactions
Test # L1 Gas (units) L1 Cost (ETH) L1 Cost (USD) L2 Gas (units) L2 Cost (ETH) L2 Cost (USD)
READING TIME
Reading Time — getMotherHash()
10 batches × 10 calls = 100 total calls per layer · each row = avg of 10 calls · free (no gas)
Batch # (calls) L1 Avg (ms) L2 Avg (ms)
UPDATING GAS
Updating Policy Hash — Gas Cost
10 batches × 3 transactions = 30 txs per layer · each row = avg of 3 update txs
Test # L1 Time (s) L1 Gas (units) L1 Cost (ETH) L1 Cost (USD) L2 Time (s) L2 Gas (units) L2 Cost (ETH) L2 Cost (USD)