vs

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

Each chart bar shows, for one unidentified benchmark, how much the fastest PyPy 3 program used compared to the fastest Python 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 PyPy 3 programs faster? Approximately.

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

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

 PyPy 3 used what fraction? used how many times more? 
Benchmark Time Memory Code
 thread-ring †1/155 ±
 n-body1/10 ±
 fib501/4 ±
 richards †1/4 ±
 meteor-contest1/3 ±
 jsonbench1/3 ±
 fannkuch-redux1/3 ±
 fibonacci1/2 ±
 fasta †1/2 ±
 chameneos-redux1/2 ±
 fasta-redux± ±
 binary-trees±±
 spectral-norm± 
 k-nucleotide †?±
 iobench ±
 reverse-complement?±
 regex-dna?±
 templates ±
 pidigits120×?±
 PyPy 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/1551/1551/31/2120×

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

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

 3 : Are the PyPy 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 PyPy 3 program are shown for comparison against measurements of the fastest Python 3 program.

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

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

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

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

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

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest PyPy 3 and Python 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.

 PyPy 3 : the new Python JIT 

 

Revised BSD license

  Home   Conclusions   License   Play