@@ -52,33 +52,6 @@ let setQ: Set<Int> = {
52
52
} ( )
53
53
54
54
public let SetTests = [
55
- // Legacy benchmarks, kept for continuity with previous releases.
56
- BenchmarkInfo (
57
- name: " SetExclusiveOr " , // ~"SetSymmetricDifferenceInt0"
58
- runFunction: { n in run_SetSymmetricDifferenceInt ( setAB, setCD, countABCD, 100 * n) } ,
59
- tags: [ . validation, . api, . Set] ,
60
- setUpFunction: { blackHole ( [ setAB, setCD] ) } ) ,
61
- BenchmarkInfo (
62
- name: " SetExclusiveOr_OfObjects " , // ~"SetSymmetricDifferenceBox0"
63
- runFunction: { n in run_SetSymmetricDifferenceBox ( setOAB, setOCD, countABCD, 100 * n) } ,
64
- tags: [ . validation, . api, . Set] ,
65
- setUpFunction: { blackHole ( [ setOAB, setOCD] ) } ) ,
66
- BenchmarkInfo (
67
- name: " SetIntersect " , // ~"SetIntersectionInt0"
68
- runFunction: { n in run_SetIntersectionInt ( setAB, setCD, 0 , 100 * n) } ,
69
- tags: [ . validation, . api, . Set] ,
70
- setUpFunction: { blackHole ( [ setAB, setCD] ) } ) ,
71
- BenchmarkInfo (
72
- name: " SetUnion " , // ~"SetUnionInt0"
73
- runFunction: { n in run_SetUnionInt ( setAB, setCD, countABCD, 100 * n) } ,
74
- tags: [ . validation, . api, . Set] ,
75
- setUpFunction: { blackHole ( [ setAB, setCD] ) } ) ,
76
- BenchmarkInfo (
77
- name: " SetUnion_OfObjects " , // ~"SetUnionBox0"
78
- runFunction: { n in run_SetUnionBox ( setOAB, setOCD, countABCD, 100 * n) } ,
79
- tags: [ . validation, . api, . Set] ,
80
- setUpFunction: { blackHole ( [ setOAB, setOCD] ) } ) ,
81
-
82
55
// Mnemonic: number after name is percentage of common elements in input sets.
83
56
BenchmarkInfo (
84
57
name: " SetIsSubsetInt0 " ,
@@ -234,6 +207,33 @@ public let SetTests = [
234
207
runFunction: { n in run_SetSubtractingInt ( setP, setQ, 0 , 10 * n) } ,
235
208
tags: [ . validation, . api, . Set] ,
236
209
setUpFunction: { blackHole ( [ setP, setQ] ) } ) ,
210
+
211
+ // Legacy benchmarks, kept for continuity with previous releases.
212
+ BenchmarkInfo (
213
+ name: " SetExclusiveOr " , // ~"SetSymmetricDifferenceInt0"
214
+ runFunction: { n in run_SetSymmetricDifferenceInt ( setAB, setCD, countABCD, 100 * n) } ,
215
+ tags: [ . validation, . api, . Set] ,
216
+ setUpFunction: { blackHole ( [ setAB, setCD] ) } ) ,
217
+ BenchmarkInfo (
218
+ name: " SetExclusiveOr_OfObjects " , // ~"SetSymmetricDifferenceBox0"
219
+ runFunction: { n in run_SetSymmetricDifferenceBox ( setOAB, setOCD, countABCD, 100 * n) } ,
220
+ tags: [ . validation, . api, . Set] ,
221
+ setUpFunction: { blackHole ( [ setOAB, setOCD] ) } ) ,
222
+ BenchmarkInfo (
223
+ name: " SetIntersect " , // ~"SetIntersectionInt0"
224
+ runFunction: { n in run_SetIntersectionInt ( setAB, setCD, 0 , 100 * n) } ,
225
+ tags: [ . validation, . api, . Set] ,
226
+ setUpFunction: { blackHole ( [ setAB, setCD] ) } ) ,
227
+ BenchmarkInfo (
228
+ name: " SetUnion " , // ~"SetUnionInt0"
229
+ runFunction: { n in run_SetUnionInt ( setAB, setCD, countABCD, 100 * n) } ,
230
+ tags: [ . validation, . api, . Set] ,
231
+ setUpFunction: { blackHole ( [ setAB, setCD] ) } ) ,
232
+ BenchmarkInfo (
233
+ name: " SetUnion_OfObjects " , // ~"SetUnionBox0"
234
+ runFunction: { n in run_SetUnionBox ( setOAB, setOCD, countABCD, 100 * n) } ,
235
+ tags: [ . validation, . api, . Set] ,
236
+ setUpFunction: { blackHole ( [ setOAB, setOCD] ) } ) ,
237
237
]
238
238
239
239
@inline ( never)
0 commit comments