Ubuntu : Intel® Q6600® quad-core |
Do the Clean programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the Clean programs use a fraction of the time used by other programs or do they use several times more?
| Clean used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Programs | Time | Memory | Code | Reduced N |
| ↓ n-body | ± | ± | ± | |
| ↓ reverse-complement | 2× | 20× | ± | 2,500,000 |
| ↓ fasta | 2× | 2× | ± | |
| ↓ binary-trees | 5× | ± | 1/2 | |
| ↓ pidigits | 5× | 2× | ± | |
| ↓ fannkuch | 5× | 1/2 | ± | |
| ↓ spectral-norm | 6× | ± | 1/2 | |
| ↓ mandelbrot | 9× | 1/60 | 1/2 | |
| ↓ k-nucleotide | 17× | 10× | 1/2 | |
± look at the measurements and then look at the programs.
| Program & Logs | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| n-body | |||||
| Clean | 28.61 | 28.60 | 544 | 1587 | 0% 100% 0% 0% |
| C++ GNU g++ | 23.82 | 23.82 | 788 | 1428 | 100% 0% 0% 0% |
| reverse-complement N = 2,500,000 reduced workload | |||||
| Clean | 0.34 | 0.35 | 42,024 | 834 | 0% 97% 0% 0% |
| C++ GNU g++ | 0.54 | 0.22 | 2,108 | 1098 | 43% 100% 52% 55% |
| fasta | |||||
| Clean | 13.91 | 13.91 | 1,568 | 1420 | 0% 100% 0% 0% |
| C++ GNU g++ | 6.07 | 6.07 | 748 | 1266 | 100% 0% 0% 0% |
| binary-trees | |||||
| Clean | 30.73 | 30.73 | 131,592 | 539 | 0% 0% 0% 100% |
| C++ GNU g++ | 18.86 | 6.32 | 173,332 | 892 | 60% 74% 74% 71% |
| pidigits | |||||
| Clean | 13.73 | 13.73 | 2,848 | 563 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.71 | 2.71 | 1,600 | 682 | 0% 0% 0% 100% |
| fannkuch | |||||
| Clean | 69.08 | 69.09 | 532 | 925 | 0% 100% 0% 0% |
| C++ GNU g++ | 49.61 | 13.63 | 1,160 | 1186 | 81% 77% 100% 100% |
| spectral-norm | |||||
| Clean | 18.73 | 18.73 | 1,440 | 572 | 0% 0% 0% 100% |
| C++ GNU g++ | 11.98 | 3.00 | 1,032 | 1114 | 100% 100% 100% 100% |
| mandelbrot | |||||
| Clean | 57.18 | 57.18 | 508 | 506 | 0% 0% 0% 100% |
| C++ GNU g++ | 24.67 | 6.17 | 30,436 | 858 | 100% 100% 100% 100% |
| k-nucleotide | |||||
| Clean | 92.87 | 92.87 | 1,573,432 | 1511 | 0% 100% 0% 0% |
| C++ GNU g++ | 20.12 | 5.50 | 161,516 | 2673 | 89% 88% 89% 99% |
| 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