@@ -58,10 +58,15 @@ let setQ: Set<Int> = {
5858public let SetTests = [
5959 // Mnemonic: number after name is percentage of common elements in input sets.
6060 BenchmarkInfo (
61- name: " Set.Empty.IsSubsetInt0 " ,
61+ name: " Set.isSubset. Empty.Int " ,
6262 runFunction: { n in run_SetIsSubsetInt ( setE, setAB, true , 5000 * n) } ,
6363 tags: [ . validation, . api, . Set] ,
6464 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] ) } ) ,
6570 BenchmarkInfo (
6671 name: " SetIsSubsetInt0 " ,
6772 runFunction: { n in run_SetIsSubsetInt ( setAB, setCD, false , 5000 * n) } ,
@@ -94,46 +99,56 @@ public let SetTests = [
9499 setUpFunction: { blackHole ( [ setP, setQ] ) } ) ,
95100
96101 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) } ,
99104 tags: [ . validation, . api, . Set] ,
100105 setUpFunction: { blackHole ( [ setE, setAB] ) } ) ,
101106 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) } ,
104114 tags: [ . validation, . api, . Set] ,
105115 setUpFunction: { blackHole ( [ setOE, setOAB] ) } ) ,
106116 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 " ,
108123 runFunction: { n in run_SetIsDisjointInt ( setAB, setCD, true , 50 * n) } ,
109124 tags: [ . validation, . api, . Set] ,
110125 setUpFunction: { blackHole ( [ setAB, setCD] ) } ) ,
111126 BenchmarkInfo (
112- name: " SetIsDisjointBox0 " ,
127+ name: " Set.isDisjoint.Box0 " ,
113128 runFunction: { n in run_SetIsDisjointBox ( setOAB, setOCD, true , 50 * n) } ,
114129 tags: [ . validation, . api, . Set] ,
115130 setUpFunction: { blackHole ( [ setOAB, setOCD] ) } ) ,
116131 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) } ,
119134 tags: [ . validation, . api, . Set] ,
120135 setUpFunction: { blackHole ( [ setB, setAB] ) } ) ,
121136 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) } ,
124139 tags: [ . validation, . api, . Set] ,
125140 setUpFunction: { blackHole ( [ setOB, setOAB] ) } ) ,
126141 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) } ,
129144 tags: [ . validation, . api, . Set] ,
130145 setUpFunction: { blackHole ( [ setY, setXY] ) } ) ,
131146 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) } ,
134149 tags: [ . validation, . api, . Set] ,
135150 setUpFunction: { blackHole ( [ setP, setQ] ) } ) ,
136-
151+
137152 BenchmarkInfo (
138153 name: " SetSymmetricDifferenceInt0 " ,
139154 runFunction: { n in run_SetSymmetricDifferenceInt ( setAB, setCD, countABCD, 10 * n) } ,
@@ -228,15 +243,25 @@ public let SetTests = [
228243 setUpFunction: { blackHole ( [ setP, setQ] ) } ) ,
229244
230245 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) } ,
233248 tags: [ . validation, . api, . Set] ,
234249 setUpFunction: { blackHole ( [ setE, setAB] ) } ) ,
235250 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) } ,
238258 tags: [ . validation, . api, . Set] ,
239259 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] ) } ) ,
240265 BenchmarkInfo (
241266 name: " SetSubtractingInt0 " ,
242267 runFunction: { n in run_SetSubtractingInt ( setAB, setCD, countAB, 10 * n) } ,
0 commit comments