Python Interpreters Benchmarks
x64 ArchLinux : Intel® i5-7200U®

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 Nuitka 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 Nuitka 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-ring †1/149 ±
 n-body1/8 ±
 fib50 †1/6 ±
 jsonbench1/3 ±
 meteor-contest †1/3 ±
 richards1/3 ±
 fibonacci1/3 ±
 fannkuch-redux1/2 ±
 fasta1/2 1/2
 chameneos-redux1/2 ±
 pystone †±?±
 fasta-redux± ±
 spectral-norm±?
 binary-trees±
 k-nucleotide †?±
 regex-dna?±
 reverse-complement †?1/2
 templates ±
 iobench ±
 pidigits83×?±
 PyPy used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/1491/1491/31/283×

† 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 Nuitka program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 thread-ring 
PyPy0.140.16?407  6% 0% 0% 88% †
Nuitka33.5924.3014,372448  31% 36% 23% 35% †
 n-body 
PyPy4.684.7874,2721337  100% 1% 1% 1%
Nuitka36.3336.369,5121315  6% 100% 1% 1%
 fib50 
PyPy0.720.7377,680130  46% 15% 69% 17% †
Nuitka4.374.389,660136  1% 2% 100% 3% †
 jsonbench 
PyPy1.151.1781,428322  8% 92% 3% 3%
Nuitka3.473.4813,564322  5% 1% 100% 2%
 meteor-contest 
PyPy0.910.9382,5641485  4% 1% 1% 98% †
Nuitka2.732.7410,5761443  26% 17% 100% 20% †
 richards 
PyPy0.250.251,0322423  100% 4% 4% 0%
Nuitka0.710.759,5562434  100% 0% 0% 0%
 fibonacci 
PyPy0.260.281,012181  89% 10% 7% 0%
Nuitka0.680.7110,488182  100% 3% 0% 0%
 fannkuch-redux 
PyPy3.581.2582,0641009  82% 85% 82% 84%
Nuitka10.122.6913,624894  98% 93% 98% 94%
 fasta 
PyPy2.532.5578,112900  8% 6% 6% 99%
Nuitka4.164.169,7601698  5% 1% 100% 2%
 chameneos-redux 
PyPy181.78104.9574,7161192  48% 44% 44% 46%
Nuitka340.93170.2010,5161191  49% 45% 46% 45%
 pystone 
PyPy0.110.13?2301  38% 46% 0% 8% †
Nuitka0.180.19?2300  100% 6% 15% 15% †
 fasta-redux 
PyPy0.250.271,0001115  4% 92% 7% 0%
Nuitka0.250.251,5041115  12% 100% 8% 0%
 spectral-norm 
PyPy0.190.20?594  100% 5% 0% 5%
Nuitka0.140.15?394  100% 0% 0% 0%
 binary-trees 
PyPy1.801.0889,372743  45% 52% 51% 56%
Nuitka2.300.6916,612741  78% 83% 93% 82%
 k-nucleotide 
PyPy0.110.13?593  92% 0% 7% 0% †
Nuitka0.090.07?801  17% 17% 0% 88% †
 regex-dna 
PyPy0.140.14?501  0% 0% 93% 0%
Nuitka0.060.06?524  0% 100% 0% 0%
 reverse-complement 
PyPy0.080.08?431  0% 0% 0% 100% †
Nuitka0.030.03?878  33% 100% 0% 0% †
 templates 
PyPy2.762.8297,820307  3% 4% 95% 2%
Nuitka1.021.0716,724322  100% 1% 0% 0%
 iobench 
PyPy35.2335.4584,780370  32% 19% 1% 52%
Nuitka5.635.649,452367  6% 1% 100% 2%
 pidigits 
PyPy3.053.0885,908322  4% 1% 1% 99%
Nuitka0.040.04?379  0% 0% 100% 0%
 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 Nuitka 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 Nuitka 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