Merge pull request #90 from benlangmuir/perf-slow

Workaround perf test running too many iterations
This commit is contained in:
Ben Langmuir
2019-03-06 18:00:38 -08:00
committed by GitHub

View File

@@ -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