÷

 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
 n-body±1/4±
 fasta1/4±
 pidigits1/2±
 reverse-complement1/21/3
 fannkuch1/241/2
 binary-trees1/3±
 spectral-norm1/61/3
 mandelbrot13×1/5851/2
 k-nucleotide14×±±

± 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
 n-body 
Pascal Free Pascal35.0435.041921308  0% 0% 0% 100%
C++ GNU g++23.8223.827881428  100% 0% 0% 0%
 fasta 
Pascal Free Pascal8.128.122121112  0% 0% 0% 100%
C++ GNU g++3.783.788161470  99% 1% 0% 0%
 pidigits 
Pascal Free Pascal6.596.591,060785  18% 100% 13% 22%
C++ GNU g++2.712.711,600682  0% 0% 0% 100%
 reverse-complement 
Pascal Free Pascal2.422.42122,792751  100% 1% 0% 0%
C++ GNU g++1.340.92245,4402275  68% 50% 14% 15%
 fannkuch 
Pascal Free Pascal58.7958.7848712  0% 100% 0% 0%
C++ GNU g++49.6113.631,1601186  81% 77% 100% 100%
 binary-trees 
Pascal Free Pascal31.2931.2865,620769  0% 100% 0% 0%
C++ GNU g++18.866.32173,332892  60% 74% 74% 71%
 spectral-norm 
Pascal Free Pascal18.7918.79184423  0% 100% 0% 0%
C++ GNU g++11.983.001,0321114  100% 100% 100% 100%
 mandelbrot 
Pascal Free Pascal78.2878.2852530  0% 0% 0% 100%
C++ GNU g++24.676.1730,436858  100% 100% 100% 100%
 k-nucleotide 
Pascal Free Pascal62.4262.42127,7802383  0% 0% 0% 100%
C++ GNU g++14.804.31132,4523415  81% 80% 99% 84%
 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