Test Account Query¶
Documentation for tests/benchmark/compute/instruction/test_account_query.py@8db70f93.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/benchmark/compute/instruction/test_account_query.py --gas-benchmark-values 1
Benchmark operations that require querying the account state, either on the current executing account or on a target account.
Supported Opcodes: - SELFBALANCE - CODESIZE - CODECOPY - EXTCODESIZE - EXTCODEHASH - EXTCODECOPY - BALANCE
Test Functions Overview¶
| Name | Type | Cases (Amsterdam) | Description |
|---|---|---|---|
test_codecopy |
benchmark_test | 10 | Benchmark CODECOPY instruction. |
test_codecopy_benchmark |
benchmark_test | 20 | Benchmark CODECOPY with varying memory and code size config. |
test_codesize |
benchmark_test | 1 | Benchmark CODESIZE instruction. |
test_ext_account_query_cold |
benchmark_test | 2 | Benchmark stateful opcodes accessing cold accounts. |
test_extcodecopy_warm |
benchmark_test | 5 | Benchmark EXTCODECOPY instruction. |
test_selfbalance |
benchmark_test | 2 | Benchmark SELFBALANCE instruction. |