Test System¶
Documentation for tests/benchmark/compute/instruction/test_system.py@814481c0.
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_call_opcodes_to_precompile |
benchmark_test | 6 | Benchmark every call opcode dispatching to a precompile. |
test_contract_calling_many_addresses |
benchmark_test | 8 | Benchmark a contract that calls many distinct 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_creates_reverting_initcode |
benchmark_test | 6 | Benchmark CREATE and CREATE2 whose initcode reverts. |
test_delegatecall_staticcall |
benchmark_test | 4 | Benchmark a contract that STATICCALL/DELEGATECALL accounts. |
test_nested_call_chain |
benchmark_test | 1 | Benchmark nested call frames that each enter a different contract. |
test_nested_calls |
benchmark_test | 4 | Benchmark chains of nested call frames. |
test_nested_creates |
benchmark_test | 2 | Benchmark chains of nested CREATE frames. |
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 | 3 | Benchmark SELFDESTRUCT instruction executed in initcode. |