÷

 Step 1 : Are the Pascal Free Pascal 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 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.

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 Reduced N
 binary-trees1/21/2±
 sum-file±1/5±
 nsieve±±±
 pidigits±±±
 k-nucleotide±±
 nsieve-bits±±±
 reverse-complement±±±
 fannkuch±±
 n-body±
 recursive±
 partial-sums±±
 mandelbrot±±
 fasta±±
 spectral-norm±

± 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.

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
 binary-trees 
Pascal Free Pascal3.914,172769  
C++ GNU g++5.917,000541  
 sum-file 
Pascal Free Pascal5.733,100188  
C++ GNU g++6.2914,864260  
 nsieve 
Pascal Free Pascal3.6310,048301  
C++ GNU g++3.7610,788313  
 pidigits 
Pascal Free Pascal2.803,120785  
C++ GNU g++2.853,124652  
 k-nucleotide 
Pascal Free Pascal7.8710,3682380  
C++ GNU g++7.639,3121380  
 nsieve-bits 
Pascal Free Pascal3.223,116476  
C++ GNU g++2.803,328494  
 reverse-complement 
Pascal Free Pascal0.8012,952741  
C++ GNU g++0.6313,288810  
 fannkuch 
Pascal Free Pascal12.443,096712  
C++ GNU g++8.283,096554  
 n-body 
Pascal Free Pascal19.823,1041308  
C++ GNU g++12.789361705  
 recursive 
Pascal Free Pascal4.043,100462  
C++ GNU g++2.591,008566  
 partial-sums 
Pascal Free Pascal3.153,104496  
C++ GNU g++1.843,096531  
 mandelbrot 
Pascal Free Pascal5.653,292401  
C++ GNU g++3.003,312584  
 fasta 
Pascal Free Pascal24.383,1161189  
C++ GNU g++11.693,1201248  
 spectral-norm 
Pascal Free Pascal44.5918,484407  
C++ GNU g++17.493,092442  
 chameneos-redux
   No program
 regex-dna
   No program

 Measurements for all the accepted programs

 Pascal Free Pascal : imperative programming plus objects 

Pascal and its Successors - Niklaus Wirth

Free Pascal Compiler version 2.2.0

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

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

Revised BSD license