mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
23 lines
487 B
Swift
23 lines
487 B
Swift
//
|
|
// HTMLLinkPerformanceTests.swift
|
|
// RSParserTests
|
|
//
|
|
// Created by Brent Simmons on 4/19/26.
|
|
//
|
|
|
|
import XCTest
|
|
import RSParser
|
|
|
|
// Performance tests stay in XCTest — Swift Testing doesn't have a `measure { }` equivalent yet.
|
|
|
|
final class HTMLLinkPerformanceTests: XCTestCase {
|
|
|
|
func testSixColorsPerformance() {
|
|
// 0.003 sec on my 2012 iMac
|
|
let d = parserData("sixcolors", "html", "http://sixcolors.com/")
|
|
self.measure {
|
|
_ = HTMLLinkParser.htmlLinks(with: d)
|
|
}
|
|
}
|
|
}
|