on master help sign in
Refactor streamly-benchmarks.cabal, change some function names
commit56fce33221ea95d79e5ce6128e58dd80be98b142 authorAnurag Hooda <anuraghooda@composewell.com> dateThu 10 Dec 2020, 07:13 (6 years ago) parent1ff4d3c
3 files changed+15−34
benchmark/Streamly/Benchmark/Data/Unfold.hs+1−1 benchmark/Streamly/Benchmark/Unicode/Stream.hs+7−7 benchmark/streamly-benchmarks.cabal+7−26
benchmark/Streamly/Benchmark/Data/Unfold.hs+1−1
@@ -611,7 +611,7 @@ readWriteBracketUnfold inh devNull =
611611
612612o_1_space_copy_read_exceptions :: BenchEnv -> [Benchmark]
613613o_1_space_copy_read_exceptions env =
614− [ bgroup "copy/exceptions"
614+ [ bgroup "exceptions"
615615 [ mkBenchSmall "UF.onException" env $ \inh _ ->
616616 readWriteOnExceptionUnfold inh (nullH env)
617617 , mkBenchSmall "UF.handle" env $ \inh _ ->
benchmark/Streamly/Benchmark/Unicode/Stream.hs+7−7
@@ -62,8 +62,8 @@ inspect $ hasNoTypeClasses 'copyCodecUtf8ArraysLenient
6262-- inspect $ 'copyCodecUtf8ArraysLenient `hasNoType` ''Step
6363#endif
6464
65−o_1_space_copy_chunked :: BenchEnv -> [Benchmark]
66−o_1_space_copy_chunked env =
65+o_1_space_decode_encode_chunked :: BenchEnv -> [Benchmark]
66+o_1_space_decode_encode_chunked env =
6767 [ bgroup "decode-encode/toChunks"
6868 [
6969 mkBenchSmall "decodeEncodeUtf8Lenient" env $ \inH outH ->
@@ -253,8 +253,8 @@ inspect $ hasNoTypeClasses 'copyStreamUtf8
253253-- inspect $ 'copyStreamUtf8Lax `hasNoType` ''D.ConcatMapUState
254254#endif
255255
256−o_1_space_copy_read :: BenchEnv -> [Benchmark]
257−o_1_space_copy_read env =
256+o_1_space_decode_encode_read :: BenchEnv -> [Benchmark]
257+o_1_space_decode_encode_read env =
258258 [ bgroup "decode-encode"
259259 [
260260 -- This needs an ascii file, as decode just errors out.
@@ -281,8 +281,8 @@ main = do
281281
282282 allBenchmarks env =
283283 [ bgroup (o_1_space_prefix moduleName) $ Prelude.concat $
284− [ o_1_space_copy_chunked env
285− , o_1_space_copy_read_group_ungroup env
286− , o_1_space_copy_read env
284+ [ o_1_space_copy_read_group_ungroup env
285+ , o_1_space_decode_encode_chunked env
286+ , o_1_space_decode_encode_read env
287287 ]
288288 ]
benchmark/streamly-benchmarks.cabal+7−26
@@ -109,6 +109,9 @@ common bench-depends
109109 , gauge >= 0.2.4 && < 0.3
110110 , transformers >= 0.4 && < 0.6
111111 , 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
112115
113116 if flag(fusion-plugin) && !impl(ghcjs) && !impl(ghc < 8.6)
114117 build-depends:
@@ -132,10 +135,6 @@ library
132135 exposed-modules: Streamly.Benchmark.Common
133136 , Streamly.Benchmark.Common.Handle
134137 , 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
139138
140139-------------------------------------------------------------------------------
141140-- Benchmarks
@@ -161,7 +160,7 @@ common bench-options-threaded
161160benchmark Prelude.Serial
162161 import: bench-options
163162 type: exitcode-stdio-1.0
164− hs-source-dirs: . Streamly/Benchmark/Prelude
163+ hs-source-dirs: Streamly/Benchmark/Prelude
165164 main-is: Serial.hs
166165 other-modules:
167166 Serial.Generation
@@ -172,16 +171,11 @@ benchmark Prelude.Serial
172171 , Serial.Nested
173172 , Serial.Exceptions
174173 , Serial.Split
175− ghc-options: +RTS -M1000M -RTS
174+ ghc-options: +RTS -M750M -RTS
176175 if impl(ghcjs)
177176 buildable: False
178177 else
179178 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
185179
186180benchmark Prelude.WSerial
187181 import: bench-options
@@ -265,10 +259,6 @@ benchmark Data.Unfold
265259 buildable: False
266260 else
267261 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
272262
273263benchmark Data.Fold
274264 import: bench-options
@@ -454,16 +444,11 @@ benchmark Memory.Array
454444benchmark FileSystem.Handle
455445 import: bench-options
456446 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
459448 main-is: Handle.hs
460449 other-modules:
461450 Handle.Read
462451 , 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
467452
468453-------------------------------------------------------------------------------
469454-- Unicode Benchmarks
@@ -471,12 +456,8 @@ benchmark FileSystem.Handle
471456benchmark Unicode.Stream
472457 import: bench-options
473458 type: exitcode-stdio-1.0
474− hs-source-dirs: . Streamly/Benchmark/Unicode
459+ hs-source-dirs: Streamly/Benchmark/Unicode
475460 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
480461
481462-------------------------------------------------------------------------------
482463-- benchmark comparison and presentation