÷

 Are the Clean programs faster?

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-complement20×± 2,500,000
↓ fasta±
↓ binary-trees±1/2
↓ pidigits±
↓ fannkuch1/2±
↓ spectral-norm±1/2
↓ mandelbrot1/601/2
↓ k-nucleotide17×10×1/2

± look at the measurements and then look at the programs.

 Are the Clean programs faster?

Program & Logs CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 n-body 
Clean28.6128.605441587  0% 100% 0% 0%
C++ GNU g++23.8223.827881428  100% 0% 0% 0%
 reverse-complement N = 2,500,000 reduced workload 
Clean0.340.3542,024834  0% 97% 0% 0%
C++ GNU g++0.540.222,1081098  43% 100% 52% 55%
 fasta 
Clean13.9113.911,5681420  0% 100% 0% 0%
C++ GNU g++6.076.077481266  100% 0% 0% 0%
 binary-trees 
Clean30.7330.73131,592539  0% 0% 0% 100%
C++ GNU g++18.866.32173,332892  60% 74% 74% 71%
 pidigits 
Clean13.7313.732,848563  0% 0% 0% 100%
C++ GNU g++2.712.711,600682  0% 0% 0% 100%
 fannkuch 
Clean69.0869.09532925  0% 100% 0% 0%
C++ GNU g++49.6113.631,1601186  81% 77% 100% 100%
 spectral-norm 
Clean18.7318.731,440572  0% 0% 0% 100%
C++ GNU g++11.983.001,0321114  100% 100% 100% 100%
 mandelbrot 
Clean57.1857.18508506  0% 0% 0% 100%
C++ GNU g++24.676.1730,436858  100% 100% 100% 100%
 k-nucleotide 
Clean92.8792.871,573,4321511  0% 100% 0% 0%
C++ GNU g++20.125.50161,5162673  89% 88% 89% 99%
 chameneos-redux
   No program
 regex-dna
   No program

 Clean : lazy & strict pure functional programming 

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

Revised BSD license