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 †45× ±
 meteor-contest63× ±
 pidigits114×?±
 spectral-norm †1,038×?±
 RustPython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)45×63×114×216×1,038×

† 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.680.689,316182  6% 0% 100% 0% †
 richards 
RustPython49.6749.7620,1282434  16% 39% 31% 49% †
Python 31.091.109,0082434  5% 0% 0% 100% †
 meteor-contest 
RustPython204.10204.5220,9601443  8% 9% 62% 31%
Python 33.243.248,9441443  5% 1% 100% 1%
 pidigits 
RustPython3.523.5220,400322  8% 12% 3% 91%
Python 30.030.03?379  100% 0% 0% 0%
 spectral-norm 
RustPython152.97153.6319,056498  17% 18% 71% 19% †
Python 30.150.15?394  0% 0% 100% 0% †
 reverse-complement 
No program
Python 30.020.03?449  0% 100% 0% 0%
 regex-dna 
No program
Python 30.060.07?524  50% 0% 0% 56%
 n-body 
No program
Python 346.2946.328,7921315  5% 0% 100% 0%
 chameneos-redux 
No program
Python 3353.29175.808,9561191  48% 40% 47% 47%
 templates 
No program
Python 31.101.1619,872322  5% 2% 98% 0%
 iobench 
No program
Python 35.695.698,892367  5% 0% 100% 1%
 fib50 
No program
Python 33.503.508,600136  6% 1% 100% 0%
 fasta-redux 
No program
Python 30.290.291,7881115  4% 0% 3% 100%
 fasta 
No program
Python 37.574.1781,7042016  40% 27% 59% 61%
 fannkuch-redux 
No program
Python 313.173.4747,392894  97% 99% 91% 99%
 jsonbench 
No program
Python 33.363.3712,812322  5% 100% 0% 0%
 k-nucleotide 
No program
Python 30.100.08?801  38% 14% 71% 13%
 thread-ring 
No program
Python 333.7224.1413,148448  23% 33% 26% 44%
 binary-trees 
No program
Python 33.200.9657,316741  89% 84% 81% 88%
 mandelbrot
   No programs
 binary-trees-redux
   No programs
 pystone
   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