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

vs

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

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

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

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

 Nuitka used what fraction? used how many times more? 
Benchmark Time Memory Code
 pidigits †1/57 ±
 iobench1/5 ±
 binary-trees1/51/129±
 k-nucleotide †1/2?±
 fasta-redux±?±
 fannkuch-redux± ±
 fasta † 
 chameneos-redux ±
 meteor-contest ±
 jsonbench ±
 fibonacci?±
 fib50 ±
 Nuitka used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/571/571/3±

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

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

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 pidigits 
Nuitka0.030.05?379  33% 25% 60% 33% 20% 17% 80% 40% †
PyPy2.983.0078,280322  0% 0% 0% 1% 98% 0% 0% 2% †
 iobench 
Nuitka2.882.8810,716367  3% 1% 100% 0% 0% 0% 0% 1%
PyPy14.1514.1777,364370  1% 0% 0% 0% 1% 0% 100% 0%
 binary-trees 
Nuitka1.160.23716706  61% 83% 61% 58% 61% 60% 62% 62%
PyPy2.291.0692,236743  30% 29% 27% 24% 26% 67% 21% 23%
 k-nucleotide 
Nuitka0.080.06?801  25% 17% 0% 0% 17% 80% 29% 0% †
PyPy0.090.11?593  0% 0% 0% 0% 0% 0% 0% 82% †
 fasta-redux 
Nuitka0.190.19?1115  0% 0% 0% 100% 0% 0% 0% 0%
PyPy0.190.21?1115  0% 5% 0% 0% 0% 90% 0% 0%
 fannkuch-redux 
Nuitka4.050.5614,572894  93% 89% 82% 89% 96% 91% 89% 91%
PyPy1.280.4979,1761009  18% 56% 59% 4% 40% 36% 0% 56%
 fasta 
Nuitka5.582.6214,6842016  21% 32% 13% 23% 73% 7% 43% 12% †
PyPy1.731.7374,192900  100% 0% 1% 0% 0% 0% 0% 0% †
 chameneos-redux 
Nuitka322.64244.9310,6361191  11% 9% 9% 9% 7% 5% 5% 5%
PyPy190.59145.4270,1801192  4% 6% 5% 7% 9% 7% 10% 10%
 meteor-contest 
Nuitka1.511.5111,2681443  1% 2% 1% 1% 0% 100% 1% 0%
PyPy0.680.6977,2281485  0% 97% 0% 0% 0% 0% 1% 0%
 jsonbench 
Nuitka2.292.2939,896322  1% 0% 100% 2% 0% 0% 0% 0%
PyPy0.920.9476,244322  0% 0% 99% 0% 0% 1% 0% 0%
 fibonacci 
Nuitka0.500.5111,424182  4% 100% 0% 0% 0% 2% 0% 0%
PyPy0.170.19?181  5% 0% 0% 0% 0% 0% 89% 0%
 fib50 
Nuitka3.033.0310,664136  1% 0% 0% 0% 0% 100% 0% 1%
PyPy0.480.5073,844130  2% 2% 2% 2% 0% 96% 0% 0%
 spectral-norm 
No program
PyPy0.090.11?594  0% 0% 0% 0% 82% 0% 0% 0%
 richards 
No program
PyPy0.190.20?2423  95% 0% 0% 0% 0% 0% 0% 5%
 reverse-complement 
No program
PyPy0.060.06?455  0% 25% 0% 0% 0% 0% 100% 0%
 regex-dna 
No program
PyPy0.110.12?501  8% 0% 0% 0% 77% 0% 0% 8%
 pystone 
No program
PyPy0.090.11?2301  0% 17% 0% 0% 0% 80% 0% 0%
 n-body 
No program
PyPy3.243.2668,9921337  1% 99% 0% 0% 0% 0% 0% 0%
 templates 
No program
PyPy2.482.5398,024307  0% 0% 0% 0% 100% 0% 0% 0%
 thread-ring 
No program
PyPy0.110.13?407  0% 0% 7% 0% 85% 0% 0% 0%
 mandelbrot 
Nuitka35.794.7662,3003852  95% 95% 93% 99% 93% 95% 94% 97%
No program
 binary-trees-redux
   No programs

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

 4 : Are there other Nuitka programs for these benchmarks?

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

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

 5 : Are there other faster programs for these benchmarks?

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

 Nuitka : Nuitka compiler 

Revised BSD license

  Home   Conclusions   License   Play