You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(benchmark): update starting fork from prague (#2139)
* fix: update starting fork for benchmark test
* doc: update benchmark fork description
* refactor: update benchmark test generation to use a default benchmark fork
Copy file name to clipboardExpand all lines: docs/writing_tests/benchmarks.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ Benchmark tests aim to maximize the usage of a specific opcode, precompile, or o
4
4
5
5
To fill a benchmark test, in addition to the usual test flags, you must include the `-m benchmark` flag. This is necessary because benchmark tests are ignored by default; they must be manually selected via the `benchmark` pytest marker (="tag"). This marker is applied to all tests under `./tests/benchmark/` automatically by the framework.
6
6
7
+
**Note:** Benchmark tests are now only available starting from the `Prague` fork. Tests targeting earlier forks (`Cancun` or prior) are not supported in benchmark mode.
8
+
7
9
## Setting the Gas Limit for Benchmarking
8
10
9
11
To consume the full benchmark gas limit, use the `gas_benchmark_value` fixture as the gas limit:
0 commit comments