XCTest Performance Testing
We should investigate if we can use XCTest's performance testing features to implement automatic performance tests on CI. This to prevent regressions in high performance-sensitive code when adding new features.
APIs that would be good to performance test:
- [ ]
Timeline, since it's the backbone of all updates, including actions & animations. - [ ]
Action, since it is the base class for all actions. - [ ]
TextureManager, since it loads all textures, which is a very common operation.
Questions to discuss
- [ ] Can we run these type of performance tests on CI without causing flakiness?
I think the only way to really know if theyβll flake out ci or not is to try it, hehe. The baseline capturing does capture machine specs for the machine it was run on, if I remember correctly, though, so that might be helpful.
That's the spirit! π Sounds good to me π I think we should just make a proof of concept and see where it takes us. Go for it @aranasaurus!