Skip to content

Test CREATE2 Access

Documentation for tests/benchmark/stateful/bloatnet/test_create2_access.py@8db70f93.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/stateful/bloatnet/test_create2_access.py --gas-benchmark-values 1

abstract: CREATE2 deploy + immediate access benchmark cases.

These tests benchmark the deploy-then-access pattern: CREATE2 a contract, then immediately query it with EXTCODEHASH, BALANCE, or EXTCODECOPY in the same transaction. This tests whether clients efficiently serve state that was just written to the trie.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_create2_immediate_access benchmark_test 9 Benchmark CREATE2 followed by immediate opcode access.