From 1c69c19606386191da4065d0eab740ad830f6e5b Mon Sep 17 00:00:00 2001 From: Nabil Chatbi Date: Fri, 16 Dec 2016 21:39:10 +0100 Subject: [PATCH] removed performance test --- Tests/textTests/SwiftSoupTests.swift | 51 +--------------------------- 1 file changed, 1 insertion(+), 50 deletions(-) diff --git a/Tests/textTests/SwiftSoupTests.swift b/Tests/textTests/SwiftSoupTests.swift index a7e8556..2e64e21 100644 --- a/Tests/textTests/SwiftSoupTests.swift +++ b/Tests/textTests/SwiftSoupTests.swift @@ -102,54 +102,5 @@ class SwiftSoupTests: XCTestCase { // } // } //passed (390.343 seconds). - func testPerformanceDiv() { - let h: String = "\n" + - "\n" + - " \n" + - " \n" + - " "\"><>&\"\n" + - " "\"><>&\"\n" + - " "\"><>&\"\n" + - " "\"><>&\"\n" + - " "\"><>&\"\n" + - " "\"><>&\"\n" + - " "\"><>&\"\n" + - " "\"><>&\"\n" + - " "\"><>&\"\n" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - "

Hello

Another element

" + - " bar\n" + - " \n" + - "" - let doc: Document = try! SwiftSoup.parse(h); - self.measure { - do { - for _ in 0...100000{ - _ = try doc.select("div"); - } - } - catch { - } - } - } - + }