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
 templates †± ±
 fib50 ±
 fibonacci ±
 n-body ±
 iobench195×?±
 Numba used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±10×195×

† 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
 templates 
Numba1.461.4677,320335  1% 0% 0% 99% †
Cython1.221.2319,804328  25% 18% 99% 17% †
 fib50 
Numba1.341.3473,180152  0% 1% 0% 100%
Cython0.780.788,844159  9% 100% 4% 5%
 fibonacci 
Numba1.201.2074,964160  0% 1% 0% 100%
Cython0.670.679,364184  6% 4% 100% 4%
 n-body 
Numba58.4358.4497,4921333  0% 100% 0% 0%
Cython12.0412.068,6001392  8% 3% 100% 3%
 iobench 
Numba4.884.8880,276384  0% 0% 100% 0%
Cython0.020.03?366  75% 0% 33% 0%
 pidigits 
No program
Cython0.030.03?349  33% 0% 75% 0%
 binary-trees 
Numba3.931.1673,772702  85% 91% 83% 83%
No program
 regex-dna 
No program
Cython0.050.06?524  50% 40% 100% 33%
 fasta-redux 
No program
Cython0.170.17?1169  6% 100% 0% 6%
 richards 
No program
Cython0.740.748,6002467  8% 3% 4% 100%
 chameneos-redux 
No program
Cython211.34114.258,5441203  49% 47% 45% 45%
 jsonbench 
No program
Cython3.623.6311,460323  8% 3% 98% 3%
 pystone 
No program
Cython0.090.09?2402  11% 100% 11% 0%
 k-nucleotide 
No program
Cython0.100.10?618  10% 100% 11% 9%
 reverse-complement 
No program
Cython0.020.02?449  0% 0% 100% 0%
 mandelbrot 
Numba80.0020.42100,5523865  99% 97% 97% 99%
No program
 spectral-norm 
Numba0.920.9284,664663  0% 3% 49% 48%
No program
 meteor-contest 
No program
Cython3.763.7711,2041334  13% 100% 9% 13%
 thread-ring 
No program
Cython0.280.281,960419  28% 0% 76% 3%
 fannkuch-redux
   No programs
 fasta
   No programs
 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