From 2b930e512fb99f64e642ab4c0a7589089e0cf5a5 Mon Sep 17 00:00:00 2001 From: Ben Langmuir Date: Wed, 6 Mar 2019 16:21:50 -0800 Subject: [PATCH] Workaround perf test running too many iterations --- Tests/SKSupportTests/SupportPerfTests.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Tests/SKSupportTests/SupportPerfTests.swift b/Tests/SKSupportTests/SupportPerfTests.swift index 6fa510c3..c85699b1 100644 --- a/Tests/SKSupportTests/SupportPerfTests.swift +++ b/Tests/SKSupportTests/SupportPerfTests.swift @@ -24,8 +24,7 @@ final class SupportPerfTests: PerfTestCase { "\t", "\n" ] + (32...126).map { Character(UnicodeScalar($0)) } - // The debug performance is shockingly bad. - #if DEBUG + #if DEBUG || !ENABLE_PERF_TESTS let iterations = 1_000 #else let iterations = 10_000 @@ -54,8 +53,7 @@ final class SupportPerfTests: PerfTestCase { "\t", "\n" ] + (32...126).map { Character(UnicodeScalar($0)) } - // The debug performance is shockingly bad. - #if DEBUG + #if DEBUG || !ENABLE_PERF_TESTS let iterations = 1_000 let size = 1_000 #else