Skip to content

Test Worst Stateful Opcodes

Documentation for tests/benchmark/test_worst_stateful_opcodes.py@e9958ed2.

Generate fixtures for these test cases for Osaka with:

fill -v tests/benchmark/test_worst_stateful_opcodes.py -m benchmark

Tests that benchmark EVMs for worst-case stateful opcodes.

Test Functions Overview

Name Type Cases (Osaka) Description
test_worst_address_state_cold benchmark_test 0 Test running a block with as many stateful opcodes accessing cold accounts.
test_worst_address_state_warm benchmark_test 0 Test running a block with as many stateful opcodes doing warm access
test_worst_storage_access_cold benchmark_test 0 Test running a block with as many cold storage slot accesses as possible.
test_worst_storage_access_warm benchmark_test 0 Test running a block with as many warm storage slot accesses as
test_worst_blockhash benchmark_test 0 Test running a block with as many blockhash accessing oldest allowed block
test_worst_selfbalance benchmark_test 0 Test running a block with as many SELFBALANCE opcodes as possible.
test_worst_extcodecopy_warm benchmark_test 0 Test running a block with as many wamr EXTCODECOPY work as possible.
test_worst_selfdestruct_existing benchmark_test 0 Test running a block with as many SELFDESTRUCTs as possible for existing
test_worst_selfdestruct_created state_test 2 Test running a block with as many SELFDESTRUCTs as possible for deployed
test_worst_selfdestruct_initcode state_test 2 Test running a block with as many SELFDESTRUCTs as possible executed in