/mobile Handheld Friendly website

÷

 Step 1 : Are the Pascal Free Pascal programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

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.


Look at speed another way - look at a box plot of Time-used data.

 Step 2 : Are the Pascal Free Pascal programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

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
 pidigits±1/2±
 fannkuch-redux±±
 spectral-norm1/951/2
 n-body1/53±
 fasta1/45±
 reverse-complement1/21/3
 binary-trees1/2±
 mandelbrot±±
 fasta-redux1/102±
 k-nucleotide±±
 Pascal Free Pascal used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±

± 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 ~ speed and size.

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 Pascal2.922.921,024785  0% 2% 1% 100%
C++ GNU g++2.272.271,648682  0% 0% 0% 100%
 fannkuch-redux 
Pascal Free Pascal76.1376.151,0081018  0% 0% 0% 100%
C++ GNU g++50.3550.361,2361440  0% 0% 0% 100%
 spectral-norm 
Pascal Free Pascal15.7115.728423  0% 0% 0% 100%
C++ GNU g++9.9910.007561044  0% 0% 0% 100%
 n-body 
Pascal Free Pascal34.7434.7581308  0% 0% 0% 100%
C++ GNU g++19.3019.314241659  0% 0% 0% 100%
 fasta 
Pascal Free Pascal11.1711.1881112  0% 0% 0% 100%
C++ GNU g++6.166.163561266  0% 0% 0% 100%
 reverse-complement 
Pascal Free Pascal2.082.09129,376751  0% 2% 0% 100%
C++ GNU g++0.870.89229,5162275  0% 0% 0% 100%
 binary-trees 
Pascal Free Pascal41.4641.49131,360769  0% 0% 0% 100%
C++ GNU g++17.2317.29296,252892  0% 0% 0% 100%
 mandelbrot 
Pascal Free Pascal66.6266.6430,748748  0% 0% 0% 100%
C++ GNU g++24.2824.2932,3001017  0% 0% 0% 100%
 fasta-redux 
Pascal Free Pascal8.048.0481227  0% 0% 0% 100%
C++ GNU g++2.002.008161474  1% 1% 0% 100%
 k-nucleotide 
Pascal Free Pascal83.0383.07130,5682383  0% 0% 0% 100%
C++ GNU g++9.859.87142,1243415  0% 0% 1% 100%
 regex-dna 
No program
C++ GNU g++0.050.08?695  11% 0% 0% 89%

 Step 4 : Are there other Pascal Free Pascal programs for these benchmarks?

Remember - those are just the fastest Pascal Free Pascal and C++ GNU g++ programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Pascal Free Pascal.

Maybe one of those other Pascal Free Pascal programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Pascal Free Pascal and C++ GNU g++ programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Pascal Free Pascal : imperative programming plus objects 

Pascal and its Successors - Niklaus Wirth

Free Pascal Compiler version 2.6.0 [2011/12/23] for x86_64

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

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

Revised BSD license

  Home   Conclusions   License   Help