feat: avm executor - layout and groundwork#3928
Conversation
Benchmark resultsMetrics with a significant change:
Detailed resultsAll benchmarks are run on txs on the This benchmark source data is available in JSON format on S3 here. Values are compared against data from master at commit L2 block published to L1Each column represents the number of txs on an L2 block published to L1.
L2 chain processingEach column represents the number of blocks on the L2 chain where each block has 16 txs.
Circuits statsStats on running time and I/O sizes collected for every circuit run across all benchmarks.
Tree insertion statsThe duration to insert a fixed batch of leaves into each tree type.
MiscellaneousTransaction sizes based on how many contracts are deployed in the tx.
Transaction processing duration by data writes.
|
|
Current dependencies on/for this PR: This stack of pull requests is managed by Graphite. |
dbanks12
left a comment
There was a problem hiding this comment.
Very nice work! Left some comments (mostly minor).
dbanks12
left a comment
There was a problem hiding this comment.
LGTM, but we should still resolve the remaining comments :)

Base work for avm - heavily a wip -> making a pr now for eyeballs
Key ideas:
Executor:
Interpreter:
AvmStateManager:
Journal
Rather than reading and writing to the db, we introduce a journal.
All intermediate storage operations are read from here.
Journal structure:
Opcode structure
Each opcode takes in a view of the state manager and the current call context.
This diagram loosely shows the structure

fixes: #3317