Skip to content

Commit 7ed9ddb

Browse files
committed
[benchmark] StringEnum Legacy Factor
1 parent c3efe99 commit 7ed9ddb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

benchmark/single-source/StringEnum.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import TestsUtils
1515
public let StringEnum = BenchmarkInfo(
1616
name: "StringEnumRawValueInitialization",
1717
runFunction: run_StringEnumRawValueInitialization,
18-
tags: [.validation, .api, .String])
18+
tags: [.validation, .api, .String],
19+
legacyFactor: 20)
1920

2021
enum TestEnum : String {
2122
case c1 = "Swift"
@@ -216,11 +217,10 @@ public func run_StringEnumRawValueInitialization(_ N: Int) {
216217
let short = "To"
217218
let long = "(C, C++, Objective-C)."
218219
let last = "code."
219-
for _ in 1...2000*N {
220+
for _ in 1...100*N {
220221
convert(first)
221222
convert(short)
222223
convert(long)
223224
convert(last)
224225
}
225226
}
226-

0 commit comments

Comments
 (0)