Skip to content

Commit 74504c1

Browse files
docs(benchmarks): clarify gas usage check flexibility
1 parent dc4c0f0 commit 74504c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/writing_tests/benchmarks.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,5 @@ def test_empty_block(
6060
This is a safety check to make sure the benchmark works as expected. For example, if a test uses the `JUMP` instruction but the jump destination is invalid, each transaction will stop early. That means it won't use as much gas as we expected.
6161

6262
This check helps catch such issues. As a result, the post-storage comparison method via `SSTORE` is no longer needed, thereby reducing the additional storage cost.
63+
64+
However, in cases where it is difficult to determine the total gas usage, or if an alternative verification method is used, developers may set `expected_benchmark_gas_used` to `None` to disable the gas usage check.

0 commit comments

Comments
 (0)