Anyone noticed tests running slower on Python 3.12 ? If you're using coverage.py, the quick fix is to set env variable COVERAGE_CORE=sysmon. Just got 3.5x speedup for my tests.

Ref: https://github.com/nedbat/coveragepy/issues/1665 and https://github.com/python/cpython/issues/107674

#python #python312 #coveragepy #pytest #coverage #pytest_cov

Poor performance in Python 3.12 · Issue #1665 · nedbat/coveragepy

Describe the bug I recently added a Python 3.12-dev build to a project where I enable coverage on all the CI test runs, and the 3.12 build has consistently been taking nearly twice a long to comple...

GitHub