Post not yet marked as solved
Post marked as unsolved with 1 replies, 1,531 views
Currently I am facing some issues on writing a idea performance test case.Problem which I am facing could be lack of documentation.Method under test. func addStrings() {
let maxCount = 100000
var array:Array = Array()
for _ in 0.. array.append("Test")
}
}Performance test case.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()
}How do i set the ideal paramters for testing?What is the relation between MAX STDDEV , RESULT , AVERAGE and BASELINE.Looking for a descriptive answer with example. Thanks in advance.