DEV Community

Discussion on: Discovering UI Performance testing with XCTest. Navigation performance.

Collapse
 
100rabh_kapoor profile image
Saurabh Kapoor

I have been working on writing perf tests for some time now and one issue that I frequently come across is that the results are not consistent. I have tried XCTOSSignpostMetrics for checking hitch ratio and also XCTMemoryMetric for checking the leaks.

Do you have any idea why there is inconsistency and also if we can do anything to have more consistent results across runs?

Collapse
 
mtmorozov profile image
Dmitrii Morozov

Have you tried using real device for testing?

Collapse
 
100rabh_kapoor profile image
Saurabh Kapoor

Yes, tried it on real devices but still see inconsistency in the results. I have also raised this issue with apple in the perf lab discussion earlier this year.