Post

Replies

Boosts

Views

Activity

How to write a performance test case
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.
1
0
1.7k
Apr ’20