If your test suite can run on #Python 3.14, and you use branch coverage measurement, please get Python 3.14.0a6 and coverage․py 7.7.0 and let me know how the speed compares to older versions! It will be faster!
@nedbat wow. Trying it on a very small pure Python lib (inifix), branch coverage on:
coverage 7.6.11 (default): ~3s
coverage 7.6.11 (COVERAGE_CORE=sysmon): ~1.5s
coverage 7.7.0 (COVERAGE_CORE=sysmon): ~<1.0s
without coverage, the test suite runs in about 800ms, so the overhead needed to measure coverage went from ~275% to a measly 25%.
Testing @pillow
Without branch coverage (and without sysmon), it's about 80 seconds for both 7.6.12 and 7.7.0.
Without branch coverage (and using sysmon), it's about 38 seconds for both 7.6 and 7.7.
With branch coverage (and using sysmon), coverage 7.7 ran 2.42 times faster than 7.6!
107 -> 44 seconds!