÷

 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.


 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
 n-body1/2±
 fannkuch1/2±
 binary-trees±1/2
 fasta±
 spectral-norm±1/2
 mandelbrot10×1/491/2
 k-nucleotide23×12×1/2

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

 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.020.03?834  0% 0% 0% 100%
C++ GNU g++0.030.02?1098  100% 50% 50% 0%
 n-body 
Clean33.0833.085721587  0% 0% 0% 100%
C++ GNU g++20.5720.569321428  0% 0% 0% 100%
 fannkuch 
Clean66.3666.36620925  0% 0% 100% 0%
C++ GNU g++49.7513.741,3001186  80% 76% 100% 100%
 binary-trees 
Clean44.8144.81262,704539  0% 0% 100% 0%
C++ GNU g++28.559.01357,820892  71% 62% 95% 82%
 fasta 
Clean11.4111.411,6241420  0% 0% 100% 0%
C++ GNU g++2.262.269641470  100% 0% 1% 0%
 spectral-norm 
Clean20.2520.251,448572  0% 0% 0% 100%
C++ GNU g++11.892.991,1961114  100% 99% 99% 99%
 mandelbrot 
Clean64.3464.34592506  100% 0% 0% 0%
C++ GNU g++25.046.2928,824858  99% 99% 100% 100%
 k-nucleotide 
Clean124.87124.872,097,7401511  0% 100% 0% 0%
C++ GNU g++20.275.54177,1482673  99% 88% 90% 93%
 pidigits
CleanFailed
 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