Test Stack¶
Documentation for tests/benchmark/compute/instruction/test_stack.py@c17999c0.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/benchmark/compute/instruction/test_stack.py --gas-benchmark-values 1
Benchmark stack instructions.
Supported Opcodes: - POP - PUSHx - DUPx - SWAPx - DUPN - SWAPN - EXCHANGE
Test Functions Overview¶
| Name | Type | Cases (Amsterdam) | Description |
|---|---|---|---|
test_dup |
benchmark_test | 16 | Benchmark DUP instruction. |
test_dupn |
benchmark_test | 3 | Benchmark DUPN instruction. |
test_exchange |
benchmark_test | 3 | Benchmark EXCHANGE instruction. |
test_push |
benchmark_test | 33 | Benchmark PUSH instruction. |
test_push_truncated_data |
benchmark_test | 6 | Benchmark a PUSH whose data portion runs past the end of the code. |
test_swap |
benchmark_test | 16 | Benchmark SWAP instruction. |
test_swapn |
benchmark_test | 3 | Benchmark SWAPN instruction. |