Skip to content

test_worst_clz_same_input()

Documentation for tests/benchmark/test_worst_compute.py::test_worst_clz_same_input@88e9fb8f.

Generate fixtures for these test cases for Osaka with:

fill -v tests/benchmark/test_worst_compute.py::test_worst_clz_same_input -m benchmark

Test running a block with as many CLZ with same input as possible.

Source code in tests/benchmark/test_worst_compute.py
2143
2144
2145
2146
2147
2148
2149
@pytest.mark.valid_from("Osaka")
def test_worst_clz_same_input(benchmark_test: BenchmarkTestFiller) -> None:
    """Test running a block with as many CLZ with same input as possible."""
    magic_value = 248  # CLZ(248) = 248
    benchmark_test(
        code_generator=JumpLoopGenerator(setup=Op.PUSH1(magic_value), attack_block=Op.CLZ),
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-blockchain_test