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

† 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 Pascal75.3418.878321018  100% 100% 100% 100% †
C++ g++22.6922.703601150  1% 0% 1% 100% †
 pidigits 
Pascal Free Pascal2.782.781,024785  0% 0% 0% 100%
C++ g++2.292.301,656682  1% 0% 0% 100%
 fasta 
Pascal Free Pascal11.1711.1881112  26% 0% 0% 74%
C++ g++4.234.231,0721286  1% 95% 1% 5%
 mandelbrot 
Pascal Free Pascal66.6116.6729,544748  100% 100% 100% 100%
C++ g++23.775.9732,3881017  100% 100% 100% 100%
 reverse-complement 
Pascal Free Pascal2.082.08131,492751  0% 0% 100% 1% †
C++ g++1.020.65247,5082275  17% 64% 34% 48% †
 n-body 
Pascal Free Pascal34.7434.7581308  66% 0% 0% 34%
C++ g++9.359.354321544  98% 1% 3% 1%
 fasta-redux 
Pascal Free Pascal8.048.0481227  0% 0% 100% 0%
C++ g++1.781.788241474  0% 2% 100% 1%
 spectral-norm 
Pascal Free Pascal15.7115.728423  34% 0% 0% 66% †
C++ g++10.092.544961044  99% 99% 100% 100% †
 binary-trees 
Pascal Free Pascal40.7940.82131,380769  0% 0% 100% 0% †
C++ g++15.294.73132,668919  94% 86% 87% 59% †
 k-nucleotide 
Pascal Free Pascal86.0586.09130,5682383  91% 0% 0% 9% †
C++ g++24.797.34154,7841252  81% 80% 81% 97% †
 regex-dna 
No program
C++ g++0.070.09?695  0% 10% 44% 70%

† 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 x86_64

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

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

Revised BSD license

  Home   Conclusions   License   Play