/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
 pidigits±1/2±
 fannkuch-redux±1/2±
 n-body1/54±
 fasta1/45±
 mandelbrot±±
 reverse-complement1/21/3
 fasta-redux1/103±
 binary-trees1/3±
 spectral-norm1/631/2
 k-nucleotide27×±±
 Pascal Free Pascal used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±27×

± 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
 pidigits 
Pascal Free Pascal2.922.921,020785  0% 0% 1% 100%
C++ GNU g++2.292.301,644682  0% 0% 0% 100%
 fannkuch-redux 
Pascal Free Pascal76.1319.087601018  100% 100% 100% 100%
C++ GNU g++50.3512.871,2401440  100% 94% 100% 98%
 n-body 
Pascal Free Pascal34.7534.7681308  0% 0% 0% 100%
C++ GNU g++19.3019.314281659  0% 100% 0% 0%
 fasta 
Pascal Free Pascal11.1711.1881112  0% 0% 0% 100%
C++ GNU g++6.166.173561266  0% 100% 0% 0%
 mandelbrot 
Pascal Free Pascal66.6216.6829,604748  100% 100% 100% 100%
C++ GNU g++24.316.1132,2961017  100% 100% 100% 100%
 reverse-complement 
Pascal Free Pascal2.082.09128,848751  0% 1% 100% 1%
C++ GNU g++1.060.68245,7122275  54% 50% 18% 37%
 fasta-redux 
Pascal Free Pascal8.058.0581227  0% 0% 100% 0%
C++ GNU g++2.002.008201474  0% 100% 0% 1%
 binary-trees 
Pascal Free Pascal40.7440.77131,380769  0% 0% 100% 0%
C++ GNU g++27.338.93360,432892  64% 87% 62% 96%
 spectral-norm 
Pascal Free Pascal15.7115.728423  0% 0% 0% 100%
C++ GNU g++10.022.525041044  100% 100% 100% 100%
 k-nucleotide 
Pascal Free Pascal80.9080.94130,5682383  0% 0% 100% 0%
C++ GNU g++10.322.97139,0163415  84% 99% 85% 82%
 regex-dna 
No program
C++ GNU g++0.060.06?695  14% 60% 40% 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 x86_64

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

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

Revised BSD license

  Home   Conclusions   License   Help