Skip to content

Performance

Why do my Python tests run slower in CI than locally?

Quick answer

pytest is serial by default, and your laptop has faster single-core performance and a warm filesystem cache.

The detail that matters

Run pytest -n auto with pytest-xdist. Most suites see a near-linear speedup up to the core count.

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.