OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used.
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.
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 | Reduced N |
| sum-file | 1/2 | 1/5 | ± | |
| binary-trees | ± | 2× | ± | |
| fannkuch | ± | 1/6 | 2× | |
| nsieve | ± | 2× | ± | 9 |
| spectral-norm | ± | ± | ± | |
| partial-sums | ± | ± | ± | |
| mandelbrot | ± | ± | ± | |
| recursive | ± | 1/2 | ± | |
| n-body | ± | 1/2 | ± | |
| k-nucleotide | 2× | 7× | ± | |
| nsieve-bits | 2× | ± | ± | |
| fasta | 2× | ± | ± | |
| reverse-complement | 2× | 3× | ± | |
| pidigits | 5× | ± | ± | |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.
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 |
|---|---|---|---|---|---|
| sum-file | |||||
| Clean | 2.92 | 3,100 | 231 | ||
| C++ GNU g++ | 6.29 | 14,864 | 260 | ||
| binary-trees | |||||
| Clean | 4.12 | 16,876 | 627 | ||
| C++ GNU g++ | 5.91 | 7,000 | 541 | ||
| fannkuch | |||||
| Clean | 7.74 | 500 | 1020 | ||
| C++ GNU g++ | 8.28 | 3,096 | 554 | ||
| nsieve N = 9 reduced workload | |||||
| Clean | 1.83 | 9,344 | 465 | ||
| C++ GNU g++ | 1.79 | 5,788 | 313 | ||
| spectral-norm | |||||
| Clean | 18.10 | 3,108 | 660 | ||
| C++ GNU g++ | 17.49 | 3,092 | 442 | ||
| partial-sums | |||||
| Clean | 1.94 | 3,088 | 577 | ||
| C++ GNU g++ | 1.84 | 3,096 | 531 | ||
| mandelbrot | |||||
| Clean | 3.62 | 3,292 | 639 | ||
| C++ GNU g++ | 3.00 | 3,312 | 584 | ||
| recursive | |||||
| Clean | 3.37 | 612 | 494 | ||
| C++ GNU g++ | 2.59 | 1,008 | 566 | ||
| n-body | |||||
| Clean | 17.36 | 508 | 1722 | ||
| C++ GNU g++ | 12.78 | 936 | 1705 | ||
| k-nucleotide | |||||
| Clean | 11.62 | 66,100 | 1762 | ||
| C++ GNU g++ | 7.63 | 9,312 | 1380 | ||
| nsieve-bits | |||||
| Clean | 4.55 | 4,876 | 534 | ||
| C++ GNU g++ | 2.80 | 3,328 | 494 | ||
| fasta | |||||
| Clean | 24.51 | 3,116 | 1513 | ||
| C++ GNU g++ | 11.69 | 3,120 | 1248 | ||
| reverse-complement | |||||
| Clean | 1.48 | 43,096 | 1064 | ||
| C++ GNU g++ | 0.63 | 13,288 | 810 | ||
| pidigits | |||||
| Clean | 14.34 | 3,116 | 644 | ||
| C++ GNU g++ | 2.85 | 3,124 | 652 | ||
| chameneos-redux | |||||
| regex-dna | |||||
Clean Version 2.0 Language Report (HTML)
online book Functional Programming in Clean
Clean 2.2
Home Page: http://www.cs.kun.nl/~clean/index.html
Download: http://www.cs.kun.nl/~clean/Download/main/main.htm