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-trees1/25±
mandelbrot±±±
partial-sums±±±
sum-file±1/51/2
nsieve±7±
n-body23±
nsieve-bits22±
fasta2±±
fannkuch2±±
spectral-norm2±±
k-nucleotide228±
recursive33±
reverse-complement34±
pidigits4±±

± 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.2333,624530  
C++ GNU g++ #25.917,000541  
 mandelbrot 
SML MLton #22.963,352457  
C++ GNU g++3.003,312584  
 partial-sums 
SML MLton #22.073,120541  
C++ GNU g++ #31.843,096531  
 sum-file 
SML MLton7.763,132164  
C++ GNU g++ #26.2914,864260  
 nsieve 
SML MLton #25.2771,644367  
C++ GNU g++ #33.7610,788313  
 n-body 
SML MLton #220.423,1161327  
C++ GNU g++ #212.789361705  
 nsieve-bits 
SML MLton #24.585,104488  
C++ GNU g++2.803,328494  
 fasta 
SML MLton19.223,1241323  
C++ GNU g++ #411.693,1201248  
 fannkuch 
SML MLton14.913,124606  
C++ GNU g++ #28.283,096554  
 spectral-norm 
SML MLton34.693,128444  
C++ GNU g++17.493,092442  
 k-nucleotide 
SML MLton16.26257,7241068  
C++ GNU g++ #37.639,3121380  
 recursive 
SML MLton #26.513,120453  
C++ GNU g++ #22.591,008566  
 reverse-complement 
SML MLton1.8559,668837  
C++ GNU g++ #30.6313,288810  
 pidigits 
SML MLton #211.983,836498  
C++ GNU g++ #22.853,124652  

 about SML MLton

MLton 20070826

Whole-Program Compilation in MLton (pdf slides)

Home Page: http://mlton.org/

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

Revised BSD license