hugovk, @coveragepy can now use Python 3.12's new sys.monitoring module with much lower overhead.
On 3.12, it's about the same as if you were running tests without coverage enabled!
https://nedbatchelder.com/blog/202312/coveragepy_with_sysmonitoring.html
With 7.4.2, you can set COVERAGE_CORE=sysmon globally on your CI, and it'll only use it where available (Python 3.12 and 3.13 alpha), and use the default for 3.11 and older.
For example, @pillow is 9% - 27% faster!
Add comment