Skip to content

test_call_frame_context_ops()

Documentation for tests/benchmark/compute/instruction/test_call_context.py::test_call_frame_context_ops@21507778.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/compute/instruction/test_call_context.py::test_call_frame_context_ops --gas-benchmark-values 1

Benchmark call zero-parameter instructions.

Source code in tests/benchmark/compute/instruction/test_call_context.py
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@pytest.mark.repricing
@pytest.mark.parametrize(
    "opcode",
    [
        Op.ADDRESS,
        Op.CALLER,
    ],
)
def test_call_frame_context_ops(
    benchmark_test: BenchmarkTestFiller,
    opcode: Op,
) -> None:
    """Benchmark call zero-parameter instructions."""
    benchmark_test(
        target_opcode=opcode,
        code_generator=ExtCallGenerator(attack_block=opcode),
    )

Parametrized Test Cases

This test generates 2 parametrized test cases across 3 forks.