/mobile Handheld Friendly website

÷

 Step 1 : Are the D Digital Mars programs faster? At a glance.

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.

 Step 2 : Are the D Digital Mars programs faster? Approximately.

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±±
 pidigits±±±
 nsieve±±±
 nsieve-bits±±
 spectral-norm±±±
 reverse-complement±±±
 k-nucleotide±1/2
 regex-dna±1/3
 n-body±±±
 mandelbrot±1/3
 recursive±1/2
 D Digital Mars used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(CPU secs)±±±±±

± read the measurements and then read the program source code.

 Step 3 : Are the D Digital Mars programs faster? Measurements.

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 Mars3.89588440  
C++ GNU g++4.05852531  
 binary-trees 
D Digital Mars4.344,724705  
C++ GNU g++4.476,996541  
 fasta 
D Digital Mars18.993,0521095  
C++ GNU g++18.727881248  
 pidigits 
D Digital Mars1.70852756  
C++ GNU g++1.661,052652  
 nsieve 
D Digital Mars2.138,368298  
C++ GNU g++2.085,764313  
 nsieve-bits 
D Digital Mars4.075,108394  
C++ GNU g++3.863,316494  
 spectral-norm 
D Digital Mars27.14720403  
C++ GNU g++23.84900442  
 reverse-complement 
D Digital Mars0.6412,924685  
C++ GNU g++0.5413,288810  
 k-nucleotide 
D Digital Mars9.2022,976666  
C++ GNU g++7.469,3041380  
 regex-dna 
D Digital Mars7.5486,596506  
C++ GNU g++5.5812,7041588  
 n-body 
D Digital Mars20.676881308  
C++ GNU g++14.629321705  
 mandelbrot 
D Digital Mars6.16632399  
C++ GNU g++3.028961097  
 recursive 
D Digital Mars6.311,196349  
C++ GNU g++2.401,008566  

 Step 4 : Are there other D Digital Mars programs for these benchmarks?

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.

 Step 5 : Are there other faster programs for these benchmarks?

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.

 D Digital Mars : c++ reduced and simplified 

Digital Mars D Compiler v1.030

Home Page: http://www.digitalmars.com/d/

Download: http://www.digitalmars.com/d/

Revised BSD license

  Home   Conclusions   License   Help