OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each chart bar shows, for one unidentified benchmark, how much the fastest Python CPython program used compared to the fastest C# Mono program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each table row shows, for one named benchmark, how much the fastest Python CPython program used compared to the fastest C# Mono program.
| Python CPython used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| regex-dna | 1/6 | 1/3 | 1/2 | |
| pidigits | 1/3 | ± | 1/4 | |
| partial-sums | ± | 3× | ± | |
| reverse-complement | ± | 2× | 1/3 | |
| k-nucleotide | 3× | 1/3 | 1/2 | |
| nsieve | 3× | 4× | ± | |
| binary-trees | 8× | ± | 1/2 | |
| mandelbrot | 12× | 6× | 1/2 | |
| fannkuch | 17× | 1/2 | ± | |
| nsieve-bits | 24× | ± | ± | |
| fasta | 26× | 1/2 | 1/2 | |
| recursive | 32× | 1/2 | ± | |
| spectral-norm | 69× | 1/2 | 1/2 | |
| n-body | 87× | 1/2 | ± | |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.
For each named benchmark, measurements of the fastest Python CPython program are shown for comparison against measurements of the fastest C# Mono program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| regex-dna | |||||
| Python CPython | 2.88 | 23,000 | 314 | ||
| C# Mono | 17.31 | 64,708 | 657 | ||
| pidigits | |||||
| Python CPython | 0.08 | 2,164 | 257 | ||
| C# Mono | 0.22 | 2,540 | 1026 | ||
| partial-sums | |||||
| Python CPython | 7.03 | 12,680 | 482 | ||
| C# Mono | 7.28 | 4,704 | 455 | ||
| reverse-complement | |||||
| Python CPython | 2.73 | 49,072 | 288 | ||
| C# Mono | 2.20 | 27,136 | 727 | ||
| k-nucleotide | |||||
| Python CPython | 58.45 | 25,208 | 475 | ||
| C# Mono | 18.52 | 68,064 | 1012 | ||
| nsieve | |||||
| Python CPython | 7.35 | 42,400 | 278 | ||
| C# Mono | 2.28 | 9,604 | 341 | ||
| binary-trees | |||||
| Python CPython | 66.96 | 16,172 | 377 | ||
| C# Mono | 8.25 | 14,584 | 610 | ||
| mandelbrot | |||||
| Python CPython | 5.59 | 29,632 | 312 | ||
| C# Mono | 0.46 | 4,644 | 484 | ||
| fannkuch | |||||
| Python CPython | 5.38 | 2,404 | 411 | ||
| C# Mono | 0.32 | 4,624 | 549 | ||
| nsieve-bits | |||||
| Python CPython | 34.97 | 4,936 | 288 | ||
| C# Mono | 1.49 | 5,252 | 363 | ||
| fasta | |||||
| Python CPython | 692.04 | 2,420 | 779 | ||
| C# Mono | 26.23 | 4,656 | 1180 | ||
| recursive | |||||
| Python CPython | 22.37 | 3,048 | 360 | ||
| C# Mono | 0.69 | 4,624 | 435 | ||
| spectral-norm | |||||
| Python CPython | 3,261.32 | 2,900 | 282 | ||
| C# Mono | 47.48 | 4,352 | 459 | ||
| n-body | |||||
| Python CPython | 2,015.78 | 2,440 | 1027 | ||
| C# Mono | 23.20 | 5,072 | 1410 | ||
| chameneos-redux | |||||
| Python CPython | 2.73 | 2,580 | 866 | ||
Remember - those are just the fastest Python CPython and C# Mono programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Python CPython.
Maybe one of those other Python CPython programs is fastest on a different OS/machine.
Remember - those are just the fastest Python CPython and C# Mono 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.
Python 2.5.1
Online book: Dive Into Python
Home Page: http://www.python.org/
Download: http://www.python.org/download/