Python 3.12, 3.11, 3.10, 3.9, 3.8 performance vs 2.7
Created:22-06-04 14:18
Updated:23-10-13 22:20
About a decade ago, I developed a pure Python ODBC module (pypyodbc), and I was very curious about how compatible this module was on different implementations of Python, including: CPython 2.X, CPython 3.X, PyPy and even IronPython. While the pure Python module could run normally on all of the above-mentioned interpreters, I was interested in using it to test the performance of those Python implementations. Below are the results:
Summary Python 3.12 Beta1 > PyPy > Python 3.11 ≈ Nuitka + Python 3.7 > CPython 3.10 > CPython 3.9 ≈ CPython 3.8 > CPython 2.7 > CPython 3.7 > IronPython
Considering that for compatibility purposes, the testing script and the module itself were written in a way that both 2.X and 3.X could run, but more friendly to Python 2.7, the performance of 3.x interpreter should be even better if codes are written in native 3.x syntax. - End - See also: CherryPy performance on Python 2.7 / 3.9 / 3.10, analyzed by Locust load testing! |
|||||||||||||||||||||||