÷

 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
 fannkuch±1/231/2
 n-body±1/4±
 spectral-norm1/51/3
 reverse-complement1/21/3
 fasta1/4±
 binary-trees1/2±
 pidigits1/2±
 mandelbrot1/6371/2
 k-nucleotide±±

± 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
 fannkuch 
Pascal Free Pascal58.7958.7948712  0% 0% 0% 100%
C++ GNU g++50.0150.011,1241186  0% 0% 0% 100%
 n-body 
Pascal Free Pascal35.0435.041921308  0% 0% 0% 100%
C++ GNU g++23.8123.817881428  0% 1% 0% 100%
 spectral-norm 
Pascal Free Pascal18.7818.78184423  0% 0% 0% 100%
C++ GNU g++11.9411.941,0041114  0% 0% 1% 100%
 reverse-complement 
Pascal Free Pascal2.392.39123,816751  0% 0% 0% 100%
C++ GNU g++1.121.12245,4322275  1% 0% 1% 100%
 fasta 
Pascal Free Pascal8.128.122161112  0% 0% 0% 100%
C++ GNU g++3.763.778161470  0% 0% 0% 100%
 binary-trees 
Pascal Free Pascal31.1731.1765,616769  0% 0% 0% 100%
C++ GNU g++13.4713.47148,652892  0% 0% 0% 100%
 pidigits 
Pascal Free Pascal6.576.571,060785  0% 0% 0% 100%
C++ GNU g++2.712.711,596682  0% 0% 1% 100%
 mandelbrot 
Pascal Free Pascal78.3578.3448530  0% 0% 0% 100%
C++ GNU g++24.5524.5530,564858  0% 0% 0% 100%
 k-nucleotide 
Pascal Free Pascal62.7862.77127,7802383  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

 Pascal Free Pascal : imperative programming plus objects 

Pascal and its Successors - Niklaus Wirth

Free Pascal Compiler version 2.2.2 [2008/07/29] for i386

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

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

Revised BSD license