Files
NetNewsWire/Modules/RSParser/Tests/RSParserTests/HTMLLinkPerformanceTests.swift
T
2026-04-19 20:43:54 -07:00

24 lines
509 B
Swift

//
// HTMLLinkPerformanceTests.swift
// RSParserTests
//
// Created by Brent Simmons on 4/19/26.
//
import XCTest
import RSParser
import RSParserObjC
// 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 {
_ = RSHTMLLinkParser.htmlLinks(with: d)
}
}
}