÷

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

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

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 ~ speed and size.

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
 fannkuch±1/2
 spectral-norm±±
 n-body±1/2±
 partial-sums±1/2±
 recursive±1/2±
 mandelbrot1/21/2
 fasta±
 nsieve±
 nsieve-bits±±
 pidigits±
 k-nucleotide±
 reverse-complement±
 binary-trees1/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 ~ speed and size.

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
 fannkuch 
Clean0.06488925  
C++ GNU g++0.06844554  
 spectral-norm 
Clean27.321,404572  
C++ GNU g++23.84900442  
 n-body 
Clean17.285201587  
C++ GNU g++14.629321705  
 partial-sums 
Clean4.18508577  
C++ GNU g++3.21952709  
 recursive 
Clean0.23480422  
C++ GNU g++0.16884566  
 mandelbrot 
Clean0.22472506  
C++ GNU g++0.148961097  
 fasta 
Clean28.772,8201420  
C++ GNU g++18.727881248  
 nsieve 
Clean2.089,324394  
C++ GNU g++1.291,468379  
 nsieve-bits 
Clean1.021,564464  
C++ GNU g++0.621,440494  
 pidigits 
Clean0.121,736563  
C++ GNU g++0.07948652  
 k-nucleotide 
Clean13.6178,0321511  
C++ GNU g++7.469,3041380  
 reverse-complement 
Clean1.2043,080834  
C++ GNU g++0.5413,288810  
 binary-trees 
Clean1.088,748538  
C++ GNU g++0.262,192814  
 chameneos-redux 
No program
C++ GNU g++0.219361729  
 regex-dna 
No program
C++ GNU g++1.142,9601588  

 Step 4 : Are there other Clean programs for these benchmarks?

Remember - those are just the fastest Clean and C++ GNU g++ programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Clean.

Maybe one of those other Clean programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Clean and C++ GNU g++ programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 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

  Home   Flawed   Fastest   License   Help