Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Profile and measure slow Django test suites with Django's runner, pytest-django, shell timing, py-spy, cProfile, pytest durations, and profiler visualizations. Use when a Django project has slow tests, unclear test-runtime bottlenecks, CI timing problems, startup overhead, database setup overhead, or a request to find the slowest tests before optimizing.
.claude/skills/hashgraph-online-django-test-profiling/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 7% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -31% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-13 | ✓→✗ | ▼ Worse | -12% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -24% | 0% |
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.
--timing to see database setup and teardown.pytest --durations.pytest --durations 20.py-spy first for a low-overhead whole-run view.cProfile when you need exhaustive Python call data.django-test-performance, django-test-data, or django-test-parallelization when the next step fits those skills.bashtime 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.py-spy --subprocesses when the test runner uses child processes.Before reporting findings, include:
Other measured skills in the registry, with their headline benchmark lift.