Skip to content

Commit 2b930e5

Browse files
committed
Workaround perf test running too many iterations
1 parent 079057f commit 2b930e5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/SKSupportTests/SupportPerfTests.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ final class SupportPerfTests: PerfTestCase {
2424
"\t", "\n"
2525
] + (32...126).map { Character(UnicodeScalar($0)) }
2626

27-
// The debug performance is shockingly bad.
28-
#if DEBUG
27+
#if DEBUG || !ENABLE_PERF_TESTS
2928
let iterations = 1_000
3029
#else
3130
let iterations = 10_000
@@ -54,8 +53,7 @@ final class SupportPerfTests: PerfTestCase {
5453
"\t", "\n"
5554
] + (32...126).map { Character(UnicodeScalar($0)) }
5655

57-
// The debug performance is shockingly bad.
58-
#if DEBUG
56+
#if DEBUG || !ENABLE_PERF_TESTS
5957
let iterations = 1_000
6058
let size = 1_000
6159
#else

0 commit comments

Comments
 (0)