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/427 ±
 spectral-norm †1/5 ±
 jsonbench †1/2 ±
 meteor-contest †1/2 ±
 chameneos-redux± ±
 fasta †± 1/2
 fannkuch-redux± ±
 pidigits± ±
 fasta-redux †?±
 k-nucleotide?±
 regex-dna †?±
 binary-trees28×±
 reverse-complement?1/2
 PyPy used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/4271/4271/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.13?407  0% 7% 0% 8% 0% 0% 0% 86%
Pyston58.4354.2412,920448  11% 12% 13% 15% 12% 9% 8% 9%
 spectral-norm 
PyPy0.090.12?594  0% 82% 0% 0% 8% 8% 8% 0% †
Pyston2.250.6013,820595  49% 33% 59% 51% 63% 38% 64% 73% †
 jsonbench 
PyPy0.940.9675,732322  6% 2% 99% 8% 2% 2% 6% 4% †
Pyston1.861.8712,372322  2% 2% 5% 2% 99% 3% 4% 2% †
 meteor-contest 
PyPy0.730.7576,0601579  7% 7% 4% 3% 3% 99% 7% 1% †
Pyston1.201.209,4881485  50% 3% 3% 2% 53% 3% 3% 2% †
 chameneos-redux 
PyPy199.24142.7670,2801192  11% 11% 11% 9% 10% 11% 10% 12%
Pyston234.46172.828,5841191  12% 12% 11% 12% 10% 9% 8% 9%
 fasta 
PyPy1.801.8374,152900  85% 5% 1% 3% 14% 4% 4% 2% †
Pyston2.052.068,6601698  5% 6% 5% 2% 1% 100% 2% 1% †
 fannkuch-redux 
PyPy1.530.6080,2281009  59% 56% 15% 5% 58% 25% 8% 59%
Pyston4.400.6213,3681069  93% 92% 92% 90% 87% 92% 90% 94%
 pidigits 
PyPy3.013.0378,040322  5% 5% 4% 3% 100% 4% 3% 1%
Pyston2.062.079,740322  5% 4% 1% 1% 3% 100% 4% 5%
 fasta-redux 
PyPy0.210.232,9681115  4% 8% 5% 0% 19% 67% 9% 4% †
Pyston0.140.14?1115  13% 0% 0% 7% 0% 0% 100% 7% †
 k-nucleotide 
PyPy0.090.11?593  9% 0% 0% 83% 0% 0% 0% 0%
Pyston0.080.05?801  20% 0% 80% 17% 0% 0% 0% 0%
 regex-dna 
PyPy0.110.12?501  0% 90% 0% 0% 0% 0% 0% 0% †
Pyston0.090.05?612  60% 20% 20% 20% 0% 20% 20% 33% †
 binary-trees 
PyPy2.321.0590,520743  37% 34% 33% 26% 31% 37% 44% 51%
Pyston1.240.253,220743  62% 60% 65% 83% 67% 65% 64% 67%
 reverse-complement 
PyPy0.060.06?432  0% 100% 0% 0% 0% 14% 0% 0%
Pyston0.010.01?878  0% 0% 0% 0% 0% 0% 50% 0%
 templates 
PyPy2.632.6996,864307  6% 97% 3% 2% 3% 3% 4% 6%
No program
 richards 
PyPy0.190.21?2423  90% 5% 0% 0% 5% 0% 5% 9%
No program
 pystone 
PyPy0.090.09?2301  0% 100% 0% 0% 0% 0% 0% 0%
No program
 n-body 
PyPy3.283.3069,6601337  5% 2% 9% 2% 5% 2% 1% 100%
No program
 iobench 
PyPy12.1812.2477,048370  38% 4% 3% 3% 67% 4% 3% 3%
No program
 fibonacci 
PyPy0.220.241,032181  8% 0% 0% 0% 92% 4% 4% 0%
No program
 fib50 
PyPy0.490.5073,272130  4% 4% 2% 2% 0% 6% 96% 4%
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