Skip to content

Commit 76df55d

Browse files
Quiet a deprecation warning in the count(where:) benchmark (#82257)
I think the benchmarking machinery moved while count(where:) was in limbo, so this was deprecated before the benchmark actually landed.
1 parent de3fb02 commit 76df55d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/single-source/CountAlgo.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public let benchmarks = [
2626
@inline(never)
2727
public func run_CountAlgoArray(_ N: Int) {
2828
for _ in 1...10*N {
29-
CheckResults(numbers.count(where: { $0 & 4095 == 0 }) == 25)
29+
check(numbers.count(where: { $0 & 4095 == 0 }) == 25)
3030
}
3131
}
3232

3333
@inline(never)
3434
public func run_CountAlgoString(_ N: Int) {
3535
let vowels = Set("aeiou")
3636
for _ in 1...N {
37-
CheckResults(text.count(where: vowels.contains) == 2014)
37+
check(text.count(where: vowels.contains) == 2014)
3838
}
3939
}
4040

0 commit comments

Comments
 (0)