Skip to content

test_empty_block()

Documentation for tests/benchmark/test_worst_compute.py::test_empty_block@e9958ed2.

Generate fixtures for these test cases for Osaka with:

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

Test running an empty block as a baseline for fixed proving costs.

Source code in tests/benchmark/test_worst_compute.py
1848
1849
1850
1851
1852
1853
1854
1855
def test_empty_block(
    benchmark_test: BenchmarkTestFiller,
) -> None:
    """Test running an empty block as a baseline for fixed proving costs."""
    benchmark_test(
        blocks=[Block(txs=[])],
        expected_benchmark_gas_used=0,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

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