How can I run my performance tests more than ten times?
问题 By default Xcodes performance tests are run ten times and my result is the average of those ten tests. The problem is the averaged result varies considerably each time I run it so I have to run the test at least five times to get a converged result. This is both tedious and time consuming; is there a way to configure either XCode or the unit test itself to run more than ten times? 回答1: In the latest Xcode (11.0+) you don't need swizzling to change iterations count. Use the following function: