Skip to content

test_worst_jumpis()

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

Generate fixtures for these test cases for Osaka with:

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

Test running a JUMPI-intensive contract.

Source code in tests/benchmark/test_worst_compute.py
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
def test_worst_jumpis(
    benchmark_test: BenchmarkTestFiller,
    pre: Alloc,
) -> None:
    """Test running a JUMPI-intensive contract."""
    tx = Transaction(
        to=pre.deploy_contract(code=(Op.JUMPDEST + Op.JUMPI(Op.PUSH0, Op.NUMBER))),
        sender=pre.fund_eoa(),
    )

    benchmark_test(tx=tx)

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Prague-blockchain_test
...fork_Osaka-blockchain_test