Skip to content

Test Block Access Lists Compute Then SLOAD

Documentation for tests/benchmark/stateful/eip7928_block_level_access_lists/test_block_access_lists_compute_then_sload.py@892e6d1e.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/stateful/eip7928_block_level_access_lists/test_block_access_lists_compute_then_sload.py --gas-benchmark-values 1

Tests for EIP-7928 BAL with mixed computation and SLOADs.

Each loop iteration performs N compute steps (pure arithmetic) followed by one SLOAD + cursor increment. The compute_percent parameter controls N so that approximately that fraction of each iteration's gas is spent on computation vs. storage reads.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_bal_compute_then_sload benchmark_test 4 Test BAL with mixed computation and SLOAD per iteration.