on master help sign in
Refactor streamly-benchmarks.cabal, change some function names
56fce33Anurag Hooda
benchmark/Streamly/Benchmark/Data/Unfold.hs+1−1
@@ -611,7 +611,7 @@ readWriteBracketUnfold inh devNull =
611
611
612o_1_space_copy_read_exceptions :: BenchEnv -> [Benchmark]
612o_1_space_copy_read_exceptions :: BenchEnv -> [Benchmark]
613o_1_space_copy_read_exceptions env =
613o_1_space_copy_read_exceptions env =
614− [ bgroup "copy/exceptions"
614+ [ bgroup "exceptions"
615 [ mkBenchSmall "UF.onException" env $ \inh _ ->
615 [ mkBenchSmall "UF.onException" env $ \inh _ ->
616 readWriteOnExceptionUnfold inh (nullH env)
616 readWriteOnExceptionUnfold inh (nullH env)
617 , mkBenchSmall "UF.handle" env $ \inh _ ->
617 , mkBenchSmall "UF.handle" env $ \inh _ ->
benchmark/Streamly/Benchmark/Unicode/Stream.hs+7−7
@@ -62,8 +62,8 @@ inspect $ hasNoTypeClasses 'copyCodecUtf8ArraysLenient
62-- inspect $ 'copyCodecUtf8ArraysLenient `hasNoType` ''Step
62-- inspect $ 'copyCodecUtf8ArraysLenient `hasNoType` ''Step
63#endif
63#endif
64
64
65−o_1_space_copy_chunked :: BenchEnv -> [Benchmark]
65+o_1_space_decode_encode_chunked :: BenchEnv -> [Benchmark]
66−o_1_space_copy_chunked env =
66+o_1_space_decode_encode_chunked env =
67 [ bgroup "decode-encode/toChunks"
67 [ bgroup "decode-encode/toChunks"
68 [
68 [
69 mkBenchSmall "decodeEncodeUtf8Lenient" env $ \inH outH ->
69 mkBenchSmall "decodeEncodeUtf8Lenient" env $ \inH outH ->
@@ -253,8 +253,8 @@ inspect $ hasNoTypeClasses 'copyStreamUtf8
253-- inspect $ 'copyStreamUtf8Lax `hasNoType` ''D.ConcatMapUState
253-- inspect $ 'copyStreamUtf8Lax `hasNoType` ''D.ConcatMapUState
254#endif
254#endif
255
255
256−o_1_space_copy_read :: BenchEnv -> [Benchmark]
256+o_1_space_decode_encode_read :: BenchEnv -> [Benchmark]
257−o_1_space_copy_read env =
257+o_1_space_decode_encode_read env =
258 [ bgroup "decode-encode"
258 [ bgroup "decode-encode"
259 [
259 [
260 -- This needs an ascii file, as decode just errors out.
260 -- This needs an ascii file, as decode just errors out.
@@ -281,8 +281,8 @@ main = do
281
281
282 allBenchmarks env =
282 allBenchmarks env =
283 [ bgroup (o_1_space_prefix moduleName) $ Prelude.concat $
283 [ bgroup (o_1_space_prefix moduleName) $ Prelude.concat $
284− [ o_1_space_copy_chunked env
285− , o_1_space_copy_read_group_ungroup env
284+ [ o_1_space_copy_read_group_ungroup env
286− , o_1_space_copy_read env
285+ , o_1_space_decode_encode_chunked env
286+ , o_1_space_decode_encode_read env
287 ]
287 ]
288 ]
288 ]
benchmark/streamly-benchmarks.cabal+7−26
@@ -109,6 +109,9 @@ common bench-depends
109 , gauge >= 0.2.4 && < 0.3
109 , gauge >= 0.2.4 && < 0.3
110 , transformers >= 0.4 && < 0.6
110 , transformers >= 0.4 && < 0.6
111 , containers >= 0.5 && < 0.7
111 , containers >= 0.5 && < 0.7
112+ , typed-process >= 0.2.3 && < 0.3
113+ , directory >= 1.2.2 && < 1.4
114+ , ghc-prim >= 0.4 && < 0.7
112
115
113 if flag(fusion-plugin) && !impl(ghcjs) && !impl(ghc < 8.6)
116 if flag(fusion-plugin) && !impl(ghcjs) && !impl(ghc < 8.6)
114 build-depends:
117 build-depends:
@@ -132,10 +135,6 @@ library
132 exposed-modules: Streamly.Benchmark.Common
135 exposed-modules: Streamly.Benchmark.Common
133 , Streamly.Benchmark.Common.Handle
136 , Streamly.Benchmark.Common.Handle
134 , Streamly.Benchmark.Prelude
137 , Streamly.Benchmark.Prelude
135− build-depends:
136− typed-process >= 0.2.3 && < 0.3
137− , directory >= 1.2.2 && < 1.4
138− , ghc-prim >= 0.4 && < 0.7
139
138
140-------------------------------------------------------------------------------
139-------------------------------------------------------------------------------
141-- Benchmarks
140-- Benchmarks
@@ -161,7 +160,7 @@ common bench-options-threaded
161benchmark Prelude.Serial
160benchmark Prelude.Serial
162 import: bench-options
161 import: bench-options
163 type: exitcode-stdio-1.0
162 type: exitcode-stdio-1.0
164− hs-source-dirs: . Streamly/Benchmark/Prelude
163+ hs-source-dirs: Streamly/Benchmark/Prelude
165 main-is: Serial.hs
164 main-is: Serial.hs
166 other-modules:
165 other-modules:
167 Serial.Generation
166 Serial.Generation
@@ -172,16 +171,11 @@ benchmark Prelude.Serial
172 , Serial.Nested
171 , Serial.Nested
173 , Serial.Exceptions
172 , Serial.Exceptions
174 , Serial.Split
173 , Serial.Split
175− ghc-options: +RTS -M1000M -RTS
174+ ghc-options: +RTS -M750M -RTS
176 if impl(ghcjs)
175 if impl(ghcjs)
177 buildable: False
176 buildable: False
178 else
177 else
179 buildable: True
178 buildable: True
180− build-depends:
181− typed-process >= 0.2.3 && < 0.3
182− , directory >= 1.2.2 && < 1.4
183− , ghc-prim >= 0.4 && < 0.7
184− , inspection-testing >= 0.4 && < 0.5
185
179
186benchmark Prelude.WSerial
180benchmark Prelude.WSerial
187 import: bench-options
181 import: bench-options
@@ -265,10 +259,6 @@ benchmark Data.Unfold
265 buildable: False
259 buildable: False
266 else
260 else
267 buildable: True
261 buildable: True
268− build-depends:
269− typed-process >= 0.2.3 && < 0.3
270− , directory >= 1.2.2 && < 1.4
271− , ghc-prim >= 0.4 && < 0.7
272
262
273benchmark Data.Fold
263benchmark Data.Fold
274 import: bench-options
264 import: bench-options
@@ -454,16 +444,11 @@ benchmark Memory.Array
454benchmark FileSystem.Handle
444benchmark FileSystem.Handle
455 import: bench-options
445 import: bench-options
456 type: exitcode-stdio-1.0
446 type: exitcode-stdio-1.0
457− ghc-options: +RTS -M3000M -RTS
458− hs-source-dirs: . Streamly/Benchmark/FileSystem
447+ hs-source-dirs: Streamly/Benchmark/FileSystem
459 main-is: Handle.hs
448 main-is: Handle.hs
460 other-modules:
449 other-modules:
461 Handle.Read
450 Handle.Read
462 , Handle.ReadWrite
451 , Handle.ReadWrite
463− build-depends:
464− typed-process >= 0.2.3 && < 0.3
465− , directory >= 1.2.2 && < 1.4
466− , ghc-prim >= 0.4 && < 0.7
467
452
468-------------------------------------------------------------------------------
453-------------------------------------------------------------------------------
469-- Unicode Benchmarks
454-- Unicode Benchmarks
@@ -471,12 +456,8 @@ benchmark FileSystem.Handle
471benchmark Unicode.Stream
456benchmark Unicode.Stream
472 import: bench-options
457 import: bench-options
473 type: exitcode-stdio-1.0
458 type: exitcode-stdio-1.0
474− hs-source-dirs: . Streamly/Benchmark/Unicode
459+ hs-source-dirs: Streamly/Benchmark/Unicode
475 main-is: Stream.hs
460 main-is: Stream.hs
476− build-depends:
477− typed-process >= 0.2.3 && < 0.3
478− , directory >= 1.2.2 && < 1.4
479− , ghc-prim >= 0.4 && < 0.7
480
461
481-------------------------------------------------------------------------------
462-------------------------------------------------------------------------------
482-- benchmark comparison and presentation
463-- benchmark comparison and presentation