Skip to content

Test Worst Bytecode

Documentation for tests/benchmark/test_worst_bytecode.py@e9958ed2.

Generate fixtures for these test cases for Osaka with:

fill -v tests/benchmark/test_worst_bytecode.py -m benchmark

Tests that benchmark EVMs in worst-case opcode scenarios.

Test Functions Overview

Name Type Cases (Osaka) Description
test_worst_bytecode_single_opcode blockchain_test 7 Test a block execution where a single opcode execution maxes out the gas
test_worst_initcode_jumpdest_analysis benchmark_test 0 Test the jumpdest analysis performance of the initcode.
test_worst_create benchmark_test 0 Test the CREATE and CREATE2 performance with different configurations.
test_worst_creates_collisions benchmark_test 0 Test the CREATE and CREATE2 collisions performance.