Skip to content

Commit 84580f8

Browse files
committed
[benchmark] Adjust new tests to Naming Convention
Most of these recently added benchmarks have too low loop multiplier that results in near zero or zero measured runtime. Since fixing this will change the runtimes, it is also an opportunity to properly apply the new naming convention.
1 parent 2096151 commit 84580f8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

benchmark/single-source/SetTests.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ let setQ: Set<Int> = {
5858
public 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.Int0",
6262
runFunction: { n in run_SetIsSubsetInt(setE, setAB, true, 5000 * n) },
6363
tags: [.validation, .api, .Set],
6464
setUpFunction: { blackHole([setE, setAB]) }),
@@ -94,46 +94,46 @@ public let SetTests = [
9494
setUpFunction: { blackHole([setP, setQ]) }),
9595

9696
BenchmarkInfo(
97-
name: "Set.Empty.IsDisjointInt0",
97+
name: "Set.isDisjoint.Empty.Int0",
9898
runFunction: { n in run_SetIsDisjointInt(setE, setAB, true, 50 * n) },
9999
tags: [.validation, .api, .Set],
100100
setUpFunction: { blackHole([setE, setAB]) }),
101101
BenchmarkInfo(
102-
name: "Set.Empty.IsDisjointBox0",
102+
name: "Set.isDisjoint.Empty.Box0",
103103
runFunction: { n in run_SetIsDisjointBox(setOE, setOAB, true, 50 * n) },
104104
tags: [.validation, .api, .Set],
105105
setUpFunction: { blackHole([setOE, setOAB]) }),
106106
BenchmarkInfo(
107-
name: "SetIsDisjointInt0",
107+
name: "Set.isDisjoint.Int0",
108108
runFunction: { n in run_SetIsDisjointInt(setAB, setCD, true, 50 * n) },
109109
tags: [.validation, .api, .Set],
110110
setUpFunction: { blackHole([setAB, setCD]) }),
111111
BenchmarkInfo(
112-
name: "SetIsDisjointBox0",
112+
name: "Set.isDisjoint.Box0",
113113
runFunction: { n in run_SetIsDisjointBox(setOAB, setOCD, true, 50 * n) },
114114
tags: [.validation, .api, .Set],
115115
setUpFunction: { blackHole([setOAB, setOCD]) }),
116116
BenchmarkInfo(
117-
name: "SetIsDisjointInt25",
117+
name: "Set.isDisjoint.Int25",
118118
runFunction: { n in run_SetIsDisjointInt(setB, setAB, false, 50 * n) },
119119
tags: [.validation, .api, .Set],
120120
setUpFunction: { blackHole([setB, setAB]) }),
121121
BenchmarkInfo(
122-
name: "SetIsDisjointBox25",
122+
name: "Set.isDisjoint.Box25",
123123
runFunction: { n in run_SetIsDisjointBox(setOB, setOAB, false, 50 * n) },
124124
tags: [.validation, .api, .Set],
125125
setUpFunction: { blackHole([setOB, setOAB]) }),
126126
BenchmarkInfo(
127-
name: "SetIsDisjointInt50",
127+
name: "Set.isDisjoint.Int50",
128128
runFunction: { n in run_SetIsDisjointInt(setY, setXY, false, 50 * n) },
129129
tags: [.validation, .api, .Set],
130130
setUpFunction: { blackHole([setY, setXY]) }),
131131
BenchmarkInfo(
132-
name: "SetIsDisjointInt100",
132+
name: "Set.isDisjoint.Int100",
133133
runFunction: { n in run_SetIsDisjointInt(setP, setQ, false, 50 * n) },
134134
tags: [.validation, .api, .Set],
135135
setUpFunction: { blackHole([setP, setQ]) }),
136-
136+
137137
BenchmarkInfo(
138138
name: "SetSymmetricDifferenceInt0",
139139
runFunction: { n in run_SetSymmetricDifferenceInt(setAB, setCD, countABCD, 10 * n) },
@@ -228,12 +228,12 @@ public let SetTests = [
228228
setUpFunction: { blackHole([setP, setQ]) }),
229229

230230
BenchmarkInfo(
231-
name: "Set.Empty.SubtractingInt0",
231+
name: "Set.subtracting.Empty.Int0",
232232
runFunction: { n in run_SetSubtractingInt(setE, setAB, 0, 10 * n) },
233233
tags: [.validation, .api, .Set],
234234
setUpFunction: { blackHole([setE, setAB]) }),
235235
BenchmarkInfo(
236-
name: "Set.Empty.SubtractingBox0",
236+
name: "Set.subtracting.Empty.Box0",
237237
runFunction: { n in run_SetSubtractingBox(setOE, setOAB, 0, 10 * n) },
238238
tags: [.validation, .api, .Set],
239239
setUpFunction: { blackHole([setOE, setOAB]) }),

0 commit comments

Comments
 (0)