Skip to content

Commit 2baa264

Browse files
committed
bench-perf: use -N1 for single-threaded EVM benchmarks
EVM execution is single-threaded. With -N (auto-detect), GHC creates one capability per core, each with a 32MB nursery. The extra capabilities add GC synchronization overhead without benefit since only one is used. Also adds -rtsopts so RTS parameters can be overridden at runtime.
1 parent 10093e1 commit 2baa264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hevm.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ benchmark bench-perf
381381
hs-source-dirs:
382382
bench
383383
ghc-options:
384-
-O2 -threaded "-with-rtsopts=-N -A32m" -fproc-alignment=64
384+
-O2 -threaded -rtsopts "-with-rtsopts=-N1 -A32m" -fproc-alignment=64
385385
other-modules:
386386
Paths_hevm
387387
autogen-modules:

0 commit comments

Comments
 (0)