| | | |------------------|-----------------| |Previous ID | SR-9222 | |Radar | None | |Original Reporter | bnut (JIRA User) | |Type | Bug | Attachment: [Download](https://user-images.githubusercontent.com/2727770/164963022-2b12029c-62ef-47a6-b345-f74f4b73df51.gz) <details> <summary>Environment</summary> ``` java Xcode 10.1 (10B61) MacBook Pro (15-inch, 2016) 2.9 GHz Intel Core i7 16 GB 2133 MHz LPDDR3 ``` </details> <details> <summary>Additional Detail from JIRA</summary> | | | |------------------|-----------------| |Votes | 0 | |Component/s | XCTest | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: d535dadca1b8fdfb15ae346fea01370a </details> **Issue Description:** Using the measure block in XCTest always results in a significant overhead on the first measurement. ``` java import XCTest @testable import xctperf_test final class xctperf_testTests: XCTestCase { func testExample() { measure { for _ in 0 ... 10_000 { XCTAssertEqual("abc", "abc") } } } static var allTests = [ ("testExample", testExample), ] } ``` <img src="image-2018-11-12-09-10-15-156.png" width="559" height="327" /> <img src="https://bugs.swift.org/secure/temporaryattachment/43d3f394002b3325ea76244c14b59a07eedee50e/temp7084778648985215092_Screen%20Shot%202018-11-12%20at%209.16.19%20am.png" width="552" height="290" />