Ubuntu : Intel® Q6600® quad-core |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used.
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.
This table shows 3 comparisons - Time-used, Memory-used and Code-used.
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 | Reduced N |
| n-body | ± | 1/4 | ± | |
| fasta | 2× | 1/4 | ± | |
| pidigits | 2× | 1/2 | ± | |
| reverse-complement | 3× | 1/2 | 1/3 | |
| fannkuch | 4× | 1/24 | 1/2 | |
| binary-trees | 5× | 1/3 | ± | |
| spectral-norm | 6× | 1/6 | 1/3 | |
| mandelbrot | 13× | 1/585 | 1/2 | |
| k-nucleotide | 14× | ± | ± | |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.
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 |
|---|---|---|---|---|---|
| n-body | |||||
| Pascal Free Pascal | 35.04 | 35.04 | 192 | 1308 | 0% 0% 0% 100% |
| C++ GNU g++ | 23.82 | 23.82 | 788 | 1428 | 100% 0% 0% 0% |
| fasta | |||||
| Pascal Free Pascal | 8.12 | 8.12 | 212 | 1112 | 0% 0% 0% 100% |
| C++ GNU g++ | 3.78 | 3.78 | 816 | 1470 | 99% 1% 0% 0% |
| pidigits | |||||
| Pascal Free Pascal | 6.59 | 6.59 | 1,060 | 785 | 18% 100% 13% 22% |
| C++ GNU g++ | 2.71 | 2.71 | 1,600 | 682 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Pascal Free Pascal | 2.42 | 2.42 | 122,792 | 751 | 100% 1% 0% 0% |
| C++ GNU g++ | 1.34 | 0.92 | 245,440 | 2275 | 68% 50% 14% 15% |
| fannkuch | |||||
| Pascal Free Pascal | 58.79 | 58.78 | 48 | 712 | 0% 100% 0% 0% |
| C++ GNU g++ | 49.61 | 13.63 | 1,160 | 1186 | 81% 77% 100% 100% |
| binary-trees | |||||
| Pascal Free Pascal | 31.29 | 31.28 | 65,620 | 769 | 0% 100% 0% 0% |
| C++ GNU g++ | 18.86 | 6.32 | 173,332 | 892 | 60% 74% 74% 71% |
| spectral-norm | |||||
| Pascal Free Pascal | 18.79 | 18.79 | 184 | 423 | 0% 100% 0% 0% |
| C++ GNU g++ | 11.98 | 3.00 | 1,032 | 1114 | 100% 100% 100% 100% |
| mandelbrot | |||||
| Pascal Free Pascal | 78.28 | 78.28 | 52 | 530 | 0% 0% 0% 100% |
| C++ GNU g++ | 24.67 | 6.17 | 30,436 | 858 | 100% 100% 100% 100% |
| k-nucleotide | |||||
| Pascal Free Pascal | 62.42 | 62.42 | 127,780 | 2383 | 0% 0% 0% 100% |
| C++ GNU g++ | 14.80 | 4.31 | 132,452 | 3415 | 81% 80% 99% 84% |
| chameneos-redux | |||||
| regex-dna | |||||
Pascal and its Successors - Niklaus Wirth
Free Pascal Compiler version 2.2.2 [2008/07/29] for i386
Home Page: http://www.freepascal.org
Download: http://www.freepascal.org/download.html