÷

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

This chart shows 3 comparisons - Time-used, Memory-used and Code-used.

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.


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

This table shows 3 comparisons - Time-used, Memory-used and Code-used.

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 Reduced N
 fannkuch±±±
 sum-file±±1/2
 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
 chameneos-redux±
 recursive±1/2

± 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.

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
 fannkuch 
D Digital Mars6.11628498  
C++ GNU g++7.78844554  
 sum-file 
D Digital Mars5.70616166  
C++ GNU g++6.47852260  
 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  
 chameneos-redux 
D Digital Mars41.071,7481335  
C++ GNU g++16.691,0041729  
 recursive 
D Digital Mars6.311,196349  
C++ GNU g++2.401,008566  

 Measurements for all the accepted programs

 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