Skip to content

Regression in Python 3.11 with significative performance loss #92569

Closed
@Ousret

Description

@Ousret

Bug report

I am reporting a regression regarding performance that I recently noticed in Python 3.11.0b1.
Got a five times slower performance regarding charset-normalizer and I currently do not know why.

Your environment

Tested on a Linux platform (Fedora 35).

Reproducer

git clone https://github.com/Ousret/charset_normalizer.git
cd charset_normalizer
pip install -U pip setuptools
pip install -r dev-requirements.txt
pytest

Python 3.10

==== 126 passed in 3.43s ====

Python 3.11.alpha4

==== 126 passed in 6.32s ====

Python 3.11.0b1

==== 126 passed in 20.15s ====

I can concur that the shown results are reproducible at will.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixesperformancePerformance or resource usagetype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions