÷

 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
↓ sum-file1/21/21/2
↓ fannkuch±1/2
↓ binary-trees±±
↓ nsieve±±
↓ partial-sums±1/2±
↓ spectral-norm±±
↓ n-body±1/2±
↓ fasta±
↓ recursive1/2±
↓ mandelbrot1/21/2
↓ nsieve-bits±±
↓ k-nucleotide±
↓ pidigits±
↓ reverse-complement±

± 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
 sum-file 
Clean2.74464152  
C++ GNU g++6.47852260  
 fannkuch 
Clean6.78496925  
C++ GNU g++7.78844554  
 binary-trees 
Clean3.9816,868539  
C++ GNU g++4.476,996541  
 nsieve 
Clean2.089,324394  
C++ GNU g++2.085,764313  
 partial-sums 
Clean4.18508577  
C++ GNU g++4.05852531  
 spectral-norm 
Clean27.321,404572  
C++ GNU g++23.84900442  
 n-body 
Clean17.285201587  
C++ GNU g++14.629321705  
 fasta 
Clean28.772,8201420  
C++ GNU g++18.727881248  
 recursive 
Clean3.80596422  
C++ GNU g++2.401,008566  
 mandelbrot 
Clean4.96472506  
C++ GNU g++3.028961097  
 nsieve-bits 
Clean6.414,844464  
C++ GNU g++3.863,316494  
 k-nucleotide 
Clean13.6178,0321511  
C++ GNU g++7.469,3041380  
 pidigits 
Clean3.422,624563  
C++ GNU g++1.661,052652  
 reverse-complement 
Clean1.2043,080834  
C++ GNU g++0.5413,288810  
 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

version 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