Skip to content

Test Transient Storage

Documentation for tests/benchmark/stateful/bloatnet/test_transient_storage.py@8db70f93.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/stateful/bloatnet/test_transient_storage.py --gas-benchmark-values 1

abstract: Transient storage benchmark cases for TSTORE/TLOAD saturation.

These tests stress transient storage (EIP-1153) by performing massive numbers of TSTORE/TLOAD operations within a single block. Unlike persistent SSTORE (20K gas), TSTORE costs only 100 gas with no cold/warm distinction, enabling vastly more writes per block.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_tstore_same_key benchmark_test 2 Benchmark TSTORE writing the same key repeatedly.
test_tstore_unique_keys benchmark_test 2 Benchmark TSTORE with unique keys per iteration.