-
Notifications
You must be signed in to change notification settings - Fork 463
/
plutus-benchmark.nix
222 lines (222 loc) · 10.9 KB
/
plutus-benchmark.nix
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
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = {};
package = {
specVersion = "2.2";
identifier = { name = "plutus-benchmark"; version = "0.1.0.0"; };
license = "Apache-2.0";
copyright = "";
maintainer = "radu.ometita@iohk.io";
author = "Radu Ometita";
homepage = "https://github.com/iohk/plutus#readme";
url = "";
synopsis = "";
description = "Please see the README on GitHub at <https://github.com/input-output-hk/plutus#readme>";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [ "LICENSE" "NOTICE" ];
dataDir = ".";
dataFiles = [ "common/templates/*.tpl" "validation/data/*.flat" ];
extraSrcFiles = [];
extraTmpFiles = [];
extraDocFiles = [];
};
components = {
sublibs = {
"plutus-benchmark-common" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
(hsPkgs."plutus-tx" or (errorHandler.buildDepError "plutus-tx"))
(hsPkgs."criterion" or (errorHandler.buildDepError "criterion"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."filepath" or (errorHandler.buildDepError "filepath"))
(hsPkgs."transformers" or (errorHandler.buildDepError "transformers"))
];
buildable = true;
modules = [
"Paths_plutus_benchmark"
"PlutusBenchmark/Common"
"PlutusBenchmark/NaturalSort"
];
hsSourceDirs = [ "common" ];
};
"nofib-internal" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-benchmark".components.sublibs.plutus-benchmark-common or (errorHandler.buildDepError "plutus-benchmark:plutus-benchmark-common"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
(hsPkgs."plutus-tx" or (errorHandler.buildDepError "plutus-tx"))
(hsPkgs."plutus-tx-plugin" or (errorHandler.buildDepError "plutus-tx-plugin"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
];
buildable = true;
modules = [
"PlutusBenchmark/NoFib/Clausify"
"PlutusBenchmark/NoFib/Queens"
"PlutusBenchmark/NoFib/Knights"
"PlutusBenchmark/NoFib/Knights/ChessSetList"
"PlutusBenchmark/NoFib/Knights/KnightHeuristic"
"PlutusBenchmark/NoFib/Knights/Queue"
"PlutusBenchmark/NoFib/Knights/Sort"
"PlutusBenchmark/NoFib/Knights/Utils"
"PlutusBenchmark/NoFib/LastPiece"
"PlutusBenchmark/NoFib/Prime"
];
hsSourceDirs = [ "nofib/src" ];
};
"lists-internal" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-benchmark".components.sublibs.plutus-benchmark-common or (errorHandler.buildDepError "plutus-benchmark:plutus-benchmark-common"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
(hsPkgs."plutus-tx" or (errorHandler.buildDepError "plutus-tx"))
(hsPkgs."plutus-tx-plugin" or (errorHandler.buildDepError "plutus-tx-plugin"))
];
buildable = true;
modules = [
"PlutusBenchmark/Lists/Sort/GhcSort"
"PlutusBenchmark/Lists/Sort/InsertionSort"
"PlutusBenchmark/Lists/Sort/MergeSort"
"PlutusBenchmark/Lists/Sort/QuickSort"
"PlutusBenchmark/Lists/Sort"
"PlutusBenchmark/Lists/Sum/Compiled"
"PlutusBenchmark/Lists/Sum/HandWritten"
];
hsSourceDirs = [ "lists/src" ];
};
};
exes = {
"nofib-exe" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-benchmark".components.sublibs.plutus-benchmark-common or (errorHandler.buildDepError "plutus-benchmark:plutus-benchmark-common"))
(hsPkgs."plutus-benchmark".components.sublibs.nofib-internal or (errorHandler.buildDepError "plutus-benchmark:nofib-internal"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
(hsPkgs."plutus-tx" or (errorHandler.buildDepError "plutus-tx"))
(hsPkgs."ansi-wl-pprint" or (errorHandler.buildDepError "ansi-wl-pprint"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."flat" or (errorHandler.buildDepError "flat"))
(hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative"))
];
buildable = true;
hsSourceDirs = [ "nofib/exe" ];
mainPath = [ "Main.hs" ];
};
"list-sort-exe" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-benchmark".components.sublibs.plutus-benchmark-common or (errorHandler.buildDepError "plutus-benchmark:plutus-benchmark-common"))
(hsPkgs."plutus-benchmark".components.sublibs.lists-internal or (errorHandler.buildDepError "plutus-benchmark:lists-internal"))
(hsPkgs."monoidal-containers" or (errorHandler.buildDepError "monoidal-containers"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
];
buildable = true;
hsSourceDirs = [ "lists/exe" ];
mainPath = [ "Main.hs" ];
};
};
tests = {
"plutus-benchmark-nofib-tests" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-benchmark".components.sublibs.plutus-benchmark-common or (errorHandler.buildDepError "plutus-benchmark:plutus-benchmark-common"))
(hsPkgs."plutus-benchmark".components.sublibs.nofib-internal or (errorHandler.buildDepError "plutus-benchmark:nofib-internal"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
(hsPkgs."plutus-tx" or (errorHandler.buildDepError "plutus-tx"))
(hsPkgs."tasty" or (errorHandler.buildDepError "tasty"))
(hsPkgs."tasty-hunit" or (errorHandler.buildDepError "tasty-hunit"))
(hsPkgs."tasty-quickcheck" or (errorHandler.buildDepError "tasty-quickcheck"))
];
buildable = true;
hsSourceDirs = [ "nofib/test" ];
mainPath = [ "Spec.hs" ];
};
"plutus-benchmark-lists-tests" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-benchmark".components.sublibs.plutus-benchmark-common or (errorHandler.buildDepError "plutus-benchmark:plutus-benchmark-common"))
(hsPkgs."plutus-benchmark".components.sublibs.lists-internal or (errorHandler.buildDepError "plutus-benchmark:lists-internal"))
(hsPkgs."tasty" or (errorHandler.buildDepError "tasty"))
(hsPkgs."tasty-quickcheck" or (errorHandler.buildDepError "tasty-quickcheck"))
];
buildable = true;
modules = [ "Sort/Spec" "Sum/Spec" ];
hsSourceDirs = [ "lists/test" ];
mainPath = [ "Spec.hs" ];
};
};
benchmarks = {
"nofib" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-benchmark".components.sublibs.plutus-benchmark-common or (errorHandler.buildDepError "plutus-benchmark:plutus-benchmark-common"))
(hsPkgs."plutus-benchmark".components.sublibs.nofib-internal or (errorHandler.buildDepError "plutus-benchmark:nofib-internal"))
(hsPkgs."criterion" or (errorHandler.buildDepError "criterion"))
];
buildable = true;
modules = [ "Shared" ];
hsSourceDirs = [ "nofib/bench" ];
};
"nofib-hs" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-benchmark".components.sublibs.plutus-benchmark-common or (errorHandler.buildDepError "plutus-benchmark:plutus-benchmark-common"))
(hsPkgs."plutus-benchmark".components.sublibs.nofib-internal or (errorHandler.buildDepError "plutus-benchmark:nofib-internal"))
(hsPkgs."criterion" or (errorHandler.buildDepError "criterion"))
];
buildable = true;
modules = [ "Shared" ];
hsSourceDirs = [ "nofib/bench" ];
};
"lists" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-benchmark".components.sublibs.plutus-benchmark-common or (errorHandler.buildDepError "plutus-benchmark:plutus-benchmark-common"))
(hsPkgs."plutus-benchmark".components.sublibs.lists-internal or (errorHandler.buildDepError "plutus-benchmark:lists-internal"))
(hsPkgs."criterion" or (errorHandler.buildDepError "criterion"))
];
buildable = true;
hsSourceDirs = [ "lists/bench" ];
};
"validation" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-benchmark".components.sublibs.plutus-benchmark-common or (errorHandler.buildDepError "plutus-benchmark:plutus-benchmark-common"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."criterion" or (errorHandler.buildDepError "criterion"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."directory" or (errorHandler.buildDepError "directory"))
(hsPkgs."filepath" or (errorHandler.buildDepError "filepath"))
(hsPkgs."flat" or (errorHandler.buildDepError "flat"))
(hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative"))
];
buildable = true;
hsSourceDirs = [ "validation" ];
};
"cek-calibration" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
(hsPkgs."plutus-tx" or (errorHandler.buildDepError "plutus-tx"))
(hsPkgs."plutus-tx-plugin" or (errorHandler.buildDepError "plutus-tx-plugin"))
(hsPkgs."criterion" or (errorHandler.buildDepError "criterion"))
(hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
(hsPkgs."lens" or (errorHandler.buildDepError "lens"))
];
buildable = true;
hsSourceDirs = [ "cek-calibration" ];
};
};
};
} // rec { src = (pkgs.lib).mkDefault ../plutus-benchmark; }