# Python 3.15、JITで標準インタプリタを超える性能向上

Original title: How Fast is Python 3.15?

> Hacker News story 49984652 · language: ja · submitted 2026-10-06
> Web version: https://zeli.app/ja/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氏がPython 3.15の非公式ベンチマークを公開。単一スレッドのfiboとbubbleテストでは3.14からの改善はわずかだったが、JIT版は標準インタプリタより1.2〜1.28倍高速で、初めてJITが標準を上回った。free-threading版は3.14とほぼ同等。PyPyやNode.js、Rustとの比較も掲載。

## Key quote

> JIT in the 3.15 interpreter was faster than the standard interpreter of the same test, which was not the case in previous years.

## HN discussion (54 comments)

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

> ほんの少ししか関係ない話だけど、PyPIがすでに確立していたのにPyPyって名付けたのは馬鹿げてたよ

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

> 答え：全然速くない。

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

> Pythonが最初に一般公開されてから35年経っても、そのパフォーマンスにはまだまだ改善の余地がたくさんある。Miguelによるこれらのテストは、3.15でのその進歩を手っ取り早く確認するのに役立つ。もっとも、彼自身も認めているように「プログラミング言語のパフォーマンスを客観的かつ普遍的に測ること」は不可能なのだけれど。

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

> フィボナッチ関数の、二乗による累乗を使ったより速いバージョンを含めるべきだ
>
> 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
>
> 詳細は https://oeis.org/wiki/User:Natalia_L._Skirrow/linear_recurre... （警告：古くてひどく、改訂が必要）、https://github.com/sympy/sympy/pull/30452 と https://github.com/sympy/sympy/pull/30541 を参照。任意の線形漸化式に対して同様に速いプログラムを作る方法が書かれている。
>
> 多項式を整数にエンコードすることもできる。https://mathstodon.xyz/@peterluschny/116320199782572958 と、https://codegolf.stackexchange.com/a/279771 の以下のプログラムを参照
>
> lambda n:pow(p:=2<<n,n,p*p+~p)//p
>
> これらはどちらも、制御フローというよりは算術の側面でより負荷が大きくなるだろう
>
> あと、少なくとも既存のものは `functools.cache` でラップできる

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

> PyPyはもう死んだと思っていたけど、3.12まで到達したのは嬉しいね

---

## Cite

- Page: https://zeli.app/ja/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

- en: https://zeli.app/story/49984652 · markdown: https://zeli.app/story/49984652.md
- zh: https://zeli.app/zh/story/49984652 · markdown: https://zeli.app/zh/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
