-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-9222] XCTest performance tests are always much slower on the first measurement #358
Comments
Comment by Andrew Bennett (JIRA) @briancroom this might be something you're interested in, based on other similar tickets. |
Hi bnut (JIRA User), based on the screenshot, it looks like you are seeing this problem when using Xcode’s XCTest, rather than swift-corelibs-xctest. Could you confirm? |
Comment by Andrew Bennett (JIRA) Yes, that's correct @briancroom - sorry if you were the wrong person to ping. I created the target with SwiftPM using I've verified this by looking at the `XCTest` module, which contains: public var XCT_UI_TESTING_AVAILABLE: Int32 { get }
//
// Copyright (c) 2014-2015 Apple Inc. All rights reserved.
// Which doesn't seem to be in the corelibs version. |
Hey bnut (JIRA User), sorry for the delay. No worries, I'm a fine person to ask about this! Yeah, swift-corelibs-xctest is generally only used on non-Apple platforms, so this would be Xcode's version of XCTest that you're using here. I haven't seen this particular behavior before, but it does seem like a bug. Would you be willing to file a Radar about this on https://bugreport.apple.com and attach an Xcode project which reproduces the problem? |
Comment by Andrew Bennett (JIRA) Thanks for the feedback @briancroom, I've created a report at https://bugreport.apple.com/web/?problemID=46153989 Please let me know if you need more information. |
Attachment: Download
Environment
Additional Detail from JIRA
md5: d535dadca1b8fdfb15ae346fea01370a
Issue Description:
Using the measure block in XCTest always results in a significant overhead on the first measurement.
The text was updated successfully, but these errors were encountered: