Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Profiles slow Django test suites with shell timing, Django's runner, pytest-django, py-spy, and cProfile to rank bottlenecks.
Use this skill ↓82% 91%+9 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 18 of 22 without it.
3 of 3 safety checks passed
Not used yet
Use this skill before changing a Django test suite for speed. Measurement decides which optimization is worth doing; otherwise it is easy to spend time on harmless settings while the real cost sits in startup, database setup, fixture construction, or a small set of slow tests.
Capture a full wall-clock baseline.
Separate framework phases when possible.
--timing to see database setup and teardown.pytest --durations.Find the slowest tests.
pytest --durations 20.Profile only after you know where the time goes.
py-spy first for a low-overhead whole-run view.cProfile when you need exhaustive Python call data.Convert the result into a ranked action list.
django-test-performance, django-test-data, or django-test-parallelization when the next step fits those skills.time python manage.py test
python manage.py test --timing
pytest --durations 20
For profiling command variants and interpretation guidance, read profiler-commands.md.
--timing when database setup or teardown may dominate.Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.