Skip to main content

PyPy

A fast, compliant alternative implementation of Python

Download PyPy

What is PyPy ?

Documentation (external link)

PyPy logo

On average, PyPy is 4.2 times faster than CPython

PyPy vs. Python speed comparison graph"

PyPy (with JIT) benchmark times normalized to CPython. Smaller is better. Based on the geometric average of all benchmarks

"If you want your code to run faster,
you should probably just use PyPy."
-- Guido van Rossum (creator of Python)

Advantages and distinct Features

  • Speed: thanks to its Just-in-Time compiler, Python programs often run faster on PyPy. (What is a JIT compiler?)

  • Memory usage: memory-hungry Python programs (several hundreds of MBs or more) might end up taking less space than they do in CPython.

  • Compatibility: PyPy is highly compatible with existing python code. It supports cffi, cppyy, and can run popular python libraries like twisted, and django. It can also run NumPy, Scikit-learn and more via a c-extension compatibility layer.

  • Stackless: PyPy comes by default with support for stackless mode, providing micro-threads for massive concurrency.

  • As well as other features.