/mobile Handheld Friendly website

vs

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

Each chart bar shows, for one unidentified benchmark, how much the fastest Pascal Free Pascal program used compared to the fastest C++ g++ program.

(Memory use is only compared for tasks that require memory to be allocated.)


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

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

Each table row shows, for one named benchmark, how much the fastest Pascal Free Pascal program used compared to the fastest C++ g++ program.

(Memory use is only compared for tasks that require memory to be allocated.)

 Pascal Free Pascal used what fraction? used how many times more? 
Benchmark Time Memory Code
 pidigits± ±
 fasta ±
 spectral-norm 1/2
 reverse-complement1/21/3
 k-nucleotide±
 fasta-redux ±
 fannkuch-redux ±
 binary-trees±±
 mandelbrot 1/2
 n-body ±
 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.

 3 : Are the Pascal Free Pascal programs faster? Measurements.

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

For each named benchmark, measurements of the fastest Pascal Free Pascal program are shown for comparison against measurements of the fastest C++ g++ program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 pidigits 
Pascal Free Pascal3.763.76856785  1% 2% 0% 100%
C++ g++2.682.681,464682  1% 1% 0% 100%
 fasta 
Pascal Free Pascal7.927.9381112  1% 1% 0% 100%
C++ g++4.224.238841286  1% 0% 0% 100%
 spectral-norm 
Pascal Free Pascal15.7615.778423  0% 1% 0% 100%
C++ g++7.927.939361044  0% 1% 1% 100%
 reverse-complement 
Pascal Free Pascal2.162.18128,584751  1% 1% 0% 100%
C++ g++1.061.07245,4082275  0% 0% 2% 99%
 k-nucleotide 
Pascal Free Pascal48.6448.66128,3962383  0% 0% 0% 100%
C++ g++23.8523.87137,1241252  1% 1% 0% 100%
 fasta-redux 
Pascal Free Pascal4.794.8081227  0% 1% 0% 100%
C++ g++2.162.166321474  0% 0% 2% 100%
 fannkuch-redux 
Pascal Free Pascal65.3365.357441018  0% 0% 0% 100%
C++ g++27.2227.232961150  1% 0% 0% 100%
 binary-trees 
Pascal Free Pascal33.2533.2765,828769  0% 1% 1% 100%
C++ g++10.3610.3867,008919  0% 1% 0% 100%
 mandelbrot 
Pascal Free Pascal78.7478.768530  0% 0% 0% 100%
C++ g++23.4523.4632,0881017  0% 0% 1% 100%
 n-body 
Pascal Free Pascal34.7134.7381308  0% 0% 0% 100%
C++ g++9.069.073441545  2% 3% 2% 100%
 regex-dna 
No program
C++ g++0.050.06?695  0% 0% 0% 83%

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

Remember - those are just the fastest Pascal Free Pascal and C++ 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.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Pascal Free Pascal and C++ 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 i386

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

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

Revised BSD license

  Home   Conclusions   License   Play