Group Group Group Group Group Group Group Group Group

How: Testing performance of IBDesignable

How do I go about testing the performance using measure or alike of various IBDesignable designed to accomplish the same task?

customUILabel vs. UILablelExtension

I am currently changing the class of the label for every run and testing via

import XCTest

class ALUIPerformanceTests: XCTestCase {
    let app = XCUIApplication()
    
    override func setUp() {
        continueAfterFailure = false
        app.launch()
    }

    func testPerformanceMeasureMetrics() {
        guard app.otherElements["welcome_view"].exists else { return }
        
        measure {
            let welcomeDescriptionLabel = app.staticTexts["welcome_desc"]
            XCTAssertTrue(welcomeDescriptionLabel.exists)
        }
    }
}

But the above with one case doesn’t help me much as it is 20% better during few runs and 35% worse during others . . .