-
Notifications
You must be signed in to change notification settings - Fork 9
/
streaming-benchmarks.cabal
249 lines (221 loc) · 6.49 KB
/
streaming-benchmarks.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
cabal-version: 2.2
name: streaming-benchmarks
version: 0.3.0
license: MIT
license-file: LICENSE
author: Composewell Technologies
maintainer: streamly@composewell.com
stability: provisional
homepage: https://streamly.composewell.com
bug-reports: http://github.com/composewell/streaming-benchmarks/issues
copyright: Copyright (c) 2017 Harendra Kumar
category: Streamly, Streaming, Benchmark
synopsis: Measures and compares the performance of streaming libraries
description:
This package provides micro-benchmarks to measure and compare the
performance of various streaming implementations in Haskell.
.
The following packages are supported:
.
* base (Haskell lists)
* streamly
* streaming
* pipes
* machines
* conduit
* drinkery
tested-with: GHC==8.8.4, GHC==8.10.4
build-type: Simple
extra-source-files:
Benchmarks/VectorCommon.hs
Changelog.md
README.md
bench-report/bench-report.cabal
bench-report/BenchReport.hs
bench-report/bin/bench-runner.sh
bench-report/bin/build-lib.sh
bin/bench.sh
bin/bench-config.sh
extra-doc-files:
docs/benchmarking-notes.md
source-repository head
type: git
location: https://github.com/composewell/streaming-benchmarks
flag no-fusion-plugin
description: Disable fusion plugin for streamly benchmarks
manual: True
default: False
flag use-gauge
description: Use gauge instead of tasty-bench for benchmarking
manual: True
default: False
common lib-options
default-language: Haskell2010
ghc-options:
-Wall
-Wcompat
-Wunrecognised-warning-flags
-Widentities
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
-Wnoncanonical-monad-instances
-Rghc-timing
+RTS -M512M -RTS
-O2
build-depends:
base == 4.*,
deepseq >= 1.4.0 && < 1.5,
mtl >= 2 && < 2.3,
random >= 1.0 && < 2.0,
transformers >= 0.4 && < 0.6,
template-haskell >= 2.10 && < 2.18
if flag(use-gauge)
build-depends: gauge >= 0.2.4 && < 0.3
else
build-depends: tasty-bench >= 0.2.5 && < 0.3
, tasty >= 1.4.1
mixins: tasty-bench
(Test.Tasty.Bench as Gauge
, Test.Tasty.Bench as Gauge.Main
)
common bench-options
import: lib-options
ghc-options:
-rtsopts
-with-rtsopts "-T"
build-depends: streaming-benchmarks
common streamly-options
import: bench-options
ghc-options:
-fdicts-strict
-fspec-constr-recursive=16
-fmax-worker-args=16
if !flag(no-fusion-plugin)
ghc-options: -fplugin Fusion.Plugin
build-depends: streaming-benchmarks
build-depends: streamly >= 0.8.0 && < 0.9
if !flag(no-fusion-plugin)
build-depends: fusion-plugin >= 0.2 && < 0.3
library
import: lib-options
hs-source-dirs: lib
exposed-modules:
Benchmarks.Common
, Benchmarks.BenchTH
, Benchmarks.BenchmarkTH
, Benchmarks.DefaultMain
-- Streams
benchmark Streamly
import: streamly-options
type: exitcode-stdio-1.0
main-is: Benchmarks/Streamly.hs
ghc-options: -main-is Benchmarks.Streamly
benchmark StreamlyPure
import: streamly-options
type: exitcode-stdio-1.0
main-is: Benchmarks/StreamlyPure.hs
ghc-options: -main-is Benchmarks.StreamlyPure
benchmark List
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/List.hs
ghc-options: -main-is Benchmarks.List
benchmark DList
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/DList.hs
ghc-options: -main-is Benchmarks.DList
build-depends: dlist >= 0.7 && < 1.1
benchmark Streaming
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/Streaming.hs
ghc-options: -main-is Benchmarks.Streaming
build-depends: streaming >= 0.1.4 && < 0.3
benchmark Machines
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/Machines.hs
ghc-options: -main-is Benchmarks.Machines
build-depends: machines >= 0.6.0 && < 0.8
benchmark Pipes
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/Pipes.hs
ghc-options: -main-is Benchmarks.Pipes
build-depends: pipes >= 4 && < 4.4
benchmark Conduit
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/Conduit.hs
ghc-options: -main-is Benchmarks.Conduit
build-depends: conduit >= 1.3 && < 1.4
benchmark Drinkery
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/Drinkery.hs
ghc-options: -main-is Benchmarks.Drinkery
build-depends: drinkery >= 0.3 && < 0.5
-- benchmark SimpleConduit
-- import: bench-options
-- type: exitcode-stdio-1.0
-- main-is: Benchmarks/SimpleConduit.hs
-- ghc-options: -main-is Benchmarks.SimpleConduit
-- build-depends: simple-conduit >= 0.6 && < 0.7
-- Arrays
benchmark StreamlyArray
import: streamly-options
type: exitcode-stdio-1.0
main-is: Benchmarks/StreamlyArray.hs
ghc-options:
-main-is Benchmarks.StreamlyArray
+RTS -M1500M -RTS
benchmark Sequence
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/Sequence.hs
ghc-options: -main-is Benchmarks.Sequence
build-depends: containers >= 0.5 && < 0.7
benchmark ByteString
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/ByteString.hs
ghc-options: -main-is Benchmarks.ByteString
build-depends: bytestring >= 0.9 && < 0.12
benchmark ByteStringLazy
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/ByteStringLazy.hs
ghc-options: -main-is Benchmarks.ByteStringLazy
build-depends: bytestring >= 0.9 && < 0.12
benchmark Text
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/Text.hs
ghc-options: -main-is Benchmarks.Text
build-depends: text >= 1.0 && < 1.3
benchmark VectorStreams
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/VectorStreams.hs
ghc-options: -main-is Benchmarks.VectorStreams
build-depends: vector >= 0.12 && < 0.13
benchmark Vector
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/Vector.hs
ghc-options: -main-is Benchmarks.Vector
build-depends: vector >= 0.12 && < 0.13
benchmark VectorUnboxed
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/VectorUnboxed.hs
ghc-options: -main-is Benchmarks.VectorUnboxed
build-depends: vector >= 0.12 && < 0.13
benchmark VectorStorable
import: bench-options
type: exitcode-stdio-1.0
main-is: Benchmarks/VectorStorable.hs
ghc-options: -main-is Benchmarks.VectorStorable
build-depends: vector >= 0.12 && < 0.13