Python Interpreters Benchmarks
x64 ArchLinux : AMD® Ryzen 7 4700U®

vs

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

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

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

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

 PyPy used what fraction? used how many times more? 
Benchmark Time Memory Code
 thread-ring1/386 ±
 spectral-norm †1/4 ±
 jsonbench1/2 ±
 meteor-contest1/2 ±
 fasta± 1/2
 fannkuch-redux± ±
 pidigits± ±
 fasta-redux±?±
 k-nucleotide?±
 regex-dna †?±
 reverse-complement?1/2
 binary-trees?±
 PyPy used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/3861/3861/2±

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

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

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 thread-ring 
PyPy0.110.11?407  0% 8% 92% 0% 9% 0% 0% 8%
Pyston23.2043.6610,748448  17% 10% 7% 5% 7% 6% 7% 7%
 spectral-norm 
PyPy0.090.09?594  0% 0% 0% 100% 18% 0% 0% 0% †
Pyston1.400.3943,572595  55% 68% 57% 37% 37% 37% 37% 39% †
 jsonbench 
PyPy0.900.9080,556322  0% 0% 100% 3% 1% 0% 1% 0%
Pyston1.791.7911,900322  1% 1% 1% 1% 2% 1% 100% 2%
 meteor-contest 
PyPy0.670.6780,9721485  4% 0% 1% 99% 0% 4% 0% 0%
Pyston1.231.238,8681485  2% 2% 1% 0% 2% 1% 0% 100%
 fasta 
PyPy1.751.7577,640900  2% 2% 2% 2% 100% 3% 2% 1%
Pyston2.012.048,1401698  2% 1% 0% 0% 100% 1% 0% 1%
 fannkuch-redux 
PyPy1.680.58322,0081009  41% 19% 66% 16% 43% 68% 66% 32%
Pyston3.220.4595,3041069  91% 98% 91% 91% 85% 91% 91% 93%
 pidigits 
PyPy2.982.9981,732322  100% 0% 0% 0% 1% 0% 0% 0%
Pyston2.072.079,304322  1% 100% 0% 0% 0% 0% 0% 1%
 fasta-redux 
PyPy0.190.19?1115  0% 0% 5% 100% 5% 5% 0% 0%
Pyston0.130.13?1115  0% 100% 8% 0% 0% 0% 0% 0%
 k-nucleotide 
PyPy0.090.09?593  22% 18% 0% 100% 0% 0% 0% 0%
Pyston0.070.05?801  0% 20% 0% 100% 20% 0% 17% 20%
 regex-dna 
PyPy0.100.11?501  100% 0% 0% 0% 0% 0% 0% 0% †
Pyston0.080.05?612  40% 50% 20% 0% 0% 40% 0% 25% †
 reverse-complement 
PyPy0.060.06?432  0% 14% 0% 0% 0% 14% 14% 100%
Pyston0.010.01?878  0% 50% 0% 0% 0% 0% 100% 0%
 binary-trees 
PyPy2.271.0491,028743  32% 67% 25% 28% 24% 28% 22% 24%
Pyston0.750.16?741  61% 81% 62% 50% 65% 59% 62% 61%
 templates 
PyPy2.372.4198,384307  0% 6% 94% 0% 0% 0% 1% 0%
No program
 richards 
PyPy0.180.18?2423  18% 5% 100% 0% 0% 5% 5% 0%
No program
 pystone 
PyPy0.080.09?2301  100% 10% 0% 0% 0% 20% 0% 11%
No program
 n-body 
PyPy3.293.2974,8561337  0% 100% 1% 0% 1% 1% 1% 1%
No program
 chameneos-redux 
No program
Pyston151.46230.9814,3161191  9% 6% 6% 6% 8% 8% 7% 8%
 iobench 
PyPy14.7314.7380,864370  0% 0% 100% 0% 0% 0% 1% 0%
No program
 fibonacci 
PyPy0.170.17?181  6% 0% 0% 0% 0% 6% 11% 100%
No program
 fib50 
PyPy0.480.4877,576130  4% 100% 0% 2% 2% 0% 2% 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 programs for these benchmarks?

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

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

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest PyPy and Pyston 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 : the old PyPy 

Revised BSD license

  Home   Conclusions   License   Play