÷

 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
 n-body±±±
 fannkuch±1/2±
 spectral-norm±1/2
 reverse-complement±± 2,500,000
 binary-trees±1/2
 mandelbrot1/601/2
 fasta±
 pidigits±
 k-nucleotide1/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
 n-body 
Clean28.5728.575441587  0% 0% 0% 100%
C++ GNU g++23.8123.817881428  0% 1% 0% 100%
 fannkuch 
Clean68.8868.88532925  0% 0% 0% 100%
C++ GNU g++50.0150.011,1241186  0% 0% 0% 100%
 spectral-norm 
Clean18.7318.731,440572  0% 1% 0% 100%
C++ GNU g++11.9411.941,0041114  0% 0% 1% 100%
 reverse-complement N = 2,500,000 reduced workload 
Clean0.340.3555,656834  0% 4% 0% 100%
C++ GNU g++0.190.19?1098  0% 0% 0% 100%
 binary-trees 
Clean30.5630.56131,592539  0% 0% 1% 100%
C++ GNU g++13.4713.47148,652892  0% 0% 0% 100%
 mandelbrot 
Clean57.1757.17508506  0% 0% 0% 100%
C++ GNU g++24.5524.5530,564858  0% 0% 0% 100%
 fasta 
Clean14.2014.201,5641420  0% 1% 0% 100%
C++ GNU g++3.763.778161470  0% 0% 0% 100%
 pidigits 
Clean13.7113.712,852563  0% 0% 0% 100%
C++ GNU g++2.712.711,596682  0% 0% 1% 100%
 k-nucleotide 
Clean124.30124.291,049,1481511  0% 0% 0% 100%
C++ GNU g++13.6113.61132,8643415  0% 0% 0% 100%
 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