We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3efe99 commit 7ed9ddbCopy full SHA for 7ed9ddb
benchmark/single-source/StringEnum.swift
@@ -15,7 +15,8 @@ import TestsUtils
15
public let StringEnum = BenchmarkInfo(
16
name: "StringEnumRawValueInitialization",
17
runFunction: run_StringEnumRawValueInitialization,
18
- tags: [.validation, .api, .String])
+ tags: [.validation, .api, .String],
19
+ legacyFactor: 20)
20
21
enum TestEnum : String {
22
case c1 = "Swift"
@@ -216,11 +217,10 @@ public func run_StringEnumRawValueInitialization(_ N: Int) {
216
217
let short = "To"
218
let long = "(C, C++, Objective-C)."
219
let last = "code."
- for _ in 1...2000*N {
220
+ for _ in 1...100*N {
221
convert(first)
222
convert(short)
223
convert(long)
224
convert(last)
225
}
226
-
0 commit comments