÷

 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±±±
 binary-trees±±±
 sum-file±1/51/2
 regex-dna±1/2
 reverse-complement±±±
 nsieve-bits±1/2
 nsieve±±±
 spectral-norm±±±
 pidigits±±±
 fasta±±±
 k-nucleotide±1/2
 n-body±±
 partial-sums±1/5±
 mandelbrot±±
 recursive1/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.503,092498  
C++ GNU g++8.283,096554  
 binary-trees 
D Digital Mars4.934,732705  
C++ GNU g++5.917,000541  
 sum-file 
D Digital Mars5.503,096166  
C++ GNU g++6.2914,864260  
 regex-dna 
D Digital Mars5.7828,2321022  
C++ GNU g++6.4513,4081588  
 reverse-complement 
D Digital Mars0.5712,928685  
C++ GNU g++0.6313,288810  
 nsieve-bits 
D Digital Mars2.585,152326  
C++ GNU g++2.803,328494  
 nsieve 
D Digital Mars3.6716,116298  
C++ GNU g++3.7610,788313  
 spectral-norm 
D Digital Mars17.333,100403  
C++ GNU g++17.493,092442  
 pidigits 
D Digital Mars2.863,120756  
C++ GNU g++2.853,124652  
 fasta 
D Digital Mars14.503,1041095  
C++ GNU g++11.693,1201248  
 k-nucleotide 
D Digital Mars10.3027,824561  
C++ GNU g++7.639,3121380  
 n-body 
D Digital Mars17.393,0881308  
C++ GNU g++12.789361705  
 partial-sums 
D Digital Mars2.64588440  
C++ GNU g++1.843,096531  
 mandelbrot 
D Digital Mars5.663,292399  
C++ GNU g++3.003,312584  
 recursive 
D Digital Mars7.473,100349  
C++ GNU g++2.591,008566  
 chameneos-redux
   No program

 Measurements for all the accepted programs

 D Digital Mars : c++ reduced and simplified 

Digital Mars D Compiler v1.015

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

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

Revised BSD license