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

† 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,376182  4% 0% 100% 0% †
 richards 
RustPython49.6749.7620,1282434  16% 39% 31% 49%
Python 31.101.109,0002434  12% 4% 5% 100%
 meteor-contest 
RustPython204.10204.5220,9601443  8% 9% 62% 31%
Python 33.243.259,0041443  5% 34% 1% 66%
 pidigits 
RustPython3.523.5220,400322  8% 12% 3% 91% †
Python 30.030.03?379  0% 25% 0% 100% †
 spectral-norm 
RustPython152.97153.6319,056498  17% 18% 71% 19% †
Python 30.200.20?394  5% 0% 0% 100% †
 n-body 
No program
Python 347.3448.748,8801315  67% 28% 6% 5%
 fib50 
No program
Python 33.373.378,432136  5% 95% 0% 5%
 fasta-redux 
No program
Python 30.290.291,8201115  4% 0% 100% 0%
 regex-dna 
No program
Python 30.060.06?524  100% 17% 14% 0%
 fasta 
No program
Python 37.844.25101,9282016  37% 32% 60% 62%
 fannkuch-redux 
No program
Python 313.133.4947,092894  97% 99% 91% 98%
 templates 
No program
Python 31.031.0419,920322  10% 100% 3% 4%
 chameneos-redux 
No program
Python 3345.87171.998,7881191  48% 41% 46% 46%
 binary-trees 
No program
Python 33.280.9755,856741  91% 84% 88% 85%
 reverse-complement 
No program
Python 30.030.03?449  0% 33% 0% 100%
 iobench 
No program
Python 35.425.438,916367  5% 0% 0% 100%
 jsonbench 
No program
Python 33.273.2812,284322  5% 32% 1% 69%
 k-nucleotide 
No program
Python 30.110.08?801  11% 25% 75% 33%
 thread-ring 
No program
Python 334.2224.9813,216448  32% 38% 22% 39%
 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