Files
NetNewsWire/Modules/RSParser/Tests/RSParserTests/HTML/HTMLLinkPerformanceTests.swift
T

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)
}
}
}