I have the below lines of code for which I need to test the performance criteria. But unfortunately Apple Document does not help to get a clear understanding on this.
func addStrings() {
let maxCount = 100000
var array:Array<String> = Array()
for _ in 0..<maxCount {
array.append("Test")
}
}
The performance Test Case Code is listed below.
func testPerformanceExample() throws {
// This is an example of a performance test case.
let strings = StringsCreator()
self.measure {
// Put the code you want to measure the time of here.
strings.addStrings()
}
}
From the result it looks like the first value is 21.3% increase of the average (0.0611s). But what do the rest of the attributes mean? And how do I set (baseline and Max STD Dev) them to an acceptable criteria?
How does it calculate Result is 88% better and what is +- 8%?