-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipelined-state-machines.cabal
227 lines (193 loc) · 5.79 KB
/
pipelined-state-machines.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
cabal-version: 2.4
name: pipelined-state-machines
version: 0.0.0
synopsis: High performance inter-thread messaging library
description:
See README at <https://github.com/stevana/pipelined-state-machines#readme>
bug-reports: https://github.com/stevana/pipelined-state-machines/issues
license: MIT
license-file: LICENSE
author: Stevan Andjelkovic, Daniel Gustafsson
maintainer: [email protected]
copyright: Copyright (c) 2021 Symbiont Inc, 2022-2023 Stevan Andjelkovic
category: Concurrency, Data Structures
extra-source-files:
CHANGELOG.md
LICENSE
README.md
benchmark.sh
tested-with: GHC ==9.0.2
common common-build-depends
build-depends:
, async
, atomic-primops
, base ^>=4.15.0.0
, ghc-prim
, stm
, vector
library
import: common-build-depends
hs-source-dirs: src/
exposed-modules:
Disruptor
Disruptor.AtomicCounterPadded
Disruptor.MP
Disruptor.MP.Consumer
Disruptor.MP.Producer
Disruptor.MP.RingBuffer
Disruptor.SequenceNumber
Disruptor.SP
Disruptor.SP.Consumer
Disruptor.SP.Producer
Disruptor.SP.RingBuffer
Disruptor.SP.Unboxed.Consumer
Disruptor.SP.Unboxed.Producer
Disruptor.SP.Unboxed.RingBuffer
ghc-options: -O2
default-language: Haskell2010
test-suite test
import: common-build-depends
type: exitcode-stdio-1.0
hs-source-dirs: test/
main-is: Main.hs
other-modules:
DisruptorTest
TastyDiscover
build-depends:
, containers
, pipelined-state-machines
, HUnit
, QuickCheck
, tasty
, tasty-hunit
, tasty-quickcheck
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts
default-language: Haskell2010
executable readme-pipeline-example
import: common-build-depends
main-is: ReadmePipelineExample.hs
build-depends: pipelined-state-machines, time
hs-source-dirs: app
default-language: Haskell2010
ghc-options: -threaded -rtsopts -with-rtsopts=-N
executable readme-disruptor-example
import: common-build-depends
main-is: ReadmeDisruptorExample.hs
build-depends: pipelined-state-machines
hs-source-dirs: app
default-language: Haskell2010
ghc-options: -threaded -rtsopts -with-rtsopts=-N
common bench-common
hs-source-dirs: bench
build-depends:
, async
, base
, time
, directory
other-modules: Common
-- Some of these options are taking from:
-- https://wiki.haskell.org/Performance/GHC#Use_optimisation
-- XXX: try with -fllvm
-- To inspect core:
-- -fforce-recomp
-- -ddump-simpl
-- -dsuppress-all
-- -ddump-to-file
--
-- To produce event log:
-- -threaded -eventlog -rtsopts -with-rtsopts=-N
ghc-options:
-O2 -fproc-alignment=64 -fexcess-precision -fasm -optc-O3
-optc-ffast-math -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010
common bench-common-sp
import: bench-common
hs-source-dirs: bench/SP
common bench-common-mp
import: bench-common
hs-source-dirs: bench/MP
benchmark bench-singleops
import: bench-common
main-is: SingleOps.hs
build-depends:
, atomic-primops
, pipelined-state-machines
type: exitcode-stdio-1.0
benchmark bench-sp
import: bench-common-sp
main-is: Disruptor.hs
build-depends: pipelined-state-machines
type: exitcode-stdio-1.0
benchmark bench-sp-unboxed
import: bench-common-sp
main-is: DisruptorUnboxed.hs
build-depends: pipelined-state-machines
type: exitcode-stdio-1.0
benchmark bench-sp-chan
import: bench-common-sp
main-is: Chan.hs
type: exitcode-stdio-1.0
benchmark bench-sp-tbqueue
import: bench-common-sp
main-is: TBQueue.hs
build-depends: stm
type: exitcode-stdio-1.0
benchmark bench-sp-chaselev-deque
import: bench-common-sp
main-is: ChaseLevDeque.hs
build-depends: chaselev-deque
type: exitcode-stdio-1.0
benchmark bench-sp-lockfree-queue
import: bench-common-sp
main-is: LockFreeQueue.hs
build-depends: lockfree-queue
type: exitcode-stdio-1.0
benchmark bench-sp-unagi-chan
import: bench-common-sp
main-is: UnagiChan.hs
build-depends: unagi-chan
type: exitcode-stdio-1.0
benchmark bench-mp
import: bench-common-mp
main-is: Disruptor.hs
build-depends: pipelined-state-machines
type: exitcode-stdio-1.0
benchmark bench-mp-chan
import: bench-common-mp
main-is: Chan.hs
type: exitcode-stdio-1.0
benchmark bench-mp-tbqueue
import: bench-common-mp
main-is: TBQueue.hs
build-depends: stm
type: exitcode-stdio-1.0
benchmark bench-mp-unagi-chan
import: bench-common-mp
main-is: UnagiChan.hs
build-depends: unagi-chan
type: exitcode-stdio-1.0
benchmark bench-mp-lockfree-queue
import: bench-common-mp
main-is: LockFreeQueue.hs
build-depends: lockfree-queue
type: exitcode-stdio-1.0
benchmark bench-mp-logging
import: bench-common-mp
main-is: Logging.hs
build-depends: pipelined-state-machines, bytestring
type: exitcode-stdio-1.0
benchmark bench-mp-fast-logger
import: bench-common-mp
main-is: FastLogger.hs
build-depends: fast-logger
type: exitcode-stdio-1.0
benchmark bench-mp-logging10
import: bench-common-mp
main-is: Logging10.hs
build-depends: pipelined-state-machines, bytestring
type: exitcode-stdio-1.0
benchmark bench-mp-fast-logger10
import: bench-common-mp
main-is: FastLogger10.hs
build-depends: fast-logger
type: exitcode-stdio-1.0