We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a118de9 commit d59ec36Copy full SHA for d59ec36
Tests/RealTests/RelaxedArithmeticTests.swift
@@ -16,6 +16,7 @@ import _TestSupport
16
import Accelerate
17
#endif
18
19
+#if !DEBUG
20
func strictSum<T: Real>(_ array: [T]) -> T {
21
array.reduce(0, +)
22
}
@@ -36,11 +37,7 @@ func relaxedSumOfSquares<T: Real>(_ array: [T]) -> T {
36
37
// limitations of what XCT measure { } lets us do easily. Good enough for now.
38
func benchmarkReduction(_ data: [Float], _ reduction: ([Float]) -> Float) {
39
var accum: Float = 0
-#if DEBUG
40
- let iters = 1_000
41
-#else
42
let iters = 100_000
43
-#endif
44
for _ in 0 ..< iters {
45
accum += reduction(data)
46
@@ -129,3 +126,4 @@ final class RelaxedArithmeticTests: XCTestCase {
129
126
130
127
131
128
+#endif
0 commit comments