Skip to content

Severe performance degradation for tracing under 3.11#93516

@nedbat

Description

@nedbat

Bug report

Coverage.py is seeing a significant increase in overhead for tracing code in 3.11 compared to 3.10: coveragepy/coveragepy#1287

As an example:

covprojpython3.10python3.113.11 vs 3.10
nonebug1339.py0.184 s0.142 s76%
nonebm_sudoku.py10.789 s9.901 s91%
nonebm_spectral_norm.py14.305 s9.185 s64%
6.4.1bug1339.py0.450 s0.854 s189%
6.4.1bm_sudoku.py27.141 s55.504 s204%
6.4.1bm_spectral_norm.py36.793 s67.970 s184%

(This is the output of lab/benchmark.py.)

Your environment

  • CPython versions tested on: 3.10, 3.11
  • Operating system and architecture: MacOS, Intel

Linked PRs

Metadata

Metadata

Assignees

Labels

3.11only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions