Skip to content

test_codesize()

Documentation for tests/benchmark/compute/instruction/test_account_query.py::test_codesize@892e6d1e.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/compute/instruction/test_account_query.py::test_codesize --gas-benchmark-values 1

Benchmark CODESIZE instruction.

Source code in tests/benchmark/compute/instruction/test_account_query.py
52
53
54
55
56
57
58
59
60
61
62
63
@pytest.mark.repricing
def test_codesize(
    benchmark_test: BenchmarkTestFiller,
) -> None:
    """Benchmark CODESIZE instruction."""
    benchmark_test(
        target_opcode=Op.CODESIZE,
        code_generator=ExtCallGenerator(
            attack_block=Op.CODESIZE,
            code_padding_opcode=Op.INVALID,
        ),
    )

Parametrized Test Cases

This test generates 1 parametrized test case across 3 forks.