Skip to content

Potential performance regression with Python 3.14 bench_mp_pool on Linux #139881

@NoAnyLove

Description

@NoAnyLove

Bug report

Bug description:

Hi team, I was running pyperformance and found that the bench_mp_pool in 3.14 was way more slower than in 3.13.

I uses pyperformance-1.11.0 installed from master branch and conda-forge Python builds, the system is Ubuntu 22.04.

+-------------------+-----------------------------+-----------------------------+
| Benchmark         | Python 3.13.7               | Python 3.14.0               |
+===================+=============================+=============================+
| bench_mp_pool     | 6.08 ms                     | 1.91 sec: 315.05x slower    |
+-------------------+-----------------------------+-----------------------------+

I also tried it on another Ubuntu 22.04 box, it was better but still tens of times slower,

+-------------------+-----------------------------+-----------------------------+
| Benchmark         | Python 3.13.7               | pPython 3.14.0              |
+===================+=============================+=============================+
| bench_mp_pool     | 13.4 ms                     | 367 ms: 27.42x slower       |
+-------------------+-----------------------------+-----------------------------+

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directorytopic-multiprocessingtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions