Python
The reference CPython interpreter: bytecode interpreter with reference counting and a cycle collector.
www.python.org ↗- Overall speed rank
- #3 of 3
- 18.38× the fastest language
- Latest release
- 3.15
- 10 tracked releases since 2016
Performance by problem
Newest release (3.15), default build (python3). The index is how many times slower this language is than the fastest entry on that problem (1.00× = fastest); rank is among all languages.
| Problem | Time | vs fastest | Rank | Memory | |
|---|---|---|---|---|---|
| Binary Trees | 288 ms | 5.58× | #3 / 3 | 9.3 MB | |
| Fannkuch-redux | 475 ms | 25.9× | #3 / 3 | 6.2 MB | |
| File processing | 913 ms | 6.31× | #3 / 3 | 6.8 MB | |
| Hash map | 397 ms | 12.8× | #3 / 3 | 135 MB | |
| JSON parsing | 714 ms | 36.5× | #3 / 3 | 154 MB | |
| Matrix multiply | 954 ms | 505× | #3 / 3 | 18.1 MB | |
| N-Body simulation | 6.42 s | 101× | #3 / 3 | 6.6 MB | |
| Parallel reduction | 2.19 s | 23.4× | #3 / 3 | 16.6 MB | |
| Prime sieve | 395 ms | 19.7× | #3 / 3 | 41.1 MB | |
| Sorting | 756 ms | 4.68× | #3 / 3 | 106 MB | |
| String operations | 72.6 ms | 4.48× | #3 / 3 | 42.4 MB |
Compare with other languages
How fast each language is relative to Python (composite over all tasks).
Build settings
python3 default
Default interpreter.
python3 {harness}/harness.py {src}/main.pyEvery release (default build)
| Release | Binary Trees | Fannkuch-redux | File processing | Hash map | JSON parsing | Matrix multiply | N-Body simulation | Parallel reduction | Prime sieve | Sorting | String operations |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 3.15 2026-10-09 | 288 ms | 475 ms | 913 ms | 397 ms | 714 ms | 954 ms | 6.42 s | 2.19 s | 395 ms | 756 ms | 72.6 ms |
| 3.14 2025-10-07 | 303 ms | 554 ms | 934 ms | 349 ms | 765 ms | 1.02 s | 7.11 s | 2.79 s | 399 ms | 656 ms | 71.9 ms |
| 3.13 2024-10-07 | 314 ms | 549 ms | 916 ms | 330 ms | 715 ms | 904 ms | 6.24 s | 3.83 s | 513 ms | 748 ms | 68.6 ms |
| 3.12 2023-10-02 | - | - | - | - | - | - | - | - | - | - | - |
| 3.11 2022-10-24 | - | - | - | - | - | - | - | - | - | - | - |
| 3.10 2021-10-04 | - | - | - | - | - | - | - | - | - | - | - |
| 3.9 2020-10-05 | - | - | - | - | - | - | - | - | - | - | - |
| 3.8 2019-10-14 | - | - | - | - | - | - | - | - | - | - | - |
| 3.7 2018-06-27 | - | - | - | - | - | - | - | - | - | - | - |
| 3.6 2016-12-22 | - | - | - | - | - | - | - | - | - | - | - |
Speed across releases
Did Python get faster? Every tracked release plotted at its release date, one line per build setting. Shows time, memory or binary size over all problems by default.
7 tracked releases have not been measured for this problem yet (3.12, 3.11, 3.10, 3.9, 3.8, 3.7, 3.6, shown faded on the axis). Lines appear as soon as a second release has data.
Each point is one language release on its official release date, measured on an average machine. Hover a line, its label or a legend button to highlight it; hover a point for release highlights. “All problems” is the geometric mean over every scored problem; releases not yet measured on all of them are left out.
Release highlights
- Python 3.15 2026-10-09
- Python 3.14 2025-10-07Free-threaded build officially supported · Optional tail-call interpreter · Deferred annotation evaluation
- Python 3.13 2024-10-07Experimental free-threaded build (no GIL) · Experimental JIT compiler
- Python 3.12 2023-10-02Per-interpreter GIL · Inlined comprehensions (PEP 709)
- Python 3.11 2022-10-24Specializing adaptive interpreter (PEP 659) · Zero-cost exceptions; 10-60% faster than 3.10 on average
- Python 3.10 2021-10-04Structural pattern matching
- Python 3.9 2020-10-05
- Python 3.8 2019-10-14
- Python 3.7 2018-06-27
- Python 3.6 2016-12-22
Badge
Show this language's overall rank in your README or website:
[](https://stijnris.github.io/language-bench/languages/python/)<a href="https://stijnris.github.io/language-bench/languages/python/"><img src="https://stijnris.github.io/language-bench/badges/python.svg" alt="Python on language-bench"></a>