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

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
 n-body †1/12 ±
 richards †1/4 ±
 meteor-contest †1/4 ±
 fib50 †1/3 ±
 fannkuch-redux1/3 ±
 fibonacci †1/3 ±
 fasta †1/3 ±
 jsonbench †1/3 ±
 pystone †1/3 ±
 spectral-norm †1/2?
 fasta-redux †1/2 ±
 thread-ring †± ±
 chameneos-redux± ±
 k-nucleotide †?±
 iobench † ±
 binary-trees56×±
 regex-dna †?±
 reverse-complement †?±
 templates † ±
 pidigits †140×?±
 PyPy 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/121/121/31/2140×

† 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
 n-body 
PyPy 33.233.2566,3601315  0% 0% 0% 0% 0% 0% 99% 0% †
Python 338.1938.198,0921315  19% 16% 100% 13% 14% 14% 12% 12% †
 richards 
PyPy 30.190.21?2434  5% 0% 90% 0% 0% 0% 0% 5% †
Python 30.900.908,7282434  19% 18% 18% 14% 100% 13% 12% 15% †
 meteor-contest 
PyPy 30.690.7071,6721443  0% 0% 0% 0% 97% 1% 0% 0% †
Python 32.602.629,2561443  60% 13% 10% 11% 54% 12% 11% 12% †
 fib50 
PyPy 30.600.6268,848136  0% 0% 0% 97% 0% 0% 0% 0% †
Python 32.132.149,276136  5% 4% 4% 2% 5% 3% 100% 2% †
 fannkuch-redux 
PyPy 32.490.6681,2241069  43% 41% 44% 40% 81% 40% 43% 49%
Python 314.552.2012,8121069  94% 95% 94% 90% 98% 90% 93% 90%
 fibonacci 
PyPy 30.160.18?182  0% 0% 0% 0% 0% 0% 0% 89% †
Python 30.560.568,584182  12% 50% 17% 5% 54% 7% 11% 2% †
 fasta 
PyPy 31.481.5068,2161698  1% 0% 0% 1% 0% 0% 0% 99% †
Python 37.494.4412,9362016  24% 55% 29% 21% 18% 71% 16% 18% †
 jsonbench 
PyPy 30.940.9672,596322  0% 0% 0% 99% 1% 0% 0% 1% †
Python 32.642.6412,316322  100% 4% 3% 2% 4% 4% 6% 1% †
 pystone 
PyPy 30.080.10?2300  10% 0% 0% 0% 10% 0% 70% 0% †
Python 30.250.251,6162300  20% 12% 36% 12% 17% 17% 9% 100% †
 spectral-norm 
PyPy 30.080.10?594  0% 0% 0% 0% 0% 80% 0% 0% †
Python 30.160.16?394  6% 73% 17% 0% 94% 0% 7% 0% †
 fasta-redux 
PyPy 30.150.16?1115  0% 0% 94% 0% 0% 0% 0% 0% †
Python 30.250.258161115  14% 96% 0% 4% 23% 19% 17% 9% †
 thread-ring 
PyPy 362.0747.7671,152448  19% 29% 10% 34% 4% 2% 2% 1% †
Python 364.6956.0812,708448  22% 21% 22% 20% 17% 18% 17% 17% †
 chameneos-redux 
PyPy 3237.47218.5464,9321191  5% 7% 7% 6% 6% 10% 13% 12%
Python 3296.43215.338,7281191  19% 14% 14% 13% 14% 15% 14% 14%
 k-nucleotide 
PyPy 30.100.12?594  0% 0% 92% 0% 0% 0% 8% 0% †
Python 30.100.07?801  17% 14% 38% 88% 25% 12% 83% 22% †
 iobench 
PyPy 35.605.6171,932367  0% 0% 0% 0% 0% 100% 0% 0% †
Python 33.383.398,140367  51% 26% 22% 19% 76% 17% 18% 16% †
 binary-trees 
PyPy 32.810.9990,520706  30% 67% 26% 35% 31% 33% 30% 32%
Python 31.460.291,620741  69% 67% 79% 61% 68% 71% 64% 62%
 regex-dna 
PyPy 30.160.17?524  0% 0% 0% 0% 0% 0% 29% 61% †
Python 30.050.05?524  67% 20% 0% 40% 0% 0% 83% 20% †
 reverse-complement 
PyPy 30.060.07?458  0% 0% 12% 0% 86% 0% 0% 0% †
Python 30.020.02?449  33% 100% 33% 50% 0% 0% 33% 100% †
 templates 
PyPy 33.573.62104,616322  99% 0% 0% 0% 0% 0% 0% 0% †
Python 30.920.9216,376322  17% 14% 14% 13% 12% 99% 6% 13% †
 pidigits 
PyPy 32.932.9573,496322  1% 0% 0% 0% 99% 0% 0% 0% †
Python 30.020.02?379  67% 25% 33% 0% 0% 0% 33% 100% †
 mandelbrot 
No program
Python 392.9312.6961,7403852  96% 99% 98% 99% 99% 96% 98% 98%
 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