Skip to content

JIT Planning for 3.15 and 3.16 #139038

@savannahostrowski

Description

@savannahostrowski

Following a conversation at the CPython Core Dev Sprint, this is an uber issue tracking JIT performance goals and planning for 3.15 and 3.16.

The goal here is to capture our goals and the work that we believe is necessary to enable the JIT (on by default).

3.15 (May 2026)

Goals & "features"

Must Haves

  • 5% faster (geometric mean)
    • Best case: 50% faster
    • Worst case: -10% faster
  • JIT coverage (i.e., how much code is being JIT'ted): 80%
  • Free-threading supported (pre-beta)
  • Support for out-of-process profilers and debuggers (x86 Linux)

Nice to haves

  • 10% faster (geometric mean)
    • Best case: 100% faster
    • Worst case
  • JIT coverage (i.e., how much code is being JIT'ted): 90%
  • Robust documentation

How will we do this?

  • Register allocation
  • More optimizations
  • Trace recording
  • Code gen
  • LLVM 21
  • Warm up faster
  • More specialization

3.16

Goals & "features"

Must Haves

  • ~ similar debuggability and performance across Tier 1 platforms
  • 2+ maintainers in front-end, middle-end, and back-end
  • ...Anything listed in 3.15 nice to have that was not achieved (e.g. docs, better coverage, faster)

How will we do this?

  • Unboxing (int/float/other types)
  • LLVM 22

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions