@@ -58,10 +58,15 @@ let setQ: Set<Int> = {
58
58
public let SetTests = [
59
59
// Mnemonic: number after name is percentage of common elements in input sets.
60
60
BenchmarkInfo (
61
- name: " Set.Empty.IsSubsetInt0 " ,
61
+ name: " Set.isSubset. Empty.Int " ,
62
62
runFunction: { n in run_SetIsSubsetInt ( setE, setAB, true , 5000 * n) } ,
63
63
tags: [ . validation, . api, . Set] ,
64
64
setUpFunction: { blackHole ( [ setE, setAB] ) } ) ,
65
+ BenchmarkInfo (
66
+ name: " Set.isSubset.Int.Empty " ,
67
+ runFunction: { n in run_SetIsSubsetInt ( setAB, setE, false , 5000 * n) } ,
68
+ tags: [ . validation, . api, . Set] ,
69
+ setUpFunction: { blackHole ( [ setAB, setE] ) } ) ,
65
70
BenchmarkInfo (
66
71
name: " SetIsSubsetInt0 " ,
67
72
runFunction: { n in run_SetIsSubsetInt ( setAB, setCD, false , 5000 * n) } ,
@@ -94,46 +99,56 @@ public let SetTests = [
94
99
setUpFunction: { blackHole ( [ setP, setQ] ) } ) ,
95
100
96
101
BenchmarkInfo (
97
- name: " Set.Empty.IsDisjointInt0 " ,
98
- runFunction: { n in run_SetIsDisjointInt ( setE, setAB, true , 50 * n) } ,
102
+ name: " Set.isDisjoint. Empty.Int " ,
103
+ runFunction: { n in run_SetIsDisjointInt ( setE, setAB, true , 5000 * n) } ,
99
104
tags: [ . validation, . api, . Set] ,
100
105
setUpFunction: { blackHole ( [ setE, setAB] ) } ) ,
101
106
BenchmarkInfo (
102
- name: " Set.Empty.IsDisjointBox0 " ,
103
- runFunction: { n in run_SetIsDisjointBox ( setOE, setOAB, true , 50 * n) } ,
107
+ name: " Set.isDisjoint.Int.Empty " ,
108
+ runFunction: { n in run_SetIsDisjointInt ( setAB, setE, true , 5000 * n) } ,
109
+ tags: [ . validation, . api, . Set] ,
110
+ setUpFunction: { blackHole ( [ setAB, setE] ) } ) ,
111
+ BenchmarkInfo (
112
+ name: " Set.isDisjoint.Empty.Box " ,
113
+ runFunction: { n in run_SetIsDisjointBox ( setOE, setOAB, true , 5000 * n) } ,
104
114
tags: [ . validation, . api, . Set] ,
105
115
setUpFunction: { blackHole ( [ setOE, setOAB] ) } ) ,
106
116
BenchmarkInfo (
107
- name: " SetIsDisjointInt0 " ,
117
+ name: " Set.isDisjoint.Box.Empty " ,
118
+ runFunction: { n in run_SetIsDisjointBox ( setOAB, setOE, true , 5000 * n) } ,
119
+ tags: [ . validation, . api, . Set] ,
120
+ setUpFunction: { blackHole ( [ setOAB, setOE] ) } ) ,
121
+ BenchmarkInfo (
122
+ name: " Set.isDisjoint.Int0 " ,
108
123
runFunction: { n in run_SetIsDisjointInt ( setAB, setCD, true , 50 * n) } ,
109
124
tags: [ . validation, . api, . Set] ,
110
125
setUpFunction: { blackHole ( [ setAB, setCD] ) } ) ,
111
126
BenchmarkInfo (
112
- name: " SetIsDisjointBox0 " ,
127
+ name: " Set.isDisjoint.Box0 " ,
113
128
runFunction: { n in run_SetIsDisjointBox ( setOAB, setOCD, true , 50 * n) } ,
114
129
tags: [ . validation, . api, . Set] ,
115
130
setUpFunction: { blackHole ( [ setOAB, setOCD] ) } ) ,
116
131
BenchmarkInfo (
117
- name: " SetIsDisjointInt25 " ,
118
- runFunction: { n in run_SetIsDisjointInt ( setB, setAB, false , 50 * n) } ,
132
+ name: " Set.isDisjoint.Int25 " ,
133
+ runFunction: { n in run_SetIsDisjointInt ( setB, setAB, false , 5000 * n) } ,
119
134
tags: [ . validation, . api, . Set] ,
120
135
setUpFunction: { blackHole ( [ setB, setAB] ) } ) ,
121
136
BenchmarkInfo (
122
- name: " SetIsDisjointBox25 " ,
123
- runFunction: { n in run_SetIsDisjointBox ( setOB, setOAB, false , 50 * n) } ,
137
+ name: " Set.isDisjoint.Box25 " ,
138
+ runFunction: { n in run_SetIsDisjointBox ( setOB, setOAB, false , 5000 * n) } ,
124
139
tags: [ . validation, . api, . Set] ,
125
140
setUpFunction: { blackHole ( [ setOB, setOAB] ) } ) ,
126
141
BenchmarkInfo (
127
- name: " SetIsDisjointInt50 " ,
128
- runFunction: { n in run_SetIsDisjointInt ( setY, setXY, false , 50 * n) } ,
142
+ name: " Set.isDisjoint.Int50 " ,
143
+ runFunction: { n in run_SetIsDisjointInt ( setY, setXY, false , 5000 * n) } ,
129
144
tags: [ . validation, . api, . Set] ,
130
145
setUpFunction: { blackHole ( [ setY, setXY] ) } ) ,
131
146
BenchmarkInfo (
132
- name: " SetIsDisjointInt100 " ,
133
- runFunction: { n in run_SetIsDisjointInt ( setP, setQ, false , 50 * n) } ,
147
+ name: " Set.isDisjoint.Int100 " ,
148
+ runFunction: { n in run_SetIsDisjointInt ( setP, setQ, false , 5000 * n) } ,
134
149
tags: [ . validation, . api, . Set] ,
135
150
setUpFunction: { blackHole ( [ setP, setQ] ) } ) ,
136
-
151
+
137
152
BenchmarkInfo (
138
153
name: " SetSymmetricDifferenceInt0 " ,
139
154
runFunction: { n in run_SetSymmetricDifferenceInt ( setAB, setCD, countABCD, 10 * n) } ,
@@ -228,15 +243,25 @@ public let SetTests = [
228
243
setUpFunction: { blackHole ( [ setP, setQ] ) } ) ,
229
244
230
245
BenchmarkInfo (
231
- name: " Set.Empty.SubtractingInt0 " ,
232
- runFunction: { n in run_SetSubtractingInt ( setE, setAB, 0 , 10 * n) } ,
246
+ name: " Set.subtracting. Empty.Int " ,
247
+ runFunction: { n in run_SetSubtractingInt ( setE, setAB, 0 , 1000 * n) } ,
233
248
tags: [ . validation, . api, . Set] ,
234
249
setUpFunction: { blackHole ( [ setE, setAB] ) } ) ,
235
250
BenchmarkInfo (
236
- name: " Set.Empty.SubtractingBox0 " ,
237
- runFunction: { n in run_SetSubtractingBox ( setOE, setOAB, 0 , 10 * n) } ,
251
+ name: " Set.subtracting.Int.Empty " ,
252
+ runFunction: { n in run_SetSubtractingInt ( setAB, setE, countAB, 1000 * n) } ,
253
+ tags: [ . validation, . api, . Set] ,
254
+ setUpFunction: { blackHole ( [ setAB, setE] ) } ) ,
255
+ BenchmarkInfo (
256
+ name: " Set.subtracting.Empty.Box " ,
257
+ runFunction: { n in run_SetSubtractingBox ( setOE, setOAB, 0 , 1000 * n) } ,
238
258
tags: [ . validation, . api, . Set] ,
239
259
setUpFunction: { blackHole ( [ setOE, setOAB] ) } ) ,
260
+ BenchmarkInfo (
261
+ name: " Set.subtracting.Box.Empty " ,
262
+ runFunction: { n in run_SetSubtractingBox ( setOAB, setOE, countAB, 1000 * n) } ,
263
+ tags: [ . validation, . api, . Set] ,
264
+ setUpFunction: { blackHole ( [ setOAB, setOE] ) } ) ,
240
265
BenchmarkInfo (
241
266
name: " SetSubtractingInt0 " ,
242
267
runFunction: { n in run_SetSubtractingInt ( setAB, setCD, countAB, 10 * n) } ,
0 commit comments