vs

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

Each chart bar shows, for one unidentified benchmark, how much the fastest Numba 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 Numba programs faster? Approximately.

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

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

 Numba used what fraction? used how many times more? 
Benchmark Time Memory Code
 spectral-norm †1/2 ±
 fibonacci ±
 binary-trees±±
 Numba used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/2±

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

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

 3 : Are the Numba 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 Numba 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
 spectral-norm 
Numba1.181.1972,848663  99% 3% 3% 2% †
Cython9.752.6753,796575  95% 94% 96% 94% †
 fibonacci 
Numba1.341.3566,000208  3% 99% 0% 0%
Cython0.840.849,312184  4% 100% 1% 1%
 binary-trees 
Numba7.001.9869,908702  92% 88% 91% 88%
Cython3.270.9865,912706  94% 83% 86% 84%
 n-body 
No program
Cython33.4233.438,1441315  7% 58% 49% 5%
 chameneos-redux 
No program
Cython171.6094.138,2561203  39% 36% 48% 50%
 fasta 
No program
Cython12.2412.268,352904  59% 12% 54% 13%
 fasta-redux 
No program
Cython0.390.401,6681115  0% 7% 0% 100%
 fannkuch-redux 
No program
Cython25.526.7952,6561271  97% 94% 95% 98%
 fib50 
No program
Cython1.321.328,652156  15% 100% 6% 4%
 templates 
No program
Cython1.591.6015,548328  3% 4% 2% 100%
 pystone 
No program
Cython0.250.251,6202288  8% 0% 100% 0%
 meteor-contest 
No program
Cython5.295.299,4081334  6% 100% 7% 4%
 reverse-complement 
No program
Cython0.030.03?449  0% 25% 100% 0%
 pidigits 
No program
Cython0.030.05?379  0% 57% 50% 0%
 iobench 
No program
Cython0.030.03?366  25% 100% 100% 50%
 regex-dna 
No program
Cython0.060.06?524  0% 100% 0% 0%
 jsonbench 
No program
Cython5.495.5011,976323  3% 2% 100% 1%
 richards 
No program
Cython0.950.958,0882467  100% 3% 4% 0%
 k-nucleotide 
No program
Cython0.170.17?594  35% 94% 18% 21%
 mandelbrot 
No program
Cython100.3226.92185,5443832  98% 98% 97% 99%
 thread-ring 
No program
Cython0.370.381,624407  0% 8% 100% 5%
 binary-trees-redux
   No programs

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

 4 : Are there other Numba programs for these benchmarks?

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

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

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Numba 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.

 Numba : Numba JIT compiler 

 

Revised BSD license

  Home   Conclusions   License   Play