I am working on extending the #Django test framework to include comprehensive performance testing for the open-source project https://github.com/ibrahim-sisar/EduLite, but hopefully I will #opensource the test extension itself with the name 'Django-Mercury'
This test framework introduced a new class, `DjangoPerformanceTestCase` that automatically tracks the stats of three important things:
1. View response times and memory usage
2. Serializer payload sizes & performance (specific to DRF)
3. Model queries and creations.
New asserts like `assertPerformance`, `assertResponseTimeLess`, `assertMemoryLess`, `assertPerformanceFast`, `assertPerformanceNotSlow` can join your existing test suite, just configure what 'Fast' and 'NotSlow' means in your settings.py!
I am excited to share how it actually works behind the scenes (spolier; I put my newfound C knowledge to use- it's lightning fast!)