/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
 fannkuch-redux±1/2±
 fasta±1/36±
 pidigits±1/2±
 fasta-redux1/77±
 n-body1/40±
 reverse-complement1/21/3
 mandelbrot±±
 binary-trees1/3±
 spectral-norm1/491/2
 k-nucleotide13×±±
 Pascal Free Pascal used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±12×13×

± 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
 fannkuch-redux 
Pascal Free Pascal64.9116.276641018  100% 100% 100% 100%
C++ GNU g++61.4215.771,0201439  100% 97% 97% 96%
 fasta 
Pascal Free Pascal7.957.9681112  0% 0% 0% 100%
C++ GNU g++6.306.312881266  0% 0% 100% 0%
 pidigits 
Pascal Free Pascal3.763.77824785  0% 0% 100% 0%
C++ GNU g++2.762.761,452682  0% 0% 100% 0%
 fasta-redux 
Pascal Free Pascal4.794.8081227  0% 0% 1% 100%
C++ GNU g++2.932.946161474  1% 0% 0% 100%
 n-body 
Pascal Free Pascal34.7134.7281308  100% 0% 0% 0%
C++ GNU g++20.1320.143201659  0% 0% 100% 0%
 reverse-complement 
Pascal Free Pascal2.192.19130,436751  0% 1% 100% 1%
C++ GNU g++1.250.86245,4562275  51% 15% 33% 49%
 mandelbrot 
Pascal Free Pascal83.7331.6032,076817  94% 95% 35% 41%
C++ GNU g++23.745.9732,0961017  99% 99% 99% 100%
 binary-trees 
Pascal Free Pascal33.2633.2865,840769  0% 0% 0% 100%
C++ GNU g++17.075.78178,988892  90% 71% 77% 59%
 spectral-norm 
Pascal Free Pascal15.7715.778423  0% 0% 0% 100%
C++ GNU g++10.032.523881044  100% 100% 100% 100%
 k-nucleotide 
Pascal Free Pascal48.7048.72128,3962383  0% 0% 100% 0%
C++ GNU g++12.133.65132,0523415  83% 81% 95% 76%
 regex-dna 
No program
C++ GNU g++0.070.08?695  50% 25% 63% 0%

 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 i386

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

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

Revised BSD license

  Home   Conclusions   License   Help