Skip to content

Test Single Opcode

Documentation for tests/benchmark/stateful/bloatnet/test_single_opcode.py@54b46ea9.

Generate fixtures for these test cases for Osaka with:

fill -v tests/benchmark/stateful/bloatnet/test_single_opcode.py -m stateful

abstract: BloatNet single-opcode benchmark cases for state-related operations.

These tests focus on individual EVM opcodes (SLOAD, SSTORE) to measure their performance when accessing many storage slots across pre-deployed contracts. Unlike multi-opcode tests, these isolate single operations to benchmark specific state-handling bottlenecks.

Test Functions Overview

Name Type Cases (Osaka) Description
test_sload_empty_erc20_balanceof blockchain_test 5 BloatNet SLOAD benchmark using ERC20 balanceOf queries on random
test_sstore_erc20_approve blockchain_test 5 BloatNet SSTORE benchmark using ERC20 approve to write to storage.