Skip to content

Recognise CPython as a JIT implementation - #231

Merged
corona10 merged 2 commits into
psf:mainfrom
Fidget-Spinner:warmup-cpython-jit
Feb 7, 2026
Merged

Recognise CPython as a JIT implementation#231
corona10 merged 2 commits into
psf:mainfrom
Fidget-Spinner:warmup-cpython-jit

Conversation

@Fidget-Spinner

Copy link
Copy Markdown
Contributor

Since CPython 3.13, there has been an experimental JIT. In 3.15, the JIT now has a slight bit of warmup. While the warmup is actually a lot lower than PyPy/GraalPy, it's still there. So we should detect the CPython JIT and account for that.

@Fidget-Spinner

Copy link
Copy Markdown
Contributor Author

@Fidget-Spinner

Copy link
Copy Markdown
Contributor Author

Tested On Python 3.15a5

>>> import pyperf
>>> pyperf._utils.python_has_jit()
True

Note that JIT is a decent speedup now on pyperformance on most platforms https://doesjitgobrrr.com/run/2026-02-06

Comment thread pyperf/_utils.py Outdated

@corona10 corona10 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtms

@corona10
corona10 merged commit 8f6e7d0 into psf:main Feb 7, 2026
12 checks passed
@Fidget-Spinner
Fidget-Spinner deleted the warmup-cpython-jit branch February 7, 2026 11:22
maurycy added a commit to maurycy/pyperf that referenced this pull request Feb 8, 2026
* main:
  Prepare 2.10.0 release (psf#232)
  Recognise CPython as a JIT implementation (psf#231)
  Setup Dependabot for Github actions, bump checkout and setup-python actions (psf#229)

# Conflicts:
#	pyperf/__init__.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants