This article describes the performance testing results of Python 3.13 compared to Python 3.12. A total of 100 various benchmark tests were conducted o

Python 3.12 vs Python 3.13 – performance testing

submited by
Style Pass
2024-10-14 14:00:06

This article describes the performance testing results of Python 3.13 compared to Python 3.12. A total of 100 various benchmark tests were conducted on computers with the AMD Ryzen 7000 series and the 13th-generation of Intel Core processors for desktops, laptops or mini PCs.

All tests were run on Windows 11 computers using the pyperformance 1.11.0 library in Python 3.12.7 and Python 3.13.0 (both 64-bit versions).

The first part of testing involved a desktop computer with an AMD Ryzen 9 7900 processor, RAM DDR5, and an M.2 PCIe Gen4 NVMe drive. The table below shows the results of 100 tests performed using Python 3.12 (as a reference) and Python 3.13 on this device.

The result shows that Python 3.13 has the best performance results over Python 3.12 in the following tests: async_tree_eager_io_tg (1.61x faster ), async_tree_eager_io (1.54x faster ), async_tree_io_tg (1.54x faster ). However, you may notice a drop in performance in some tests, especially in coverage (1.36x slower ), create_gc_cycles (1.13x slower ), regex_v8 (1.13x slower ).

Additionally, you can examine the performance differences between Python 3.13 and Python 3.12 based on benchmarks belonging to specific groups. The table below shows the geometric mean for benchmarks from separate groups for Python 3.13 compared to Python 3.12.

Leave a Comment