Skip to content

Commit a8a946e

Browse files
committed
use -qg because otherwise the parallel GC slows down things more than concurrency ads
disable parallel garbage collection
1 parent 267199b commit a8a946e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

benchmark/clash-benchmark.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ library
2929
executable clash-benchmark-normalization
3030
main-is: benchmark-normalization.hs
3131
default-language: Haskell2010
32-
ghc-options: -O2 -Wall -Wcompat -threaded -rtsopts -with-rtsopts=-N
32+
ghc-options: -O2 -Wall -Wcompat -threaded -rtsopts "-with-rtsopts=-N -qg"
3333
build-depends: base,
3434
concurrent-supply,
3535
containers,
@@ -48,7 +48,7 @@ executable clash-benchmark-normalization
4848
executable clash-benchmark-concurrency
4949
main-is: benchmark-concurrency.hs
5050
default-language: Haskell2010
51-
ghc-options: -O2 -Wall -Wcompat -threaded -rtsopts -with-rtsopts=-N
51+
ghc-options: -O2 -Wall -Wcompat -threaded -rtsopts "-with-rtsopts=-N -qg"
5252
build-depends: base,
5353
criterion,
5454
time,

clash-ghc/clash-ghc.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ flag use-ghc-paths
6868
executable clash
6969
Main-Is: src-ghc/Batch.hs
7070
Build-Depends: base, clash-ghc
71-
GHC-Options: -Wall -Wcompat -threaded -rtsopts
71+
GHC-Options: -Wall -Wcompat -threaded -rtsopts -with-rtsopts=-qg
7272
if flag(dynamic)
7373
GHC-Options: -dynamic
7474
extra-libraries: pthread
@@ -77,7 +77,7 @@ executable clash
7777
executable clashi
7878
Main-Is: src-ghc/Interactive.hs
7979
Build-Depends: base, clash-ghc
80-
GHC-Options: -Wall -Wcompat -threaded -rtsopts
80+
GHC-Options: -Wall -Wcompat -threaded -rtsopts -with-rtsopts=-qg
8181
if flag(dynamic)
8282
GHC-Options: -dynamic
8383
extra-libraries: pthread

0 commit comments

Comments
 (0)