÷

 Step 1 : Are the SML MLton 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 SML MLton program used compared to the fastest C++ GNU g++ program.


 Step 2 : Are the SML MLton 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 SML MLton program used compared to the fastest C++ GNU g++ program.

 SML MLton used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 binary-trees±±
 partial-sums±±±
 fasta±±
 sum-file±±1/2
 nsieve±±
 spectral-norm±±
 nsieve-bits±
 n-body±±
 pidigits±
 mandelbrot±1/2
 fannkuch±±
 k-nucleotide18×±
 recursive±±
 reverse-complement±

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

 Step 3 : Are the SML MLton 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 SML MLton 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
 binary-trees 
SML MLton3.2045,760530  
C++ GNU g++4.476,996541  
 partial-sums 
SML MLton4.73740541  
C++ GNU g++4.05852531  
 fasta 
SML MLton22.752,8561323  
C++ GNU g++18.727881248  
 sum-file 
SML MLton8.03976164  
C++ GNU g++6.47852260  
 nsieve 
SML MLton3.0536,740367  
C++ GNU g++2.085,764313  
 spectral-norm 
SML MLton37.401,304444  
C++ GNU g++23.84900442  
 nsieve-bits 
SML MLton6.705,248488  
C++ GNU g++3.863,316494  
 n-body 
SML MLton27.277401327  
C++ GNU g++14.629321705  
 pidigits 
SML MLton3.252,236498  
C++ GNU g++1.661,052652  
 mandelbrot 
SML MLton6.04704457  
C++ GNU g++3.028961097  
 fannkuch 
SML MLton17.75708606  
C++ GNU g++7.78844554  
 k-nucleotide 
SML MLton20.86163,3721068  
C++ GNU g++7.469,3041380  
 recursive 
SML MLton7.971,384453  
C++ GNU g++2.401,008566  
 reverse-complement 
SML MLton1.8280,060837  
C++ GNU g++0.5413,288810  
 chameneos-redux
   No program
 regex-dna
   No program

 Measurements for all the accepted programs

 SML MLton : whole-program optimizing compiler 

MLton 20070826 (built Wed Aug 29 09:44:07 2007 on silver-star.cs.uchicago.edu)

Whole-Program Compilation in MLton (pdf slides)

Home Page: http://mlton.org/

Download: http://mlton.org/download/

Revised BSD license