PLEASE CHOOSE THE UP-TO-DATE MEASUREMENTS INSTEAD OF THESE! (Read the FAQ!) |
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.
| 1/2 1/3 1/4 SML MLton is better | ||||
|---|---|---|---|---|
| Programs | Time | Memory Use | Source Size | Reduced N |
| chameneos-redux | ||||
| regex-dna | ||||
| binary-trees | 1/2 | 5 | ± | |
| mandelbrot | ± | ± | ± | |
| partial-sums | ± | ± | ± | |
| sum-file | ± | 1/5 | 1/2 | |
| nsieve | ± | 7 | ± | |
| n-body | 2 | 3 | ± | |
| nsieve-bits | 2 | 2 | ± | |
| fasta | 2 | ± | ± | |
| fannkuch | 2 | ± | ± | |
| spectral-norm | 2 | ± | ± | |
| k-nucleotide | 2 | 28 | ± | |
| recursive | 3 | 3 | ± | |
| reverse-complement | 3 | 4 | ± | |
| pidigits | 4 | ± | ± | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| binary-trees | |||||
| SML MLton #2 | 3.23 | 33,624 | 530 | ||
| C++ GNU g++ #2 | 5.91 | 7,000 | 541 | ||
| mandelbrot | |||||
| SML MLton #2 | 2.96 | 3,352 | 457 | ||
| C++ GNU g++ | 3.00 | 3,312 | 584 | ||
| partial-sums | |||||
| SML MLton #2 | 2.07 | 3,120 | 541 | ||
| C++ GNU g++ #3 | 1.84 | 3,096 | 531 | ||
| sum-file | |||||
| SML MLton | 7.76 | 3,132 | 164 | ||
| C++ GNU g++ #2 | 6.29 | 14,864 | 260 | ||
| nsieve | |||||
| SML MLton #2 | 5.27 | 71,644 | 367 | ||
| C++ GNU g++ #3 | 3.76 | 10,788 | 313 | ||
| n-body | |||||
| SML MLton #2 | 20.42 | 3,116 | 1327 | ||
| C++ GNU g++ #2 | 12.78 | 936 | 1705 | ||
| nsieve-bits | |||||
| SML MLton #2 | 4.58 | 5,104 | 488 | ||
| C++ GNU g++ | 2.80 | 3,328 | 494 | ||
| fasta | |||||
| SML MLton | 19.22 | 3,124 | 1323 | ||
| C++ GNU g++ #4 | 11.69 | 3,120 | 1248 | ||
| fannkuch | |||||
| SML MLton | 14.91 | 3,124 | 606 | ||
| C++ GNU g++ #2 | 8.28 | 3,096 | 554 | ||
| spectral-norm | |||||
| SML MLton | 34.69 | 3,128 | 444 | ||
| C++ GNU g++ | 17.49 | 3,092 | 442 | ||
| k-nucleotide | |||||
| SML MLton | 16.26 | 257,724 | 1068 | ||
| C++ GNU g++ #3 | 7.63 | 9,312 | 1380 | ||
| recursive | |||||
| SML MLton #2 | 6.51 | 3,120 | 453 | ||
| C++ GNU g++ #2 | 2.59 | 1,008 | 566 | ||
| reverse-complement | |||||
| SML MLton | 1.85 | 59,668 | 837 | ||
| C++ GNU g++ #3 | 0.63 | 13,288 | 810 | ||
| pidigits | |||||
| SML MLton #2 | 11.98 | 3,836 | 498 | ||
| C++ GNU g++ #2 | 2.85 | 3,124 | 652 | ||
MLton 20070826
Whole-Program Compilation in MLton (pdf slides)
Home Page: http://mlton.org/
Download: http://mlton.org/download/