test_worst_return_revert()¶
Documentation for tests/benchmark/test_worst_compute.py::test_worst_return_revert@88e9fb8f.
Generate fixtures for these test cases for Osaka with:
fill -v tests/benchmark/test_worst_compute.py::test_worst_return_revert -m benchmark
Test running a block with as many RETURN or REVERT as possible.
Source code in tests/benchmark/test_worst_compute.py
2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 | |
Parametrized Test Cases¶
This test case is only parametrized by fork.
| Test ID (Abbreviated) | return_size | return_non_zero_data | opcode |
|---|---|---|---|
| ...fork_Prague-blockchain_test-empty-opcode_RETURN | 0 | False | RETURN |
| ...fork_Prague-blockchain_test-empty-opcode_REVERT | 0 | False | REVERT |
| ...fork_Prague-blockchain_test-1KiB of non-zero data-opcode_RETURN | 1024 | True | RETURN |
| ...fork_Prague-blockchain_test-1KiB of non-zero data-opcode_REVERT | 1024 | True | REVERT |
| ...fork_Prague-blockchain_test-1KiB of zero data-opcode_RETURN | 1024 | False | RETURN |
| ...fork_Prague-blockchain_test-1KiB of zero data-opcode_REVERT | 1024 | False | REVERT |
| ...fork_Prague-blockchain_test-1MiB of non-zero data-opcode_RETURN | 1048576 | True | RETURN |
| ...fork_Prague-blockchain_test-1MiB of non-zero data-opcode_REVERT | 1048576 | True | REVERT |
| ...fork_Prague-blockchain_test-1MiB of zero data-opcode_RETURN | 1048576 | False | RETURN |
| ...fork_Prague-blockchain_test-1MiB of zero data-opcode_REVERT | 1048576 | False | REVERT |
| ...fork_Osaka-blockchain_test-empty-opcode_RETURN | 0 | False | RETURN |
| ...fork_Osaka-blockchain_test-empty-opcode_REVERT | 0 | False | REVERT |
| ...fork_Osaka-blockchain_test-1KiB of non-zero data-opcode_RETURN | 1024 | True | RETURN |
| ...fork_Osaka-blockchain_test-1KiB of non-zero data-opcode_REVERT | 1024 | True | REVERT |
| ...fork_Osaka-blockchain_test-1KiB of zero data-opcode_RETURN | 1024 | False | RETURN |
| ...fork_Osaka-blockchain_test-1KiB of zero data-opcode_REVERT | 1024 | False | REVERT |
| ...fork_Osaka-blockchain_test-1MiB of non-zero data-opcode_RETURN | 1048576 | True | RETURN |
| ...fork_Osaka-blockchain_test-1MiB of non-zero data-opcode_REVERT | 1048576 | True | REVERT |
| ...fork_Osaka-blockchain_test-1MiB of zero data-opcode_RETURN | 1048576 | False | RETURN |
| ...fork_Osaka-blockchain_test-1MiB of zero data-opcode_REVERT | 1048576 | False | REVERT |