÷

 Are the Pascal Free Pascal programs faster?

Do the Pascal Free Pascal programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the Pascal Free Pascal programs use a fraction of the time used by other programs or do they use several times more?


 Pascal Free Pascal used what fraction? used how many times more? 
Programs Time Memory Code Reduced N
↓ sum-file±1/9±
↓ fannkuch±1/9±
↓ binary-trees±1/2±
↓ pidigits±1/2±
↓ nsieve±±±
↓ partial-sums±1/3±
↓ nsieve-bits±±±
↓ n-body±1/3±
↓ spectral-norm±1/3±
↓ k-nucleotide±±
↓ reverse-complement±±±
↓ fasta±1/2±
↓ recursive1/2±
↓ mandelbrot1/91/2

± look at the measurements and then look at the programs.

 Are the Pascal Free Pascal programs faster?

Program & Logs CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 sum-file 
Pascal Free Pascal4.9492188  
C++ GNU g++6.47852260  
 fannkuch 
Pascal Free Pascal6.6296712  
C++ GNU g++7.78844554  
 binary-trees 
Pascal Free Pascal3.924,224769  
C++ GNU g++4.476,996541  
 pidigits 
Pascal Free Pascal1.63620785  
C++ GNU g++1.661,052652  
 nsieve 
Pascal Free Pascal2.085,092301  
C++ GNU g++2.085,764313  
 partial-sums 
Pascal Free Pascal4.12272496  
C++ GNU g++4.05852531  
 nsieve-bits 
Pascal Free Pascal4.152,800476  
C++ GNU g++3.863,316494  
 n-body 
Pascal Free Pascal16.912721308  
C++ GNU g++14.629321705  
 spectral-norm 
Pascal Free Pascal29.13260423  
C++ GNU g++23.84900442  
 k-nucleotide 
Pascal Free Pascal9.6110,4242380  
C++ GNU g++7.469,3041380  
 reverse-complement 
Pascal Free Pascal0.7313,004751  
C++ GNU g++0.5413,288810  
 fasta 
Pascal Free Pascal25.453721189  
C++ GNU g++18.727881248  
 recursive 
Pascal Free Pascal4.14460462  
C++ GNU g++2.401,008566  
 mandelbrot 
Pascal Free Pascal5.91100530  
C++ GNU g++3.028961097  
 chameneos-redux
   No program
 regex-dna
   No program

 Pascal Free Pascal : imperative programming plus objects 

Pascal and its Successors - Niklaus Wirth

Free Pascal Compiler version 2.2.0 [2007/09/14] for i386

Home Page: http://www.freepascal.org

Download: http://www.freepascal.org/download.html

Revised BSD license