- Alexis Métaireau
- Journal
- Code, etc.
- Notes hebdo
- Lectures
- Projets

# Tag « django »

16 août 2023 django, pytest

# Profiling and speeding up Django and Pytest

Éloi made a pull request on IHateMoney to speedup the tests, with some great tooling for pytest that I wasn’t aware of:

- pytest-xdist allows to run tests in parallel, using `-n auto`
- pytest-profiling makes it easy to get the call stack and time the function calls that take most …