Skip to content

Commit 9063c1e

Browse files
committed
[benchmark] StrToInt Legacy Factor
1 parent 7c8beb7 commit 9063c1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

benchmark/single-source/StrToInt.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import TestsUtils
1717
public let StrToInt = BenchmarkInfo(
1818
name: "StrToInt",
1919
runFunction: run_StrToInt,
20-
tags: [.validation, .api, .String])
20+
tags: [.validation, .api, .String],
21+
legacyFactor: 10)
2122

2223
@inline(never)
2324
public func run_StrToInt(_ N: Int) {
@@ -45,7 +46,7 @@ public func run_StrToInt(_ N: Int) {
4546
return r
4647
}
4748
var res = Int.max
48-
for _ in 1...1000*N {
49+
for _ in 1...100*N {
4950
res = res & DoOneIter(input)
5051
}
5152
CheckResults(res == ref_result)

0 commit comments

Comments
 (0)