mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove interpolated strings from benchmark CheckResults
This call was in many cases skewing the benchmark results. Note: Intentionally staging this in without removing the old overload initially.
This commit is contained in:
@@ -122,8 +122,7 @@ public func run_Dictionary(scale: Int) {
|
||||
Dict[word] = true
|
||||
}
|
||||
}
|
||||
CheckResults(Dict.count == 270,
|
||||
"IncorrectResults in DictTest: \(Dict.count) != 270.")
|
||||
CheckResults(Dict.count == 270)
|
||||
|
||||
// Check performance of searching in the dictionary:
|
||||
// Fill the dictionary with words from the first half of the text
|
||||
@@ -142,8 +141,7 @@ public func run_Dictionary(scale: Int) {
|
||||
}
|
||||
}
|
||||
}
|
||||
CheckResults(count == N*541,
|
||||
"IncorrectResults in DictTest: \(count) != \(N*541).")
|
||||
CheckResults(count == N*541)
|
||||
}
|
||||
|
||||
class Box<T : Hashable> : Hashable {
|
||||
@@ -272,8 +270,7 @@ public func run_DictionaryOfObjects(scale: Int) {
|
||||
Dict[Box(word)] = Box(true)
|
||||
}
|
||||
}
|
||||
CheckResults(Dict.count == 270,
|
||||
"IncorrectResults in DictTest: \(Dict.count) != 270.")
|
||||
CheckResults(Dict.count == 270)
|
||||
|
||||
// Check performance of searching in the dictionary:
|
||||
// Fill the dictionary with words from the first half of the text
|
||||
@@ -292,6 +289,5 @@ public func run_DictionaryOfObjects(scale: Int) {
|
||||
}
|
||||
}
|
||||
}
|
||||
CheckResults(count == N*541,
|
||||
"IncorrectResults in DictTestAllObjects: \(count) != \(N*541).")
|
||||
CheckResults(count == N*541)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user