@@ -33,10 +33,6 @@ flag th
33 description: Build with Template Haskell support
33 description: Build with Template Haskell support
34 default: True
34 default: True
37− description: Build benchmarks
41 description: Compiling with profiling enabled
37 description: Compiling with profiling enabled
42 default: False
38 default: False
@@ -104,71 +100,61 @@ Library
105-- Tests are in distributed-process-test package, for convenience.
101-- Tests are in distributed-process-test package, for convenience.
107−Executable distributed-process-throughput
103+benchmark distributed-process-throughput
108− if flag(benchmarks)
104+ Type: exitcode-stdio-1.0
109− Build-Depends: base >= 4.4 && < 5,
105+ Build-Depends: base >= 4.4 && < 5,
110− distributed-process,
106+ distributed-process,
111− network-transport-tcp >= 0.3 && < 0.4,
107+ network-transport-tcp >= 0.3 && < 0.4,
112− bytestring >= 0.9 && < 0.11,
108+ bytestring >= 0.9 && < 0.11,
113− binary >= 0.6.3 && < 0.8
109+ binary >= 0.6.3 && < 0.8
116− Main-Is: benchmarks/Throughput.hs
110+ Main-Is: benchmarks/Throughput.hs
117− ghc-options: -Wall
111+ ghc-options: -Wall
118− Extensions: BangPatterns
112+ Extensions: BangPatterns
120−Executable distributed-process-latency
114+benchmark distributed-process-latency
121− if flag(benchmarks)
115+ Type: exitcode-stdio-1.0
122− Build-Depends: base >= 4.4 && < 5,
116+ Build-Depends: base >= 4.4 && < 5,
123− distributed-process,
117+ distributed-process,
124− network-transport-tcp >= 0.3 && < 0.4,
118+ network-transport-tcp >= 0.3 && < 0.4,
125− bytestring >= 0.9 && < 0.11,
119+ bytestring >= 0.9 && < 0.11,
126− binary >= 0.6.3 && < 0.8
120+ binary >= 0.6.3 && < 0.8
129− Main-Is: benchmarks/Latency.hs
121+ Main-Is: benchmarks/Latency.hs
130− ghc-options: -Wall
122+ ghc-options: -Wall
131− Extensions: BangPatterns
123+ Extensions: BangPatterns
133−Executable distributed-process-channels
125+benchmark distributed-process-channels
134− if flag(benchmarks)
126+ Type: exitcode-stdio-1.0
135− Build-Depends: base >= 4.4 && < 5,
127+ Build-Depends: base >= 4.4 && < 5,
136− distributed-process,
128+ distributed-process,
137− network-transport-tcp >= 0.3 && < 0.4,
129+ network-transport-tcp >= 0.3 && < 0.4,
138− bytestring >= 0.9 && < 0.11,
130+ bytestring >= 0.9 && < 0.11,
139− binary >= 0.6.3 && < 0.8
131+ binary >= 0.6.3 && < 0.8
142− Main-Is: benchmarks/Channels.hs
132+ Main-Is: benchmarks/Channels.hs
143− ghc-options: -Wall
133+ ghc-options: -Wall
144− Extensions: BangPatterns
134+ Extensions: BangPatterns
146−Executable distributed-process-spawns
136+benchmark distributed-process-spawns
147− if flag(benchmarks)
137+ Type: exitcode-stdio-1.0
148− Build-Depends: base >= 4.4 && < 5,
138+ Build-Depends: base >= 4.4 && < 5,
149− distributed-process,
139+ distributed-process,
150− network-transport-tcp >= 0.3 && < 0.4,
140+ network-transport-tcp >= 0.3 && < 0.4,
151− bytestring >= 0.9 && < 0.11,
141+ bytestring >= 0.9 && < 0.11,
152− binary >= 0.6.3 && < 0.8
142+ binary >= 0.6.3 && < 0.8
155− Main-Is: benchmarks/Spawns.hs
143+ Main-Is: benchmarks/Spawns.hs
156− ghc-options: -Wall
144+ ghc-options: -Wall
157− Extensions: BangPatterns
145+ Extensions: BangPatterns
159−Executable distributed-process-ring
147+benchmark distributed-process-ring
160− if flag(benchmarks)
148+ Type: exitcode-stdio-1.0
161− Build-Depends: base >= 4.4 && < 5,
149+ Build-Depends: base >= 4.4 && < 5,
162− distributed-process,
150+ distributed-process,
163− network-transport-tcp >= 0.3 && < 0.4,
151+ network-transport-tcp >= 0.3 && < 0.4,
164− bytestring >= 0.9 && < 0.11,
152+ bytestring >= 0.9 && < 0.11,
165− binary >= 0.6.3 && < 0.8
153+ binary >= 0.6.3 && < 0.8
168− Main-Is: benchmarks/ProcessRing.hs
154+ Main-Is: benchmarks/ProcessRing.hs
169 if flag(prof)
155 if flag(prof)
170− ghc-options: -Wall -threaded -prof -auto-all -fno-prof-count-entries -rtsopts
156+ ghc-options: -Wall -threaded -prof -auto-all -fno-prof-count-entries -rtsopts
172− ghc-options: -Wall -threaded -O2 -rtsopts
158+ ghc-options: -Wall -threaded -O2 -rtsopts
173− Extensions: BangPatterns,
159+ Extensions: BangPatterns,
174− ScopedTypeVariables
160+ ScopedTypeVariables