From 7ffcf7be5fa1bb0d6bb7b5cdbc9b1081e4daabcd Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Thu, 18 Dec 2014 01:49:46 +0100 Subject: [PATCH] Skip speed test "testSpeedSwiftSplit" as it takes a very long time. Also improve output of "testWhenSplitFileAsStringBecomesQuicker". --- .../xcshareddata/xcschemes/SwiftShell_Speed_Tests.xcscheme | 5 +++++ SwiftShell_Speed_Tests/Stream_Iteration_SpeedTests.swift | 3 +++ 2 files changed, 8 insertions(+) diff --git a/SwiftShell.xcodeproj/xcshareddata/xcschemes/SwiftShell_Speed_Tests.xcscheme b/SwiftShell.xcodeproj/xcshareddata/xcschemes/SwiftShell_Speed_Tests.xcscheme index a5a0b8c..b924460 100644 --- a/SwiftShell.xcodeproj/xcshareddata/xcschemes/SwiftShell_Speed_Tests.xcscheme +++ b/SwiftShell.xcodeproj/xcshareddata/xcschemes/SwiftShell_Speed_Tests.xcscheme @@ -37,6 +37,11 @@ BlueprintName = "SwiftShell_Speed_Tests" ReferencedContainer = "container:SwiftShell.xcodeproj"> + + + + diff --git a/SwiftShell_Speed_Tests/Stream_Iteration_SpeedTests.swift b/SwiftShell_Speed_Tests/Stream_Iteration_SpeedTests.swift index d04b103..42a5873 100644 --- a/SwiftShell_Speed_Tests/Stream_Iteration_SpeedTests.swift +++ b/SwiftShell_Speed_Tests/Stream_Iteration_SpeedTests.swift @@ -116,15 +116,18 @@ class Stream_Iteration_SpeedTests: XCTestCase { } func testWhenSplitFileAsStringBecomesQuicker() { + println() let splitarray = allSpeedsSplitFileAsString() let myarray = allSpeedIterateOverFile() for i in 0.. splitarray[i] { println(" splitting strings is faster after \(i) of \(splitarray.count) iterations") + println() return } } println( "splitting strings was never faster!") + println() } }