Python 3.12 vs. Python 3.13 – performance testing
Python 3.13 outperforms Python 3.12 with a 1.08x improvement in benchmarks, especially in async tests, though some areas like coverage showed decreased performance. It is recommended for better performance.
Read original articleThe performance testing of Python 3.13 compared to Python 3.12 was conducted using 100 benchmark tests on systems equipped with AMD Ryzen 7000 series and 13th-generation Intel Core processors. The tests utilized the pyperformance 1.11.0 library on Windows 11. Results indicated that Python 3.13 generally outperformed Python 3.12, achieving a geometric mean performance improvement of 1.08x across various benchmarks. Notable improvements were observed in tests such as async_tree_eager_io_tg (1.61x faster) and async_tree_io_tg (1.54x faster). However, some benchmarks showed decreased performance, particularly in coverage (1.36x slower) and create_gc_cycles (1.13x slower). The performance results were also categorized by benchmark groups, with Python 3.13 showing improvements in apps (1.06x faster), asyncio (1.22x faster), and math (1.07x faster), while startup performance was slightly slower (1.04x). The second part of the testing on an Intel Core i3-1315U processor yielded similar results, with significant speedups in async_tree_cpu_io_mixed (1.27x faster) and async_tree_eager_io (1.40x faster), although some tests like coverage were notably slower (3.85x). Overall, Python 3.13 demonstrates enhanced performance in many areas, making it a favorable upgrade over Python 3.12.
- Python 3.13 shows an overall performance improvement of 1.08x over Python 3.12.
- Significant speedups were noted in async-related benchmarks.
- Some benchmarks, particularly coverage, experienced performance drops.
- Performance improvements were consistent across both AMD and Intel processors.
- Python 3.13 is recommended for users seeking better performance in various applications.
Related
What's New in Python 3.13
Python 3.13 introduces a revamped interactive interpreter, experimental free-threaded execution, a JIT compiler, removal of deprecated modules, and official support for mobile platforms, scheduled for release on October 1, 2024.
Everything you need to know about Python 3.13 – JIT and GIL went up the hill
Python 3.13, releasing on October 2, 2024, introduces a free-threaded version allowing GIL disabling, enhancing multi-threading performance while potentially reducing single-threaded task performance by 20%.
Python 3.13: Cool New Features for You to Try – Real Python
Python 3.13, releasing on October 7, 2024, features an improved REPL, enhanced error messages, removal of the GIL, and an experimental JIT compiler, aiming to boost performance and user experience.
Python 3.13.0 Is Released
Python 3.13, released on October 7, 2024, features a revamped interpreter, experimental free-threaded execution, a JIT compiler, removal of deprecated modules, and enhanced typing capabilities for improved performance and usability.
What's New in Python 3.13
Python 3.13, released on October 7, 2024, features a new interactive interpreter, improved error messages, a JIT compiler, free-threaded execution, and enhanced support for mobile platforms.
Resource Limit Is Reached
The website is temporarily unable to service your request as it exceeded resource limit. Please try again later.
that's good news since 3.13 is merely planting the seeds for further improvements, can't wait for 3.14 and 3.15
2to3 226 ms 217 ms (1.04x faster)
It is not "1.04x" faster, which would mean 104%, or twice as fast / half the time. It is 4% faster.Related
What's New in Python 3.13
Python 3.13 introduces a revamped interactive interpreter, experimental free-threaded execution, a JIT compiler, removal of deprecated modules, and official support for mobile platforms, scheduled for release on October 1, 2024.
Everything you need to know about Python 3.13 – JIT and GIL went up the hill
Python 3.13, releasing on October 2, 2024, introduces a free-threaded version allowing GIL disabling, enhancing multi-threading performance while potentially reducing single-threaded task performance by 20%.
Python 3.13: Cool New Features for You to Try – Real Python
Python 3.13, releasing on October 7, 2024, features an improved REPL, enhanced error messages, removal of the GIL, and an experimental JIT compiler, aiming to boost performance and user experience.
Python 3.13.0 Is Released
Python 3.13, released on October 7, 2024, features a revamped interpreter, experimental free-threaded execution, a JIT compiler, removal of deprecated modules, and enhanced typing capabilities for improved performance and usability.
What's New in Python 3.13
Python 3.13, released on October 7, 2024, features a new interactive interpreter, improved error messages, a JIT compiler, free-threaded execution, and enhanced support for mobile platforms.