Skip to content

Test Memory

Documentation for tests/benchmark/compute/instruction/test_memory.py@814481c0.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/compute/instruction/test_memory.py --gas-benchmark-values 1

Benchmark memory instructions.

Supported Opcodes: - MSTORE - MSTORE8 - MLOAD - MSIZE - MCOPY

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_mcopy benchmark_test 48 Benchmark MCOPY instruction.
test_memory_access benchmark_test 90 Benchmark memory access instructions.
test_msize benchmark_test 5 Benchmark MSIZE instruction.
test_nested_frame_memory benchmark_test 9 Benchmark a deep frame stack where every frame holds live memory.
test_sibling_frame_memory benchmark_test 3 Benchmark sibling call frames that each expand their own memory.