Skip to content

Test Stack

Documentation for tests/benchmark/compute/instruction/test_stack.py@8db70f93.

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

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_dup benchmark_test 16 Benchmark DUP instruction.
test_push benchmark_test 33 Benchmark PUSH instruction.
test_swap benchmark_test 16 Benchmark SWAP instruction.