x64 Ubuntu : Intel® Q6600® quad-core |
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 |
| reverse-complement | ± | ± | ± | 250,000 |
| n-body | 2× | 1/2 | ± | |
| fannkuch | 5× | 1/2 | ± | |
| binary-trees | 5× | ± | 1/2 | |
| fasta | 5× | 2× | ± | |
| spectral-norm | 7× | ± | 1/2 | |
| mandelbrot | 10× | 1/49 | 1/2 | |
| k-nucleotide | 23× | 12× | 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.
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 |
|---|---|---|---|---|---|
| reverse-complement N = 250,000 reduced workload | |||||
| Clean | 0.02 | 0.03 | ? | 834 | 0% 0% 0% 100% |
| C++ GNU g++ | 0.03 | 0.02 | ? | 1098 | 100% 50% 50% 0% |
| n-body | |||||
| Clean | 33.08 | 33.08 | 572 | 1587 | 0% 0% 0% 100% |
| C++ GNU g++ | 20.57 | 20.56 | 932 | 1428 | 0% 0% 0% 100% |
| fannkuch | |||||
| Clean | 66.36 | 66.36 | 620 | 925 | 0% 0% 100% 0% |
| C++ GNU g++ | 49.75 | 13.74 | 1,300 | 1186 | 80% 76% 100% 100% |
| binary-trees | |||||
| Clean | 44.81 | 44.81 | 262,704 | 539 | 0% 0% 100% 0% |
| C++ GNU g++ | 28.55 | 9.01 | 357,820 | 892 | 71% 62% 95% 82% |
| fasta | |||||
| Clean | 11.41 | 11.41 | 1,624 | 1420 | 0% 0% 100% 0% |
| C++ GNU g++ | 2.26 | 2.26 | 964 | 1470 | 100% 0% 1% 0% |
| spectral-norm | |||||
| Clean | 20.25 | 20.25 | 1,448 | 572 | 0% 0% 0% 100% |
| C++ GNU g++ | 11.89 | 2.99 | 1,196 | 1114 | 100% 99% 99% 99% |
| mandelbrot | |||||
| Clean | 64.34 | 64.34 | 592 | 506 | 100% 0% 0% 0% |
| C++ GNU g++ | 25.04 | 6.29 | 28,824 | 858 | 99% 99% 100% 100% |
| k-nucleotide | |||||
| Clean | 124.87 | 124.87 | 2,097,740 | 1511 | 0% 100% 0% 0% |
| C++ GNU g++ | 20.27 | 5.54 | 177,148 | 2673 | 99% 88% 90% 93% |
| pidigits | |||||
| Clean | |||||
| chameneos-redux | |||||
| regex-dna | |||||
Clean Version 2.0 Language Report (HTML)
online book Functional Programming in Clean
2.2
Home Page: http://www.cs.kun.nl/~clean/index.html
Download: http://www.cs.kun.nl/~clean/Download/main/main.htm