/mobile Handheld Friendly website

÷

 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.


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.

 Pascal Free Pascal used what fraction? used how many times more? 
Benchmark Time Memory Code
 fannkuch-redux±±±
 pidigits±1/2±
 fasta1/78±
 fasta-redux1/78±
 reverse-complement †1/21/3
 n-body1/78±
 binary-trees †1/3±
 mandelbrot±±
 k-nucleotide †±
 spectral-norm †1/1161/2
 Pascal Free Pascal used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±

† 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++49.7112.699961440  98% 100% 94% 100%
 pidigits 
Pascal Free Pascal3.763.76856785  0% 100% 1% 1%
C++ g++2.682.681,452682  1% 0% 1% 99%
 fasta 
Pascal Free Pascal7.947.9581112  0% 0% 0% 100%
C++ g++4.104.116201105  55% 0% 0% 46%
 fasta-redux 
Pascal Free Pascal4.784.7881227  1% 1% 0% 100%
C++ g++2.172.176201474  0% 0% 100% 1%
 reverse-complement 
Pascal Free Pascal2.172.17122,544751  0% 0% 0% 100% †
C++ g++1.220.84245,4282275  19% 31% 12% 88% †
 n-body 
Pascal Free Pascal34.6734.6881308  0% 100% 0% 0%
C++ g++10.4110.426201763  1% 1% 0% 100%
 binary-trees 
Pascal Free Pascal33.2433.2665,844769  96% 0% 0% 4% †
C++ g++19.066.60173,960892  60% 92% 75% 65% †
 mandelbrot 
Pascal Free Pascal83.7131.6031,900817  95% 35% 48% 88%
C++ g++19.645.1032,076726  95% 95% 95% 100%
 k-nucleotide 
Pascal Free Pascal46.8846.91128,3962383  89% 0% 0% 11% †
C++ g++23.397.40138,1001252  73% 74% 74% 97% †
 spectral-norm 
Pascal Free Pascal15.7715.778423  0% 100% 1% 1% †
C++ g++7.962.009241044  100% 100% 100% 100% †
 regex-dna 
No program
C++ g++0.070.08?695  50% 11% 0% 67%

† 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