/mobile Handheld Friendly website
x64 Ubuntu : Intel® Q6600® quad-core |
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.
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-body | 2× | 1/54 | ± | |
| fasta | 2× | 1/45 | ± | |
| mandelbrot | 3× | ± | ± | |
| reverse-complement | 3× | 1/2 | 1/3 | |
| fasta-redux | 4× | 1/103 | ± | |
| binary-trees | 5× | 1/3 | ± | |
| spectral-norm | 6× | 1/63 | 1/2 | |
| k-nucleotide | 27× | ± | ± | |
| Pascal Free Pascal used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | ± | ± | 2× | 3× | 5× | 9× | 27× |
± read the measurements and then read the program source code.
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 Pascal | 2.92 | 2.92 | 1,020 | 785 | 0% 0% 1% 100% |
| C++ GNU g++ | 2.29 | 2.30 | 1,644 | 682 | 0% 0% 0% 100% |
| fannkuch-redux | |||||
| Pascal Free Pascal | 76.13 | 19.08 | 760 | 1018 | 100% 100% 100% 100% |
| C++ GNU g++ | 50.35 | 12.87 | 1,240 | 1440 | 100% 94% 100% 98% |
| n-body | |||||
| Pascal Free Pascal | 34.75 | 34.76 | 8 | 1308 | 0% 0% 0% 100% |
| C++ GNU g++ | 19.30 | 19.31 | 428 | 1659 | 0% 100% 0% 0% |
| fasta | |||||
| Pascal Free Pascal | 11.17 | 11.18 | 8 | 1112 | 0% 0% 0% 100% |
| C++ GNU g++ | 6.16 | 6.17 | 356 | 1266 | 0% 100% 0% 0% |
| mandelbrot | |||||
| Pascal Free Pascal | 66.62 | 16.68 | 29,604 | 748 | 100% 100% 100% 100% |
| C++ GNU g++ | 24.31 | 6.11 | 32,296 | 1017 | 100% 100% 100% 100% |
| reverse-complement | |||||
| Pascal Free Pascal | 2.08 | 2.09 | 128,848 | 751 | 0% 1% 100% 1% |
| C++ GNU g++ | 1.06 | 0.68 | 245,712 | 2275 | 54% 50% 18% 37% |
| fasta-redux | |||||
| Pascal Free Pascal | 8.05 | 8.05 | 8 | 1227 | 0% 0% 100% 0% |
| C++ GNU g++ | 2.00 | 2.00 | 820 | 1474 | 0% 100% 0% 1% |
| binary-trees | |||||
| Pascal Free Pascal | 40.74 | 40.77 | 131,380 | 769 | 0% 0% 100% 0% |
| C++ GNU g++ | 27.33 | 8.93 | 360,432 | 892 | 64% 87% 62% 96% |
| spectral-norm | |||||
| Pascal Free Pascal | 15.71 | 15.72 | 8 | 423 | 0% 0% 0% 100% |
| C++ GNU g++ | 10.02 | 2.52 | 504 | 1044 | 100% 100% 100% 100% |
| k-nucleotide | |||||
| Pascal Free Pascal | 80.90 | 80.94 | 130,568 | 2383 | 0% 0% 100% 0% |
| C++ GNU g++ | 10.32 | 2.97 | 139,016 | 3415 | 84% 99% 85% 82% |
| regex-dna | |||||
| C++ GNU g++ | 0.06 | 0.06 | ? | 695 | 14% 60% 40% 0% |
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.
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 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