Tuesday, June 22, 2021

Python 3.x threading comparison

I've put a comparison of different Python runtimes here.

In short, CPython, but also Pypy3 and Nuitka, threaded poorly. This while the Python for tiny systems, Micropython, threaded quite well - at least on this embarallel problem. See the graph at the link above.

1 comment:

  1. The link gives a 404 due to an extra space at the end.

    You haven't yet pointed out that all current implementations of Python 3.x are unable to take advantage of multiple cores with threads while running Python code due to the Global Interpreter Lock (GIL). Threads can still increase performance when using C extensions that release the GIL, or when doing file I/O.

    ReplyDelete