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 † ±
 richards †43× ±
 meteor-contest59× ±
 pidigits †78×?±
 spectral-norm †909×?±
 RustPython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)43×59×78×131×909×

† 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.041.1020,072182  100% 13% 15% 16% †
Python 30.670.689,136182  100% 9% 3% 3% †
 richards 
RustPython49.6749.7620,1282434  16% 39% 31% 49% †
Python 31.151.158,9322434  2% 10% 100% 3% †
 meteor-contest 
RustPython204.10204.5220,9601443  8% 9% 62% 31%
Python 33.333.489,0361443  2% 100% 1% 2%
 pidigits 
RustPython3.523.5220,400322  8% 12% 3% 91% †
Python 30.040.05?379  60% 100% 80% 67% †
 spectral-norm 
RustPython152.97153.6319,056498  17% 18% 71% 19% †
Python 30.170.17?394  94% 6% 6% 0% †
 fannkuch-redux 
No program
Python 312.963.4653,456894  98% 97% 98% 90%
 regex-dna 
No program
Python 30.070.07?524  57% 0% 14% 63%
 fasta-redux 
No program
Python 30.310.318881115  0% 6% 6% 97%
 chameneos-redux 
No program
Python 3331.68177.208,8881191  49% 54% 48% 51%
 iobench 
No program
Python 35.725.738,652367  38% 6% 62% 1%
 fib50 
No program
Python 33.393.408,544136  19% 6% 81% 1%
 fasta 
No program
Python 39.314.55106,3402016  65% 57% 50% 41%
 n-body 
No program
Python 345.7445.888,9841315  48% 7% 55% 2%
 templates 
No program
Python 31.141.1520,084322  2% 10% 100% 4%
 pystone 
No program
Python 30.280.281,9882303  93% 18% 10% 10%
 binary-trees 
No program
Python 33.351.0666,428741  84% 85% 78% 81%
 reverse-complement 
No program
Python 30.020.03?449  0% 0% 33% 100%
 jsonbench 
No program
Python 33.493.5112,852322  100% 7% 2% 2%
 k-nucleotide 
No program
Python 30.120.12?594  100% 8% 0% 0%
 mandelbrot 
No program
Python 378.4320.47196,0883832  98% 99% 99% 97%
 thread-ring 
No program
Python 332.5023.9413,280448  37% 35% 35% 30%
 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