Newer
Older
<!DOCTYPE html>
<html prefix="
og: http://ogp.me/ns# article: http://ogp.me/ns/article#
" vocab="http://ogp.me/ns" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PyPy</title>
<link href="assets/css/rst_base.css" rel="stylesheet" type="text/css">
<link href="assets/css/nikola_rst.css" rel="stylesheet" type="text/css">
<link href="assets/css/code.css" rel="stylesheet" type="text/css">
<link href="assets/css/theme.css" rel="stylesheet" type="text/css">
<link href="assets/css/styles.css" rel="stylesheet" type="text/css">
<meta name="theme-color" content="#5670d4">
<meta name="generator" content="Nikola (getnikola.com)">
<link rel="alternate" type="application/rss+xml" title="RSS" hreflang="en" href="rss.xml">
<link rel="canonical" href="https://www.pypy.org/">
<link rel="icon" href="favicon2.ico" sizes="16x16">
<link rel="icon" href="favicon32x32.ico" sizes="32x32">
<!--[if lt IE 9]><script src="assets/js/html5shiv-printshiv.min.js"></script><![endif]--><link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<meta name="author" content="The PyPy Team">
<meta property="og:site_name" content="PyPy">
<meta property="og:title" content="PyPy">
<meta property="og:url" content="https://www.pypy.org/">
<meta property="og:description" content="A fast, compliant alternative implementation of Python
Get Started : Download and install
What is PyPy : Features
Documentation (external link)
On average, PyPy is 4.4 times faster than CPython
PyP">
<meta property="og:type" content="article">
<meta property="article:published_time" content="2019-12-28T16:14:02Z">
</head>
<body>
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
<div id="container">
<header id="header"><!-- Adapted from https://www.taniarascia.com/responsive-dropdown-navigation-bar --><section class="navigation"><div class="nav-container">
<div class="brand">
<a href="#">
<image id="toplogo" src="images/pypy-logo.svg" width="75px;" alt="PyPy/"></image></a>
<li>
<a href="#!">Features</a>
<ul class="nav-dropdown">
<li> <a href="features.html">What is PyPy?</a> </li>
<li> <a href="compat.html">Compatibility</a> </li>
<li> <a href="performance.html">Performance</a> </li>
</ul>
</li>
<li> <a href="download.html">Download</a> </li>
<li> <a href="http://doc.pypy.org">Dev Documentation</a> </li>
<li> <a href="http://morepypy.blogspot.com">Blog</a> </li>
<li>
<a href="#!">About</a>
<ul class="nav-dropdown">
<li> <a href="people.html">People</a> </li>
<li> <a href="howtohelp.html">How To Help?</a> </li>
<li> <a href="contact.html">Contact</a> </li>
</ul>
</li>
</ul></nav><div class="nav-mobile">
<a id="nav-toggle" href="#!"> <span></span></a>
</div>
</div>
</section></header><main id="content"><article class="post-text storypage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h1 class="p-name entry-title" itemprop="headline name"><a href="." class="u-url">PyPy</a></h1>
</header><div class="e-content entry-content" itemprop="articleBody text">
<div class="column pb-4">
<img alt="PyPy logo" src="images/pypy-logo.svg" style="width: 350px;"><p>A <a class="reference external" href="http://speed.pypy.org/">fast</a>, <a class="reference external" href="compat.html">compliant</a> alternative implementation of <a class="reference external" href="http://python.org/">Python</a></p>
<a id="download" href="download.html">
<img src="images/download.svg">
Download PyPy
</a>
<p class="button"><a class="reference external" href="features.html">What is PyPy</a> : Features</p>
<p class="button"><a class="reference external" href="https://doc.pypy.org">Documentation</a> (external link)</p>
</div>
<div class="column pb-4">
<p class="small">On average, PyPy is <strong>4.4 times faster</strong> than CPython</p>
<div class="text-sm figure">
<img alt='PyPy vs. Python speed comparison graph"' src="images/pypy_speed_graph.png"><p class="caption">PyPy trunk (with JIT) benchmark times normalized to CPython. Smaller is
better. Based on the geometric average of all benchmarks</p>
</div>
</div>
</div>
<pre class="literal-block">"If you want your code to run faster,
you should probably just use PyPy."
-- Guido van Rossum (creator of Python)</pre>
<p><strong>Advantages and distinct Features</strong></p>
<ul class="simple">
<li><p><strong>Speed:</strong> thanks to its Just-in-Time compiler, Python programs
often run <a class="reference external" href="http://speed.pypy.org/">faster</a> on PyPy. <a class="reference external" href="http://en.wikipedia.org/wiki/Just-in-time_compilation">(What is a JIT compiler?)</a></p></li>
<li><p><strong>Memory usage:</strong> memory-hungry Python programs (several hundreds of
MBs or more) might end up taking <a class="reference external" href="http://morepypy.blogspot.com/2009/10/gc-improvements.html">less space</a> than they do in CPython.</p></li>
<li><p><strong>Compatibility:</strong> PyPy is <a class="reference external" href="compat.html">highly compatible</a> with existing python code.
It supports <a class="reference external" href="https://cffi.readthedocs.org">cffi</a>, <a class="reference external" href="https://cppyy.readthedocs.org">cppyy</a>, and can run popular python libraries like
<a class="reference external" href="https://twistedmatrix.com/">twisted</a> and <a class="reference external" href="https://www.djangoproject.com/">django</a>.</p></li>
<li><p><strong>Stackless:</strong> PyPy comes by default with support for <a class="reference external" href="features.html#stackless">stackless mode</a>,
providing micro-threads for massive concurrency.</p></li>
<li><p>As well as other <a class="reference external" href="features.html">features</a>.</p></li>
</ul>
</div>
</div>
</article></main><footer id="footer"><p>
</p>
<div class="myfooter">
<div>
<img src="images/pypy-logo-nav-grey.png" alt="PyPy Logo">
</div>
<div class="logotext">
Contents © 2020 <a href="mailto:pypy-dev@pypy.org">The PyPy Team</a>
Powered by <a href="https://getnikola.com" rel="nofollow">Nikola</a>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js" crossorigin="anonymous"></script><script src="assets/js/styles.js"></script>