÷

 Step 1 : Are the SML SML/NJ programs faster? At a glance.

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

Each chart bar shows, for one unidentified benchmark, how much the fastest SML SML/NJ program used compared to the fastest Haskell GHC program.


 Step 2 : Are the SML SML/NJ programs faster? Approximately.

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

Each table row shows, for one named benchmark, how much the fastest SML SML/NJ program used compared to the fastest Haskell GHC program.

 SML SML/NJ used what fraction? used how many times more? 
Benchmark Time Memory Code
 partial-sums1/2±
 n-body1/2±
 recursive±±
 mandelbrot±±
 fasta±±
 spectral-norm±±
 nsieve±
 nsieve-bits±
 pidigits93×

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

 Step 3 : Are the SML SML/NJ programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.

For each named benchmark, measurements of the fastest SML SML/NJ program are shown for comparison against measurements of the fastest Haskell GHC program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 partial-sums 
SML SML/NJ1.803,456569  
Haskell GHC4.36864476  
 n-body 
SML SML/NJ21.512,6241314  
Haskell GHC48.721,6481687  
 recursive 
SML SML/NJ0.483,452585  
Haskell GHC0.65988447  
 mandelbrot 
SML SML/NJ0.192,204556  
Haskell GHC0.23952627  
 fasta 
SML SML/NJ36.393,2681287  
Haskell GHC31.421,5161406  
 spectral-norm 
SML SML/NJ35.514,668617  
Haskell GHC24.82964737  
 nsieve 
SML SML/NJ2.1915,876474  
Haskell GHC1.002,140340  
 nsieve-bits 
SML SML/NJ1.854,928554  
Haskell GHC0.681,988388  
 pidigits 
SML SML/NJ10.085,000677  
Haskell GHC0.111,492377  
 k-nucleotide 
No program
Haskell GHC0.294,1561767  
 reverse-complement 
No program
Haskell GHC0.032,212915  
 binary-trees 
No program
Haskell GHC0.101,532510  
 fannkuch 
No program
Haskell GHC1.349801005  
 chameneos-redux 
No program
Haskell GHC0.141,500789  
 regex-dna 
No program
Haskell GHCFailed

 Step 4 : Are there other SML SML/NJ programs for these benchmarks?

Remember - those are just the fastest SML SML/NJ and Haskell GHC programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for SML SML/NJ.

Maybe one of those other SML SML/NJ programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest SML SML/NJ and Haskell GHC programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 SML SML/NJ : modular type-safe strict functional programming 

Standard ML of New Jersey v110.60 [built: Tue Mar 20 12:27:39 2007]

Home Page: http://www.smlnj.org/

Download: http://www.smlnj.org//dist/working/index.html

Revised BSD license

  Home   Flawed   Fastest   License   Help