Swift testing type checking performance is pretty poor. Tests with many #expect or #require macros can easily exceed several hundred milliseconds
@calicoding Are you building Swift Testing from source as a package or are you using the prebuilt copy in Xcode/the toolchain?
@grynspan prebuilt in Xcode. My daily usage is still Xcode 16.4 and I haven’t checked if it’s improved in Xcode 26
@grynspan toss 10 or so #expects into a test method and it can pretty easily exceed 200 ms. This is using the -warn-long-function-bodies frontend option