Python Interpreters Benchmarks
x64 ArchLinux : Intel® i5-7200U®

vs

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

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

Each table row shows, for one named benchmark, how much the fastest RustPython program used compared to the fastest Python 3 program.

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

 RustPython used what fraction? used how many times more? 
Benchmark Time Memory Code
 fibonacci ±
 pystone †43× ±
 richards54× ±
 meteor-contest77× ±
 pidigits †126×?±
 spectral-norm †955×?±
 RustPython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)43×66×126×252×955×

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

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

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fibonacci 
RustPython1.031.0320,024182  6% 100% 1% 1%
Python 30.680.689,456182  8% 97% 4% 1%
 pystone 
RustPython11.6811.7018,8202300  8% 4% 5% 100% †
Python 30.270.271,6642300  100% 17% 8% 8% †
 richards 
RustPython47.6347.6920,2042434  6% 46% 56% 1%
Python 30.880.889,0682434  8% 100% 2% 1%
 meteor-contest 
RustPython233.77234.0420,6521540  7% 3% 2% 100%
Python 33.043.049,5081443  6% 1% 1% 100%
 pidigits 
RustPython3.503.6620,440322  100% 1% 2% 1% †
Python 30.030.03?379  0% 25% 100% 0% †
 spectral-norm 
RustPython149.75149.9318,840498  6% 1% 100% 1% †
Python 30.150.16?394  6% 56% 17% 69% †
 k-nucleotide 
No program
Python 30.100.07?801  43% 100% 29% 0%
 reverse-complement 
No program
Python 30.020.02?449  33% 0% 0% 100%
 fannkuch-redux 
No program
Python 311.993.1912,420894  98% 94% 96% 96%
 fasta 
No program
Python 37.304.0812,8322016  44% 58% 54% 34%
 regex-dna 
No program
Python 30.050.05?524  0% 0% 100% 0%
 n-body 
No program
Python 340.0140.049,0601315  6% 100% 1% 1%
 fasta-redux 
No program
Python 30.280.281,6881115  7% 97% 7% 7%
 chameneos-redux 
No program
Python 3340.10171.338,6801191  49% 44% 46% 43%
 templates 
No program
Python 30.960.9716,192322  5% 2% 100% 5%
 jsonbench 
No program
Python 33.183.1812,528322  7% 1% 2% 99%
 iobench 
No program
Python 35.405.418,888367  71% 5% 32% 100%
 fib50 
No program
Python 33.253.258,476136  6% 2% 100% 1%
 thread-ring 
No program
Python 333.8824.7313,388448  35% 31% 25% 33%
 binary-trees 
No program
Python 32.980.9015,752741  91% 83% 82% 82%
 mandelbrot
   No programs
 binary-trees-redux
   No programs

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

 4 : Are there other RustPython programs for these benchmarks?

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

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

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest RustPython and Python 3 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.

 RustPython : RustPython 

 

Revised BSD license

  Home   Conclusions   License   Play