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 Clean program used compared to the fastest C++ GNU g++ 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 Clean program used compared to the fastest C++ GNU g++ program.
| Clean used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| fannkuch | ± | 1/2 | 2× | |
| spectral-norm | ± | 2× | ± | |
| n-body | ± | 1/2 | ± | |
| partial-sums | ± | 1/2 | ± | |
| recursive | ± | 1/2 | ± | |
| mandelbrot | 2× | 1/2 | 1/2 | |
| fasta | 2× | 4× | ± | |
| nsieve | 2× | 6× | ± | |
| nsieve-bits | 2× | ± | ± | |
| pidigits | 2× | 2× | ± | |
| k-nucleotide | 2× | 8× | ± | |
| reverse-complement | 2× | 3× | ± | |
| binary-trees | 4× | 4× | 1/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 Clean program are shown for comparison against measurements of the fastest C++ GNU g++ program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| fannkuch | |||||
| Clean | 0.06 | 488 | 925 | ||
| C++ GNU g++ | 0.06 | 844 | 554 | ||
| spectral-norm | |||||
| Clean | 27.32 | 1,404 | 572 | ||
| C++ GNU g++ | 23.84 | 900 | 442 | ||
| n-body | |||||
| Clean | 17.28 | 520 | 1587 | ||
| C++ GNU g++ | 14.62 | 932 | 1705 | ||
| partial-sums | |||||
| Clean | 4.18 | 508 | 577 | ||
| C++ GNU g++ | 3.21 | 952 | 709 | ||
| recursive | |||||
| Clean | 0.23 | 480 | 422 | ||
| C++ GNU g++ | 0.16 | 884 | 566 | ||
| mandelbrot | |||||
| Clean | 0.22 | 472 | 506 | ||
| C++ GNU g++ | 0.14 | 896 | 1097 | ||
| fasta | |||||
| Clean | 28.77 | 2,820 | 1420 | ||
| C++ GNU g++ | 18.72 | 788 | 1248 | ||
| nsieve | |||||
| Clean | 2.08 | 9,324 | 394 | ||
| C++ GNU g++ | 1.29 | 1,468 | 379 | ||
| nsieve-bits | |||||
| Clean | 1.02 | 1,564 | 464 | ||
| C++ GNU g++ | 0.62 | 1,440 | 494 | ||
| pidigits | |||||
| Clean | 0.12 | 1,736 | 563 | ||
| C++ GNU g++ | 0.07 | 948 | 652 | ||
| k-nucleotide | |||||
| Clean | 13.61 | 78,032 | 1511 | ||
| C++ GNU g++ | 7.46 | 9,304 | 1380 | ||
| reverse-complement | |||||
| Clean | 1.20 | 43,080 | 834 | ||
| C++ GNU g++ | 0.54 | 13,288 | 810 | ||
| binary-trees | |||||
| Clean | 1.08 | 8,748 | 538 | ||
| C++ GNU g++ | 0.26 | 2,192 | 814 | ||
| chameneos-redux | |||||
| C++ GNU g++ | 0.21 | 936 | 1729 | ||
| regex-dna | |||||
| C++ GNU g++ | 1.14 | 2,960 | 1588 | ||
Remember - those are just the fastest Clean and C++ GNU g++ programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Clean.
Maybe one of those other Clean programs is fastest on a different OS/machine.
Remember - those are just the fastest Clean and C++ GNU g++ 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.
Clean Version 2.0 Language Report (HTML)
online book Functional Programming in Clean
version 2.2
Home Page: http://www.cs.kun.nl/~clean/index.html
Download: http://www.cs.kun.nl/~clean/Download/main/main.htm