/mobile Handheld Friendly website
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 D Digital Mars program used compared to the fastest C++ GNU g++ program.
Look at speed another way - look at a box plot of Time-used data.
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 D Digital Mars program used compared to the fastest C++ GNU g++ program.
| D Digital Mars used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| partial-sums | ± | ± | ± | |
| binary-trees | ± | ± | ± | |
| fasta | ± | 4× | ± | |
| pidigits | ± | ± | ± | |
| nsieve | ± | ± | ± | |
| nsieve-bits | ± | 2× | ± | |
| spectral-norm | ± | ± | ± | |
| reverse-complement | ± | ± | ± | |
| k-nucleotide | ± | 2× | 1/2 | |
| regex-dna | ± | 7× | 1/3 | |
| n-body | ± | ± | ± | |
| mandelbrot | 2× | ± | 1/3 | |
| recursive | 3× | ± | 1/2 | |
| D Digital Mars used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (CPU secs) | ± | ± | ± | ± | ± | 2× | 3× |
± 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 D Digital Mars program are shown for comparison against measurements of the fastest C++ GNU g++ program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| partial-sums | |||||
| D Digital Mars | 3.89 | 588 | 440 | ||
| C++ GNU g++ | 4.05 | 852 | 531 | ||
| binary-trees | |||||
| D Digital Mars | 4.34 | 4,724 | 705 | ||
| C++ GNU g++ | 4.47 | 6,996 | 541 | ||
| fasta | |||||
| D Digital Mars | 18.99 | 3,052 | 1095 | ||
| C++ GNU g++ | 18.72 | 788 | 1248 | ||
| pidigits | |||||
| D Digital Mars | 1.70 | 852 | 756 | ||
| C++ GNU g++ | 1.66 | 1,052 | 652 | ||
| nsieve | |||||
| D Digital Mars | 2.13 | 8,368 | 298 | ||
| C++ GNU g++ | 2.08 | 5,764 | 313 | ||
| nsieve-bits | |||||
| D Digital Mars | 4.07 | 5,108 | 394 | ||
| C++ GNU g++ | 3.86 | 3,316 | 494 | ||
| spectral-norm | |||||
| D Digital Mars | 27.14 | 720 | 403 | ||
| C++ GNU g++ | 23.84 | 900 | 442 | ||
| reverse-complement | |||||
| D Digital Mars | 0.64 | 12,924 | 685 | ||
| C++ GNU g++ | 0.54 | 13,288 | 810 | ||
| k-nucleotide | |||||
| D Digital Mars | 9.20 | 22,976 | 666 | ||
| C++ GNU g++ | 7.46 | 9,304 | 1380 | ||
| regex-dna | |||||
| D Digital Mars | 7.54 | 86,596 | 506 | ||
| C++ GNU g++ | 5.58 | 12,704 | 1588 | ||
| n-body | |||||
| D Digital Mars | 20.67 | 688 | 1308 | ||
| C++ GNU g++ | 14.62 | 932 | 1705 | ||
| mandelbrot | |||||
| D Digital Mars | 6.16 | 632 | 399 | ||
| C++ GNU g++ | 3.02 | 896 | 1097 | ||
| recursive | |||||
| D Digital Mars | 6.31 | 1,196 | 349 | ||
| C++ GNU g++ | 2.40 | 1,008 | 566 | ||
Remember - those are just the fastest D Digital Mars and C++ GNU g++ programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for D Digital Mars.
Maybe one of those other D Digital Mars programs is fastest on a different OS/machine.
Remember - those are just the fastest D Digital Mars and C++ GNU g++ 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.
Digital Mars D Compiler v1.030
Home Page: http://www.digitalmars.com/d/
Download: http://www.digitalmars.com/d/