÷

 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.


 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
 pidigits1/2±
 n-body1/5±
 reverse-complement1/21/3
 fasta1/4±
 spectral-norm1/61/3
 binary-trees1/3±
 fannkuch1/251/2
 mandelbrot11×1/5151/2
 k-nucleotide23×±±

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

 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
 pidigits 
Pascal Free Pascal6.656.651,108785  0% 0% 100% 0%
C++ GNU g++3.793.791,696682  0% 100% 0% 0%
 n-body 
Pascal Free Pascal36.3336.342041308  0% 0% 100% 0%
C++ GNU g++20.5720.569321428  0% 0% 0% 100%
 reverse-complement 
Pascal Free Pascal4.024.03122,892751  0% 0% 100% 0%
C++ GNU g++1.210.85245,6442275  37% 13% 80% 14%
 fasta 
Pascal Free Pascal13.0813.082201112  0% 0% 99% 0%
C++ GNU g++2.262.269641470  100% 0% 1% 0%
 spectral-norm 
Pascal Free Pascal18.7918.79192423  0% 0% 0% 100%
C++ GNU g++11.892.991,1961114  100% 99% 99% 99%
 binary-trees 
Pascal Free Pascal62.7762.77131,292769  0% 0% 100% 0%
C++ GNU g++28.559.01357,820892  71% 62% 95% 82%
 fannkuch 
Pascal Free Pascal130.04130.0352712  0% 0% 0% 100%
C++ GNU g++49.7513.741,3001186  80% 76% 100% 100%
 mandelbrot 
Pascal Free Pascal71.0271.0256530  0% 0% 0% 100%
C++ GNU g++25.046.2928,824858  99% 99% 100% 100%
 k-nucleotide 
Pascal Free Pascal126.78126.79129,8482380  0% 0% 0% 100%
C++ GNU g++20.275.54177,1482673  99% 88% 90% 93%
 chameneos-redux
   No program
 regex-dna
   No program

 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