XCTMeasureOptions.default has the wrong iterationCount

Originator:AlexanderMomchilov
Number:rdar://FB9084432 Date Originated:2021-05-20
Status:Open Resolved:Not yet
Product:Xcode Product Version:Version 12.4 (12D4e)
Classification:Incorrect/Unexpected Behavior Reproducible:Yes
 
`XCTMeasureOptions.default` doesn’t actually model the default measurement options.
  * Calling `self.measure { … }` runs the block 10 times.
  * Calling `self.measure(options: XCTMeasureOptions.default) { … }` runs the block 6 times, keeping measurement for the last 5 runs.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!