Test System¶
Documentation for tests/benchmark/compute/instruction/test_system.py@8db70f93.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/benchmark/compute/instruction/test_system.py --gas-benchmark-values 1
Benchmark system instructions.
Supported Opcodes: - CREATE - CREATE2 - RETURN - REVERT - CALL - CALLCODE - DELEGATECALL - STATICCALL - SELFDESTRUCT
Test Functions Overview¶
| Name | Type | Cases (Amsterdam) | Description |
|---|---|---|---|
test_contract_calling_many_addresses |
benchmark_test | 8 | Benchmark a contract that calls many addresses. |
test_create |
benchmark_test | 20 | Benchmark CREATE and CREATE2 instructions. |
test_creates_collisions |
benchmark_test | 2 | Benchmark CREATE and CREATE2 instructions with collisions. |
test_return_revert |
benchmark_test | 10 | Benchmark RETURN and REVERT instructions. |
test_selfdestruct_created |
benchmark_test | 2 | Benchmark SELFDESTRUCT instruction for contracts created in same tx. |
test_selfdestruct_existing |
benchmark_test | 2 | Benchmark SELFDESTRUCT instruction for existing contracts. |
test_selfdestruct_initcode |
benchmark_test | 2 | Benchmark SELFDESTRUCT instruction executed in initcode. |