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 Cython 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 Cython 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
 meteor-contest1/2 ±
 k-nucleotide †±?±
 templates± ±
 jsonbench± ±
 richards †± ±
 chameneos-redux± ±
 regex-dna±?±
 fasta †± 
 pidigits±?±
 reverse-complement †?±
 fasta-redux?±
 pystone?±
 n-body ±
 fib50 † ±
 thread-ring162× ±
 iobench177×?±
 Nuitka used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/2±±177×

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 meteor-contest 
Nuitka1.361.3611,2361443  1% 100% 1% 1% 1% 0% 0% 0%
Cython2.352.3511,2281334  0% 0% 0% 0% 0% 0% 100% 0%
 k-nucleotide 
Nuitka0.080.06?801  29% 17% 17% 0% 0% 83% 17% 14% †
Cython0.070.07?618  0% 0% 0% 100% 12% 0% 0% 0% †
 templates 
Nuitka0.630.6319,096322  3% 5% 2% 0% 0% 0% 0% 100%
Cython0.640.6616,780328  0% 0% 100% 0% 0% 0% 0% 1%
 jsonbench 
Nuitka2.182.1814,864322  100% 0% 0% 0% 0% 0% 0% 1%
Cython2.142.1438,300323  0% 0% 0% 0% 0% 0% 100% 0%
 richards 
Nuitka0.560.5610,7762434  84% 0% 4% 0% 0% 100% 0% 0% †
Cython0.520.538,2722467  0% 0% 2% 0% 100% 2% 0% 0% †
 chameneos-redux 
Nuitka173.82252.8816,6921191  8% 9% 7% 7% 7% 6% 6% 6%
Cython265.20221.398,2321203  6% 9% 7% 6% 8% 7% 10% 8%
 regex-dna 
Nuitka0.040.05?524  100% 0% 0% 0% 0% 17% 0% 0%
Cython0.040.04?524  0% 20% 0% 0% 100% 0% 0% 0%
 fasta 
Nuitka5.452.4564,8082016  66% 23% 9% 2% 37% 5% 24% 61% †
Cython2.102.108,772945  1% 0% 0% 0% 0% 100% 0% 0% †
 pidigits 
Nuitka0.030.03?379  0% 100% 0% 0% 0% 0% 0% 0%
Cython0.020.02?349  0% 0% 100% 0% 0% 0% 0% 0%
 reverse-complement 
Nuitka0.030.03?458  0% 0% 100% 0% 25% 0% 0% 0% †
Cython0.020.02?458  0% 0% 0% 100% 0% 0% 0% 0% †
 fasta-redux 
Nuitka0.190.19?1115  14% 5% 0% 0% 100% 0% 0% 0%
Cython0.110.11?1169  0% 100% 0% 0% 0% 0% 0% 0%
 pystone 
Nuitka0.140.14?2300  0% 100% 0% 0% 0% 0% 0% 0%
Cython0.060.07?2401  0% 100% 0% 0% 0% 0% 0% 0%
 n-body 
Nuitka27.7027.7110,5561315  0% 100% 0% 0% 0% 0% 0% 0%
Cython8.488.488,2841392  0% 0% 0% 1% 0% 1% 0% 100%
 fib50 
Nuitka3.374.0510,472136  68% 100% 67% 66% 67% 66% 67% 66% †
Cython0.500.508,220159  100% 0% 0% 0% 0% 0% 0% 0% †
 thread-ring 
Nuitka19.4237.9513,232448  9% 9% 6% 9% 5% 4% 3% 4%
Cython0.230.231,896419  0% 0% 100% 0% 0% 0% 0% 0%
 iobench 
Nuitka3.013.0111,052367  1% 0% 0% 1% 0% 0% 100% 0%
Cython0.020.02?366  0% 0% 0% 0% 0% 0% 100% 0%
 spectral-norm 
Nuitka0.100.12?394  0% 100% 0% 0% 0% 0% 8% 0%
No program
 fannkuch-redux 
Nuitka4.280.5996,0161069  92% 97% 90% 90% 93% 90% 90% 84%
No program
 fibonacci 
No program
Cython0.500.509,412184  0% 100% 0% 0% 2% 0% 2% 0%
 mandelbrot 
Nuitka34.044.45301,3203852  96% 97% 94% 95% 97% 98% 95% 95%
No program
 binary-trees 
Nuitka1.010.21?741  52% 53% 81% 65% 62% 55% 64% 62%
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 Cython 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 Cython 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