/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
 fannkuch-redux †1/2 ±
 pidigits± ±
 fasta ±
 fasta-redux ±
 reverse-complement †1/21/3
 n-body ±
 mandelbrot ±
 k-nucleotide †±
 spectral-norm † 1/2
 binary-trees †±±
 Pascal Free Pascal used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/2

† possible mismatch - one-core program compared to multi-core program.

± 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
 fannkuch-redux 
Pascal Free Pascal65.3116.367481018  100% 100% 100% 100% †
C++ g++27.2827.302961150  1% 1% 1% 100% †
 pidigits 
Pascal Free Pascal3.763.76856785  0% 100% 1% 1%
C++ g++2.682.681,464682  1% 0% 2% 100%
 fasta 
Pascal Free Pascal7.947.9581112  0% 0% 0% 100%
C++ g++4.224.238841286  1% 0% 0% 100%
 fasta-redux 
Pascal Free Pascal4.784.7881227  1% 1% 0% 100%
C++ g++2.162.166321474  2% 0% 100% 1%
 reverse-complement 
Pascal Free Pascal2.172.17122,544751  0% 0% 0% 100% †
C++ g++1.220.84245,4562275  29% 33% 49% 35% †
 n-body 
Pascal Free Pascal34.6734.6881308  0% 100% 0% 0%
C++ g++9.089.083441545  1% 0% 0% 100%
 mandelbrot 
Pascal Free Pascal83.7131.6031,900817  95% 35% 48% 88%
C++ g++23.475.9032,0881017  99% 99% 99% 100%
 k-nucleotide 
Pascal Free Pascal46.8846.91128,3962383  89% 0% 0% 11% †
C++ g++23.317.26137,2161252  74% 97% 76% 75% †
 spectral-norm 
Pascal Free Pascal15.7715.778423  0% 100% 1% 1% †
C++ g++7.962.009361044  100% 100% 100% 100% †
 binary-trees 
Pascal Free Pascal33.2433.2665,844769  96% 0% 0% 4% †
C++ g++12.244.0988,368919  70% 69% 95% 62% †
 regex-dna 
No program
C++ g++0.070.05?695  80% 0% 67% 17%

† possible mismatch - one-core program compared to multi-core program.

 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