OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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.
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-sums | 1/2 | 4× | ± | |
| n-body | 1/2 | 2× | ± | |
| recursive | ± | 3× | ± | |
| mandelbrot | ± | 2× | ± | |
| fasta | ± | 2× | ± | |
| spectral-norm | ± | 5× | ± | |
| nsieve | 2× | 7× | ± | |
| nsieve-bits | 3× | 2× | ± | |
| pidigits | 93× | 3× | 2× | |
± read the measurements and then read the program source code.
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/NJ | 1.80 | 3,456 | 569 | ||
| Haskell GHC | 4.36 | 864 | 476 | ||
| n-body | |||||
| SML SML/NJ | 21.51 | 2,624 | 1314 | ||
| Haskell GHC | 48.72 | 1,648 | 1687 | ||
| recursive | |||||
| SML SML/NJ | 0.48 | 3,452 | 585 | ||
| Haskell GHC | 0.65 | 988 | 447 | ||
| mandelbrot | |||||
| SML SML/NJ | 0.19 | 2,204 | 556 | ||
| Haskell GHC | 0.23 | 952 | 627 | ||
| fasta | |||||
| SML SML/NJ | 36.39 | 3,268 | 1287 | ||
| Haskell GHC | 31.42 | 1,516 | 1406 | ||
| spectral-norm | |||||
| SML SML/NJ | 35.51 | 4,668 | 617 | ||
| Haskell GHC | 24.82 | 964 | 737 | ||
| nsieve | |||||
| SML SML/NJ | 2.19 | 15,876 | 474 | ||
| Haskell GHC | 1.00 | 2,140 | 340 | ||
| nsieve-bits | |||||
| SML SML/NJ | 1.85 | 4,928 | 554 | ||
| Haskell GHC | 0.68 | 1,988 | 388 | ||
| pidigits | |||||
| SML SML/NJ | 10.08 | 5,000 | 677 | ||
| Haskell GHC | 0.11 | 1,492 | 377 | ||
| k-nucleotide | |||||
| Haskell GHC | 0.29 | 4,156 | 1767 | ||
| reverse-complement | |||||
| Haskell GHC | 0.03 | 2,212 | 915 | ||
| binary-trees | |||||
| Haskell GHC | 0.10 | 1,532 | 510 | ||
| fannkuch | |||||
| Haskell GHC | 1.34 | 980 | 1005 | ||
| chameneos-redux | |||||
| Haskell GHC | 0.14 | 1,500 | 789 | ||
| regex-dna | |||||
| Haskell GHC | |||||
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.
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.
Standard ML of New Jersey v110.60 [built: Tue Mar 20 12:27:39 2007]
Home Page: http://www.smlnj.org/