@@ -160,6 +160,7 @@ library lib-prelude
161common bench-options
161common bench-options
162 import: compile-options, optimization-options, bench-depends
162 import: compile-options, optimization-options, bench-depends
163+ ghc-options: -rtsopts
163 build-depends: streamly-benchmarks
164 build-depends: streamly-benchmarks
165-- Some benchmarks are threaded some are not
166-- Some benchmarks are threaded some are not
@@ -181,7 +182,6 @@ common bench-options-threaded
181benchmark serial
182benchmark serial
182 import: bench-options
183 import: bench-options
183 type: exitcode-stdio-1.0
184 type: exitcode-stdio-1.0
184− ghc-options: -rtsopts
185 hs-source-dirs: Streamly/Benchmark/Prelude
185 hs-source-dirs: Streamly/Benchmark/Prelude
186 main-is: Serial.hs
186 main-is: Serial.hs
187 if impl(ghcjs)
187 if impl(ghcjs)
@@ -204,7 +204,6 @@ benchmark fold
204benchmark unfold
204benchmark unfold
205 import: bench-options
205 import: bench-options
206 type: exitcode-stdio-1.0
206 type: exitcode-stdio-1.0
207− ghc-options: -rtsopts
208 hs-source-dirs: ., Streamly/Benchmark/Data
207 hs-source-dirs: ., Streamly/Benchmark/Data
209 main-is: Unfold.hs
208 main-is: Unfold.hs
210 other-modules: Streamly.Benchmark.Data.NestedUnfoldOps
209 other-modules: Streamly.Benchmark.Data.NestedUnfoldOps
@@ -256,7 +255,6 @@ benchmark parser
256benchmark Data.Stream.StreamD
255benchmark Data.Stream.StreamD
257 import: bench-options
256 import: bench-options
258 type: exitcode-stdio-1.0
257 type: exitcode-stdio-1.0
259− ghc-options: -rtsopts
260 hs-source-dirs: Streamly/Benchmark/Data/Stream
258 hs-source-dirs: Streamly/Benchmark/Data/Stream
261 main-is: StreamD.hs
259 main-is: StreamD.hs
262 if impl(ghcjs)
260 if impl(ghcjs)
@@ -267,7 +265,6 @@ benchmark Data.Stream.StreamD
267benchmark Data.Stream.StreamK
265benchmark Data.Stream.StreamK
268 import: bench-options
266 import: bench-options
269 type: exitcode-stdio-1.0
267 type: exitcode-stdio-1.0
270− ghc-options: -rtsopts
271 hs-source-dirs: Streamly/Benchmark/Data/Stream
268 hs-source-dirs: Streamly/Benchmark/Data/Stream
272 main-is: StreamK.hs
269 main-is: StreamK.hs
273 if impl(ghcjs)
270 if impl(ghcjs)
@@ -278,7 +275,6 @@ benchmark Data.Stream.StreamK
278benchmark Data.Stream.StreamDK
275benchmark Data.Stream.StreamDK
279 import: bench-options
276 import: bench-options
280 type: exitcode-stdio-1.0
277 type: exitcode-stdio-1.0
281− ghc-options: -rtsopts
282 hs-source-dirs: Streamly/Benchmark/Data/Stream
278 hs-source-dirs: Streamly/Benchmark/Data/Stream
283 main-is: StreamDK.hs
279 main-is: StreamDK.hs
284 if impl(ghcjs)
280 if impl(ghcjs)
@@ -364,34 +360,30 @@ benchmark linear-rate
364-- Array Benchmarks
360-- Array Benchmarks
365-------------------------------------------------------------------------------
361-------------------------------------------------------------------------------
367−benchmark unpinned-array
363+benchmark Data.Array
368 import: bench-options
364 import: bench-options
369 type: exitcode-stdio-1.0
365 type: exitcode-stdio-1.0
370− ghc-options: -with-rtsopts "-T -K1K -M128M"
371 hs-source-dirs: .
366 hs-source-dirs: .
372 main-is: Streamly/Benchmark/Data/Array.hs
367 main-is: Streamly/Benchmark/Data/Array.hs
373 other-modules: Streamly.Benchmark.Data.ArrayOps
368 other-modules: Streamly.Benchmark.Data.ArrayOps
375−benchmark prim-array
370+benchmark Data.Prim.Array
376 import: bench-options
371 import: bench-options
377 type: exitcode-stdio-1.0
372 type: exitcode-stdio-1.0
378− ghc-options: -with-rtsopts "-T -K64K -M32M"
379 hs-source-dirs: .
373 hs-source-dirs: .
380 main-is: Streamly/Benchmark/Data/Prim/Array.hs
374 main-is: Streamly/Benchmark/Data/Prim/Array.hs
381 other-modules: Streamly.Benchmark.Data.Prim.ArrayOps
375 other-modules: Streamly.Benchmark.Data.Prim.ArrayOps
383−benchmark small-array
377+benchmark Data.SmallArray
384 import: bench-options
378 import: bench-options
385 type: exitcode-stdio-1.0
379 type: exitcode-stdio-1.0
386− ghc-options: -with-rtsopts "-T -K128K -M16M"
387 hs-source-dirs: .
380 hs-source-dirs: .
388 main-is: Streamly/Benchmark/Data/SmallArray.hs
381 main-is: Streamly/Benchmark/Data/SmallArray.hs
389 other-modules: Streamly.Benchmark.Data.SmallArrayOps
382 other-modules: Streamly.Benchmark.Data.SmallArrayOps
391−benchmark array
384+benchmark Memory.Array
392 import: bench-options
385 import: bench-options
393 type: exitcode-stdio-1.0
386 type: exitcode-stdio-1.0
394− ghc-options: -with-rtsopts "-T -K64K -M128M"
395 hs-source-dirs: .
387 hs-source-dirs: .
396 main-is: Streamly/Benchmark/Memory/Array.hs
388 main-is: Streamly/Benchmark/Memory/Array.hs
397 other-modules: Streamly.Benchmark.Memory.ArrayOps
389 other-modules: Streamly.Benchmark.Memory.ArrayOps