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.
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 | |
reverse-complement † | 1/2 | ? | ± | |
chameneos-redux † | ± | ± | ||
k-nucleotide † | 10× | ? | ± | |
richards | 13× | ± | ||
pystone | 16× | ? | ± | |
meteor-contest | 17× | ± | ||
thread-ring | 19× | ± | ||
fib50 | 27× | ± | ||
pidigits † | 49× | ? | ± | |
fannkuch-redux † | 87× | 1/2 | ||
spectral-norm | 486× | ? | ± |
RustPython used what fraction? used how many times more? | |||||||
---|---|---|---|---|---|---|---|
Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
(Elapsed secs) | 1/2 | 1/2 | 12× | 17× | 38× | 77× | 486× |
† possible mismatch - one-core program compared to multi-core program.
± read the measurements and then read the program source code.
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 |
---|---|---|---|---|---|
reverse-complement | |||||
RustPython | 0.01 | 0.01 | ? | 458 | 50% 0% 0% 0% 0% 50% 0% 0% † |
Python 3 | 0.02 | 0.02 | ? | 458 | 33% 0% 100% 0% 0% 0% 0% 0% † |
chameneos-redux | |||||
RustPython | 220.28 | 215.70 | 15,008 | 1191 | 18% 19% 18% 19% 8% 15% 10% 10% † |
Python 3 | 275.05 | 194.31 | 16,748 | 1191 | 11% 14% 14% 14% 17% 21% 18% 22% † |
k-nucleotide | |||||
RustPython | 0.64 | 0.64 | 15,724 | 594 | 3% 2% 100% 0% 0% 0% 2% 2% † |
Python 3 | 0.08 | 0.06 | ? | 801 | 57% 50% 14% 0% 25% 17% 29% 17% † |
richards | |||||
RustPython | 6.51 | 6.51 | 15,404 | 2434 | 2% 1% 0% 1% 0% 0% 100% 1% |
Python 3 | 0.49 | 0.49 | 11,092 | 2434 | 2% 4% 0% 2% 2% 100% 0% 0% |
pystone | |||||
RustPython | 1.84 | 1.84 | 14,968 | 2300 | 0% 100% 1% 0% 1% 1% 1% 1% |
Python 3 | 0.11 | 0.12 | ? | 2300 | 100% 8% 0% 0% 0% 0% 0% 0% |
meteor-contest | |||||
RustPython | 28.27 | 28.27 | 16,400 | 1443 | 35% 1% 1% 0% 66% 0% 0% 1% |
Python 3 | 1.70 | 1.70 | 10,964 | 1443 | 1% 1% 1% 0% 0% 0% 0% 99% |
thread-ring | |||||
RustPython | 5.16 | 5.20 | 15,540 | 406 | 97% 4% 2% 1% 6% 3% 3% 3% |
Python 3 | 0.28 | 0.28 | 1,920 | 406 | 100% 7% 0% 0% 4% 0% 0% 3% |
fib50 | |||||
RustPython | 44.25 | 44.31 | 15,584 | 136 | 100% 2% 1% 1% 0% 0% 1% 0% |
Python 3 | 1.63 | 1.64 | 10,196 | 136 | 100% 1% 2% 1% 1% 0% 0% 1% |
pidigits | |||||
RustPython | 1.37 | 1.37 | 16,132 | 322 | 0% 1% 0% 0% 0% 1% 100% 1% † |
Python 3 | 0.03 | 0.03 | ? | 379 | 25% 0% 100% 0% 0% 0% 33% 25% † |
fannkuch-redux | |||||
RustPython | 56.75 | 56.77 | 15,068 | 552 | 2% 1% 1% 1% 1% 100% 1% 1% † |
Python 3 | 4.72 | 0.65 | 99,300 | 894 | 91% 97% 91% 91% 85% 92% 91% 93% † |
spectral-norm | |||||
RustPython | 54.47 | 54.49 | 15,896 | 498 | 0% 1% 1% 1% 0% 1% 100% 1% |
Python 3 | 0.11 | 0.11 | ? | 394 | 100% 0% 0% 0% 0% 0% 8% 0% |
fasta | |||||
Python 3 | 4.91 | 2.71 | 65,720 | 2016 | 44% 38% 4% 3% 60% 0% 26% 12% |
regex-dna | |||||
Python 3 | 0.04 | 0.04 | ? | 524 | 0% 100% 0% 0% 25% 0% 0% 20% |
fasta-redux | |||||
Python 3 | 0.17 | 0.17 | ? | 1115 | 100% 6% 6% 0% 0% 0% 0% 6% |
n-body | |||||
Python 3 | 20.69 | 20.70 | 10,584 | 1315 | 1% 0% 0% 0% 0% 100% 0% 1% |
fibonacci | |||||
RustPython | 0.12 | 0.12 | ? | 182 | 8% 0% 0% 100% 0% 0% 0% 0% |
templates | |||||
Python 3 | 0.57 | 0.58 | 20,176 | 322 | 100% 0% 0% 2% 0% 3% 0% 2% |
jsonbench | |||||
Python 3 | 2.00 | 2.00 | 13,956 | 322 | 2% 0% 1% 100% 0% 1% 1% 2% |
iobench | |||||
Python 3 | 2.99 | 3.03 | 10,512 | 367 | 1% 2% 0% 0% 100% 0% 0% 1% |
mandelbrot | |||||
Python 3 | 25.42 | 3.34 | 317,300 | 3852 | 95% 99% 94% 96% 95% 94% 96% 96% |
binary-trees | |||||
Python 3 | 1.03 | 0.22 | 3,584 | 741 | 81% 62% 55% 57% 64% 57% 62% 57% |
binary-trees-redux | |||||
† possible mismatch - one-core program compared to multi-core program.
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.
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.