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

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 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 Numba programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest Numba program used compared to the fastest PyPy 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
 iobench †1/3 ±
 templates †± ±
 fib50 † ±
 fibonacci?±
 n-body †13× ±
 spectral-norm †15×?±
 binary-trees61×±
 Numba used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/31/314×32×61×

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 iobench 
Numba4.864.88131,784400  37% 7% 7% 9% 61% 5% 16% 4% †
PyPy14.7314.7380,864370  0% 0% 100% 0% 0% 0% 1% 0% †
 templates 
Numba1.621.64121,232344  24% 19% 99% 23% 24% 24% 26% 19% †
PyPy2.372.4198,384307  0% 6% 94% 0% 0% 0% 1% 0% †
 fib50 
Numba1.471.48119,832165  15% 14% 8% 4% 5% 13% 10% 99% †
PyPy0.480.4877,576130  4% 100% 0% 2% 2% 0% 2% 0% †
 fibonacci 
Numba1.571.59120,220164  38% 28% 31% 98% 41% 51% 31% 52%
PyPy0.170.17?181  6% 0% 0% 0% 0% 6% 11% 100%
 n-body 
Numba42.5942.63148,1161347  30% 67% 10% 9% 37% 16% 10% 15% †
PyPy3.293.2974,8561337  0% 100% 1% 0% 1% 1% 1% 1% †
 spectral-norm 
Numba1.311.34131,484416  15% 9% 10% 8% 8% 9% 13% 99% †
PyPy0.090.09?594  0% 0% 0% 100% 18% 0% 0% 0% †
 binary-trees 
Numba357.8863.59154,632734  73% 70% 76% 94% 76% 74% 69% 75%
PyPy2.271.0491,028743  32% 67% 25% 28% 24% 28% 22% 24%
 richards 
No program
PyPy0.180.18?2423  18% 5% 100% 0% 0% 5% 5% 0%
 mandelbrot 
Numba61.518.68133,9603886  94% 91% 96% 93% 93% 98% 92% 95%
No program
 regex-dna 
No program
PyPy0.100.11?501  100% 0% 0% 0% 0% 0% 0% 0%
 reverse-complement 
No program
PyPy0.060.06?432  0% 14% 0% 0% 0% 14% 14% 100%
 pidigits 
No program
PyPy2.982.9981,732322  100% 0% 0% 0% 1% 0% 0% 0%
 pystone 
No program
PyPy0.080.09?2301  100% 10% 0% 0% 0% 20% 0% 11%
 fasta 
No program
PyPy1.751.7577,640900  2% 2% 2% 2% 100% 3% 2% 1%
 fannkuch-redux 
No program
PyPy1.680.58322,0081009  41% 19% 66% 16% 43% 68% 66% 32%
 fasta-redux 
No program
PyPy0.190.19?1115  0% 0% 5% 100% 5% 5% 0% 0%
 k-nucleotide 
No program
PyPy0.090.09?593  22% 18% 0% 100% 0% 0% 0% 0%
 jsonbench 
No program
PyPy0.900.9080,556322  0% 0% 100% 3% 1% 0% 1% 0%
 thread-ring 
No program
PyPy0.110.11?407  0% 8% 92% 0% 9% 0% 0% 8%
 meteor-contest 
No program
PyPy0.670.6780,9721485  4% 0% 1% 99% 0% 4% 0% 0%
 chameneos-redux
   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 PyPy 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 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.

 Numba : Numba JIT compiler 

Revised BSD license

  Home   Conclusions   License   Play