Compare the performance of SML MLton programs against some other language implementation.

For more information about the SML implementation we measured see ↓ about SML MLton.

Compare to:

 SML MLton comparison summary


1/2 1/3 1/4 … SML MLton is better
Programs Time Memory Use Source Size Reduced N
chameneos-reduxNo program
regex-dnaNo program
binary-trees±7±
partial-sums±±±
fasta±4±
sum-file±±1/2
nsieve±6±
spectral-norm2±±
nsieve-bits22±
n-body2±±
pidigits22±
mandelbrot2±1/2
fannkuch2±±
k-nucleotide318±
recursive3±±
reverse-complement36±

± look at the measurements

 SML MLton comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 binary-trees 
SML MLton #23.2045,760530  
C++ GNU g++ #24.476,996541  
 partial-sums 
SML MLton #24.73740541  
C++ GNU g++ #34.05852531  
 fasta 
SML MLton22.752,8561323  
C++ GNU g++ #418.727881248  
 sum-file 
SML MLton8.03976164  
C++ GNU g++ #26.47852260  
 nsieve 
SML MLton #23.0536,740367  
C++ GNU g++ #32.085,764313  
 spectral-norm 
SML MLton37.401,304444  
C++ GNU g++23.84900442  
 nsieve-bits 
SML MLton #26.705,248488  
C++ GNU g++3.863,316494  
 n-body 
SML MLton #227.277401327  
C++ GNU g++ #214.629321705  
 pidigits 
SML MLton #23.252,236498  
C++ GNU g++ #21.661,052652  
 mandelbrot 
SML MLton #26.04704457  
C++ GNU g++ #43.028961097  
 fannkuch 
SML MLton17.75708606  
C++ GNU g++ #27.78844554  
 k-nucleotide 
SML MLton20.86163,3721068  
C++ GNU g++ #37.469,3041380  
 recursive 
SML MLton #27.971,384453  
C++ GNU g++ #22.401,008566  
 reverse-complement 
SML MLton1.8280,060837  
C++ GNU g++ #30.5413,288810  

 about SML MLton

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