Skip to content

test_not_op()

Documentation for tests/benchmark/compute/instruction/test_bitwise.py::test_not_op@8db70f93.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/compute/instruction/test_bitwise.py::test_not_op --gas-benchmark-values 1

Benchmark NOT instruction (takes one arg, pushes one value).

Source code in tests/benchmark/compute/instruction/test_bitwise.py
114
115
116
117
118
119
120
121
122
123
124
@pytest.mark.repricing
def test_not_op(
    benchmark_test: BenchmarkTestFiller,
) -> None:
    """
    Benchmark NOT instruction (takes one arg, pushes one value).
    """
    benchmark_test(
        target_opcode=Op.NOT,
        code_generator=JumpLoopGenerator(setup=Op.PUSH0, attack_block=Op.NOT),
    )

Parametrized Test Cases

This test generates 1 parametrized test case across 3 forks.