Skip to content

Test Memory

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

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.