÷

 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
 spectral-norm1/61/3
 pidigits1/2±
 n-body1/5±
 fannkuch1/261/2
 mandelbrot1/6051/2
 reverse-complement1/21/3
 binary-trees1/2±
 fasta1/4±
 k-nucleotide11×±±

± 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
 spectral-norm 
Pascal Free Pascal18.7918.79192423  0% 0% 0% 100%
C++ GNU g++11.9011.891,1561114  0% 0% 0% 100%
 pidigits 
Pascal Free Pascal6.656.651,112785  0% 0% 0% 100%
C++ GNU g++3.793.791,696682  0% 0% 1% 100%
 n-body 
Pascal Free Pascal36.4636.452041308  0% 0% 0% 100%
C++ GNU g++20.5720.569321428  0% 0% 0% 100%
 fannkuch 
Pascal Free Pascal130.22130.2148712  0% 0% 0% 100%
C++ GNU g++50.3450.341,2601186  0% 0% 0% 100%
 mandelbrot 
Pascal Free Pascal71.0671.0652530  0% 0% 0% 100%
C++ GNU g++25.0325.0331,448858  0% 0% 0% 100%
 reverse-complement 
Pascal Free Pascal4.024.02122,796751  0% 0% 0% 100%
C++ GNU g++1.031.03245,6402275  1% 0% 1% 100%
 binary-trees 
Pascal Free Pascal65.3265.31131,292769  0% 0% 0% 100%
C++ GNU g++16.5216.51296,208892  0% 1% 0% 100%
 fasta 
Pascal Free Pascal13.0913.082201112  0% 1% 0% 100%
C++ GNU g++2.262.269641470  1% 1% 0% 100%
 k-nucleotide 
Pascal Free Pascal125.05125.05129,8482380  0% 0% 0% 100%
C++ GNU g++11.4111.41142,2643415  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 x86_64

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

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

Revised BSD license