vs

 1 : Are the Python 3 programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest Python 3 program used compared to the fastest PyPy 3 program.

(Memory use is only compared for tasks that require memory to be allocated.)


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

 2 : Are the Python 3 programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest Python 3 program used compared to the fastest PyPy 3 program.

(Memory use is only compared for tasks that require memory to be allocated.)

 Python 3 used what fraction? used how many times more? 
Benchmark Time Memory Code
 pidigits1/120 ±
 templates1/4 ±
 regex-dna1/4 ±
 reverse-complement1/3?±
 iobench1/2 ±
 k-nucleotide †1/2?±
 spectral-norm± 1/2
 binary-trees±1/2±
 fasta-redux± ±
 chameneos-redux ±
 fasta † ±
 fibonacci ±
 fannkuch-redux ±
 jsonbench ±
 meteor-contest ±
 richards † ±
 fib50 ±
 n-body10× ±
 thread-ring †155×?±
 Python 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/1201/1201/2155×

† possible mismatch - one-core program compared to multi-core program.

± read the measurements and then read the program source code.

 3 : Are the Python 3 programs faster? Measurements.

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

For each named benchmark, measurements of the fastest Python 3 program are shown for comparison against measurements of the fastest PyPy 3 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 pidigits 
Python 30.030.03?379  0% 25% 0% 100%
PyPy 33.543.7379,340322  70% 97% 68% 39%
 templates 
Python 31.031.0419,748322  10% 3% 5% 100%
PyPy 34.134.16112,664322  2% 10% 100% 1%
 regex-dna 
Python 30.060.06?524  100% 0% 0% 0%
PyPy 30.220.221,116524  5% 9% 5% 100%
 reverse-complement 
Python 30.020.03?449  0% 0% 0% 100%
PyPy 30.080.09?458  0% 0% 100% 0%
 iobench 
Python 35.405.648,808367  98% 0% 2% 0%
PyPy 311.1611.2377,660367  1% 13% 1% 92%
 k-nucleotide 
Python 30.110.08?801  22% 38% 22% 88% †
PyPy 30.140.14?594  0% 7% 7% 100% †
 spectral-norm 
Python 30.200.211,792394  100% 5% 5% 10%
PyPy 30.200.211,140594  5% 100% 5% 0%
 binary-trees 
Python 33.341.1156,280741  84% 93% 91% 89%
PyPy 32.061.07139,660741  76% 41% 38% 49%
 fasta-redux 
Python 30.260.261,9321115  4% 100% 0% 0%
PyPy 30.230.231,1401115  0% 5% 100% 4%
 chameneos-redux 
Python 3345.87171.998,7881191  48% 41% 46% 46%
PyPy 3185.5097.8267,6121191  43% 50% 38% 47%
 fasta 
Python 37.814.20104,0802016  67% 78% 28% 18% †
PyPy 31.901.9269,7521698  52% 6% 48% 2% †
 fibonacci 
Python 30.680.689,376182  4% 0% 100% 0%
PyPy 30.270.271,020182  0% 4% 0% 100%
 fannkuch-redux 
Python 313.273.4847,728894  98% 95% 98% 96%
PyPy 33.261.3380,5961271  55% 58% 55% 88%
 jsonbench 
Python 33.313.3111,908322  5% 0% 1% 100%
PyPy 31.151.1776,476322  1% 7% 98% 3%
 meteor-contest 
Python 33.233.238,9041443  6% 100% 0% 0%
PyPy 30.890.9475,9801443  1% 99% 2% 2%
 richards 
Python 31.101.109,0002434  12% 4% 5% 100% †
PyPy 30.280.281,1402434  0% 7% 96% 4% †
 fib50 
Python 33.353.368,392136  5% 0% 0% 100%
PyPy 30.790.7972,656136  100% 5% 1% 3%
 n-body 
Python 346.5648.708,8721315  100% 1% 0% 1%
PyPy 34.604.8268,9401315  3% 99% 5% 3%
 thread-ring 
Python 334.0024.8313,240448  33% 35% 23% 39% †
PyPy 30.160.16?407  100% 6% 0% 0% †
 pystone 
No program
PyPy 30.120.14?2303  7% 80% 0% 0%
 mandelbrot
   No programs
 binary-trees-redux
   No programs

† possible mismatch - one-core program compared to multi-core program.

 4 : Are there other Python 3 programs for these benchmarks?

Remember - those are just the fastest Python 3 and PyPy 3 programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Python 3.

Maybe one of those other Python 3 programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Python 3 and PyPy 3 programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Python 3 : the new Python 

Python 3.3.1 (default, Apr 11 2013, 12:45:45)
[GCC 4.7.2] on linux

"3.x is the newest branch of Python and the intended future of the language."

"Van Rossum: Python is not too slow"

Home Page: Python 3.3.1 was released on April 7th, 2013.

Revised BSD license

  Home   Conclusions   License   Play