-
Notifications
You must be signed in to change notification settings - Fork 317
free-threading story #1339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
is looking ok:
missing for free-threading experience:
|
WinPython-3.13.0b1b result is with sudoku_thread_perf_comparison_typed.py:
3.13 no free-threading
|
I would like to try this benchmark myself for comparison. Where can I find sudoku_thread_perf_comparison_typed.py? |
https://github.com/winpython/winpython_afterdoc/tree/master/docs/free-threading_test or a non single-file variant from "the master" https://github.com/colesbury/sudopy-python3 adding thread1-4-20 basic test |
I used https://github.com/winpython/winpython_afterdoc/blob/master/docs/free-threading_test/sudoku_thread_perf_comparison_typed.py with three small modifications:
Results on an Intel i5-13600KF (20 logical processors, 14 cores): 3.13.0b1 (free-threading):
3.13.0b1 (no free-threading):
|
Another thing to note: I increased |
added time.perf_counter() and this:
|
most awaited talk on free-threading and subinterpreters from @tonybaloney our advanced multi-threading experimenter is late today... but hey, a repository just appeared : https://github.com/tonybaloney/subinterpreter-web |
tried pypy and cythonise.... but both failed.... created tickets |
python-3.13.0b2 free-thread: no really significant change. from b1 (windows testing is still noisy)
no free-threadin 3.13.0b2:
|
As would suggest faster-cpython github site, python-3.13.0b3 doesn't improve on free-threading scaling.
|
JIT and maybe free-threading shall become performant only in 3.14 cycle |
2024-12-24:
|
2025-03-17: let retry in 3.14 as there was a hope of 20% better with normal python
with free-threading
|
with python-3.14.0a7, the mono-thread free-threading sees an notable improvement vs standard cpython:
standard
free-threading
|
interesting on the mythical fib test:
.... there may be a bit of "skill" needed to unlock the scaling part. old intel laptop cpus may struggle to use SMT CPUs, small cache + small bandwith +thermals. thread-fib.py
|
no perf change with b1.... let re-consider when jupyterlab becomes possible |
remember ? https://www.theregister.com/2021/05/19/faster_python_mark_shannon_author/ "the "Shannon plan" here as the basis for achieving a "2x speedup in 3.11" with a hope for 5x in four years" Haaa, the optimism of youth ....
25% seems the best hope in mono-thread, 3x total.
... and the goal Python to not become irrelevant has been reached, according to TIOBE Index for May 2025: https://www.tiobe.com/tiobe-index/ "The only reason other languages still have a reason for existing is because of Python's low performance" ... hold my beard |
b2: no real change |
Uh oh!
There was an error while loading. Please reload this page.
external progress follow-up:
WinPython internal progress follow-up
The text was updated successfully, but these errors were encountered: