On 2025-04-30, H. Hartzer <h...@hartzer.sh> wrote:
> I have a Python codebase and noticed a huge drop in performance after
> upgrading to 7.7. Of course at the same time, I picked up Python 3.12 up
> from 3.11.
>
> I wasn't sure immediately where the performance drop was from. But with
> a hacky install of Python 3.11 alongside 3.12, I was able to test and
> confirm.

Seeing about 10% slower on the cvs-git conversion, which runs in Python.

> I have a Python application with one call that is 17% slower with 3.12.
> Notable, but not too serious for me. But it seems that pytest is
> considerably slower. Test collection went from about 2 seconds to about
> 32 seconds. And then test execution went from 81 seconds to 182 seconds.
>
> So it seems like this is pytest+3.12 related, and there's an issue for
> it: https://github.com/pytest-dev/pytest/discussions/12568

If someone wants --assert=plain (mentioned in the gh discussion) for ports
tests, it can be set in mk.conf with MODPY_PYTEST_USERARGS.

-- 
Please keep replies on the mailing list.

Reply via email to