÷

 Step 1 : Are the Pascal Free Pascal 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 Pascal Free Pascal program used compared to the fastest C++ GNU g++ program.


 Step 2 : Are the Pascal Free Pascal 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 Pascal Free Pascal program used compared to the fastest C++ GNU g++ program.

 Pascal Free Pascal used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna1/5
 fannkuch±1/9±
 pidigits±1/2±
 nsieve-bits±1/2±
 partial-sums±1/11±
 n-body±1/3±
 spectral-norm±1/3±
 k-nucleotide±±
 reverse-complement±±±
 fasta±1/2±
 nsieve±
 recursive1/6±
 mandelbrot1/91/2
 binary-trees15×±

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

 Step 3 : Are the Pascal Free Pascal 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 Pascal Free Pascal 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
 regex-dna 
Pascal Free Pascal1.1019,6042932  
C++ GNU g++5.5812,7041588  
 fannkuch 
Pascal Free Pascal0.0692712  
C++ GNU g++0.06844554  
 pidigits 
Pascal Free Pascal0.07520785  
C++ GNU g++0.07948652  
 nsieve-bits 
Pascal Free Pascal0.68932476  
C++ GNU g++0.621,440494  
 partial-sums 
Pascal Free Pascal3.5888625  
C++ GNU g++3.21952709  
 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  
 nsieve 
Pascal Free Pascal2.085,092301  
C++ GNU g++1.291,468379  
 recursive 
Pascal Free Pascal0.27160462  
C++ GNU g++0.16884566  
 mandelbrot 
Pascal Free Pascal0.24100530  
C++ GNU g++0.148961097  
 binary-trees 
Pascal Free Pascal3.924,224769  
C++ GNU g++0.262,192814  
 chameneos-redux 
No program
C++ GNU g++0.219361729  

 Step 4 : Are there other Pascal Free Pascal programs for these benchmarks?

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

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

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

Remember - those are just the fastest Pascal Free Pascal 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.

 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

  Home   Flawed   Fastest   License   Help