# Python 3.15's JIT finally beats the standard interpreter

Original title: How Fast is Python 3.15?

> Hacker News story 49984652 · language: en · submitted 2026-10-06
> Web version: https://zeli.app/story/49984652
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 71 · by [Qem](<https://news.ycombinator.com/user?id=Qem>) · 💬 54
[original](<https://blog.miguelgrinberg.com/post/how-fast-is-python-3-15>) · [HN discussion](<https://news.ycombinator.com/item?id=49984652>)

## Summary

Miguel Grinberg benchmarks Python 3.15 against versions back to 3.10, plus PyPy, Node.js, and Rust, using recursive Fibonacci and bubble sort tests. The standard interpreter shows only marginal gains over 3.14, but the JIT variant delivers a 1.20x speedup on Fibonacci and 1.28x on bubble sort—the first time the JIT outperforms the standard interpreter. Free-threading remains comparable to 3.14, while PyPy and Rust still dominate overall.

## Key quote

> The 3.15 JIT once again shows an impressive 1.28x speed gain over the regular interpreter.

## HN discussion (54 comments)

### [scosman](<https://news.ycombinator.com/item?id=49987459>)

> only tangentially related, but naming PyPy when PyPI was already established was ridiculous

### [dezsiszabi](<https://news.ycombinator.com/item?id=49987900>)

> Answer: not fast at all.

### [makaimc](<https://news.ycombinator.com/item?id=49985709>)

> 35 years on since the first public Python release and there's still so much room for improvement in its performance. These tests by Miguel are a useful quick check on that progress in 3.15 even if as he admits it's impossible to get "an objective and universal measure of the performance of a programming language".

### [DroneBetter](<https://news.ycombinator.com/item?id=49986839>)

> you should include a faster version of the fibonacci function with exponentiation by squaring
>
> def fibonacci(k):
>
> a,b=(0,1)
>
> for i in range(k.bit_length()-1,-1,-1):
>
> d=a**2
>
> c=2*a*b-d
>
> d+=b**2
>
> (a,b)=(d,c+d) if k>>i&1 else (c,d)
>
> return a
>
> see https://oeis.org/wiki/User:Natalia_L._Skirrow/linear_recurre... (warning: old and bad and in need of revision), https://github.com/sympy/sympy/pull/30452 and https://github.com/sympy/sympy/pull/30541 for details of how to make similarly fast programs for arbitrary linear-recurrent sequences.
>
> you can also encode polynomials into integers; see https://mathstodon.xyz/@peterluschny/116320199782572958 and the following prog from https://codegolf.stackexchange.com/a/279771
>
> lambda n:pow(p:=2<<n,n,p*p+~p)//p
>
> both of these would be more intensive on the arithmetic side rather than control flow
>
> also you could at least wrap the existing one in a `functools.cache`

### [klooney](<https://news.ycombinator.com/item?id=49987575>)

> I had kind of thought PyPy was dead, I'm glad to see they made it to 3.12

---

## Cite

- Page: https://zeli.app/story/49984652
- Date: 2026-10-06
- Source: blog.miguelgrinberg.com (https://blog.miguelgrinberg.com/post/how-fast-is-python-3-15)
- Hacker News: https://news.ycombinator.com/item?id=49984652

## Other languages

- zh: https://zeli.app/zh/story/49984652 · markdown: https://zeli.app/zh/story/49984652.md
- ja: https://zeli.app/ja/story/49984652 · markdown: https://zeli.app/ja/story/49984652.md
- ko: https://zeli.app/ko/story/49984652 · markdown: https://zeli.app/ko/story/49984652.md
- de: https://zeli.app/de/story/49984652 · markdown: https://zeli.app/de/story/49984652.md
- es: https://zeli.app/es/story/49984652 · markdown: https://zeli.app/es/story/49984652.md
- ru: https://zeli.app/ru/story/49984652 · markdown: https://zeli.app/ru/story/49984652.md
