Skip to content

test_codesize()

Documentation for tests/benchmark/compute/instruction/test_account_query.py::test_codesize@7b8124a7.

Generate fixtures for these test cases for Osaka 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
59
60
61
62
63
64
65
66
67
68
69
70
@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 2 forks.