÷

 Step 1 : Are the Clean programs faster? At a glance.

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.


 Step 2 : Are the Clean programs faster? Approximately.

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
 fannkuch±1/2±
 n-body1/2±
 spectral-norm±1/2
 mandelbrot1/531/2
 binary-trees±1/2
 fasta±
 k-nucleotide11×15×1/2

± read the measurements and then read the program source code.

 Step 3 : Are the Clean programs faster? Measurements.

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 
Clean0.03?834  
C++ GNU g++0.03?1098  
 fannkuch 
Clean66.3666.35620925  0% 0% 0% 100%
C++ GNU g++50.3450.341,2601186  0% 0% 0% 100%
 n-body 
Clean33.1333.135681587  0% 1% 0% 100%
C++ GNU g++20.5720.569321428  0% 0% 0% 100%
 spectral-norm 
Clean20.2520.251,444572  0% 1% 0% 100%
C++ GNU g++11.9011.891,1561114  0% 0% 0% 100%
 mandelbrot 
Clean64.4864.48588506  0% 0% 0% 100%
C++ GNU g++25.0325.0331,448858  0% 0% 0% 100%
 binary-trees 
Clean44.7144.72262,708539  0% 0% 0% 100%
C++ GNU g++16.5216.51296,208892  0% 1% 0% 100%
 fasta 
Clean11.4111.411,6241420  0% 0% 0% 100%
C++ GNU g++2.262.269641470  1% 1% 0% 100%
 k-nucleotide 
Clean124.87124.872,097,7361511  0% 0% 0% 100%
C++ GNU g++11.4111.41142,2643415  0% 0% 0% 100%
 pidigits
CleanFailed
 chameneos-redux
   No program
 regex-dna
   No program

 Measurements for all the accepted programs

 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