mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[benchmark] StrToInt Legacy Factor
This commit is contained in:
@@ -17,7 +17,8 @@ import TestsUtils
|
||||
public let StrToInt = BenchmarkInfo(
|
||||
name: "StrToInt",
|
||||
runFunction: run_StrToInt,
|
||||
tags: [.validation, .api, .String])
|
||||
tags: [.validation, .api, .String],
|
||||
legacyFactor: 10)
|
||||
|
||||
@inline(never)
|
||||
public func run_StrToInt(_ N: Int) {
|
||||
@@ -45,7 +46,7 @@ public func run_StrToInt(_ N: Int) {
|
||||
return r
|
||||
}
|
||||
var res = Int.max
|
||||
for _ in 1...1000*N {
|
||||
for _ in 1...100*N {
|
||||
res = res & DoOneIter(input)
|
||||
}
|
||||
CheckResults(res == ref_result)
|
||||
|
||||
Reference in New Issue
Block a user