Skip to content

Commit 11b290c

Browse files
committed
[benchmark] SetTests: Move legacy benchmarks to end of list.
1 parent 09946d0 commit 11b290c

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

benchmark/single-source/SetTests.swift

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -52,33 +52,6 @@ let setQ: Set<Int> = {
5252
}()
5353

5454
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-
8255
// Mnemonic: number after name is percentage of common elements in input sets.
8356
BenchmarkInfo(
8457
name: "SetIsSubsetInt0",
@@ -234,6 +207,33 @@ public let SetTests = [
234207
runFunction: { n in run_SetSubtractingInt(setP, setQ, 0, 10 * n) },
235208
tags: [.validation, .api, .Set],
236209
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]) }),
237237
]
238238

239239
@inline(never)

0 commit comments

Comments
 (0)