/mobile Handheld Friendly website
Ubuntu : Intel® Q6600® quad-core |
Each chart bar shows, for one unidentified benchmark, how much the fastest Pascal Free Pascal program used compared to the fastest C++ g++ program.
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.
Each table row shows, for one named benchmark, how much the fastest Pascal Free Pascal program used compared to the fastest C++ g++ program.
| Pascal Free Pascal used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| fannkuch-redux | ± | ± | ± | |
| pidigits | ± | 1/2 | ± | |
| fasta | 2× | 1/78 | ± | |
| fasta-redux | 2× | 1/78 | ± | |
| reverse-complement † | 3× | 1/2 | 1/3 | |
| n-body | 3× | 1/78 | ± | |
| binary-trees † | 5× | 1/3 | ± | |
| mandelbrot | 6× | ± | ± | |
| k-nucleotide † | 6× | ± | 2× | |
| spectral-norm † | 8× | 1/116 | 1/2 | |
| Pascal Free Pascal used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | ± | ± | 2× | 3× | 6× | 8× | 8× |
† possible mismatch - one-core program compared to multi-core program.
± read the measurements and then read the program source code.
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 Pascal | 65.31 | 16.36 | 748 | 1018 | 100% 100% 100% 100% |
| C++ g++ | 49.71 | 12.69 | 996 | 1440 | 98% 100% 94% 100% |
| pidigits | |||||
| Pascal Free Pascal | 3.76 | 3.76 | 856 | 785 | 0% 100% 1% 1% |
| C++ g++ | 2.68 | 2.68 | 1,452 | 682 | 1% 0% 1% 99% |
| fasta | |||||
| Pascal Free Pascal | 7.94 | 7.95 | 8 | 1112 | 0% 0% 0% 100% |
| C++ g++ | 4.10 | 4.11 | 620 | 1105 | 55% 0% 0% 46% |
| fasta-redux | |||||
| Pascal Free Pascal | 4.78 | 4.78 | 8 | 1227 | 1% 1% 0% 100% |
| C++ g++ | 2.17 | 2.17 | 620 | 1474 | 0% 0% 100% 1% |
| reverse-complement | |||||
| Pascal Free Pascal | 2.17 | 2.17 | 122,544 | 751 | 0% 0% 0% 100% † |
| C++ g++ | 1.22 | 0.84 | 245,428 | 2275 | 19% 31% 12% 88% † |
| n-body | |||||
| Pascal Free Pascal | 34.67 | 34.68 | 8 | 1308 | 0% 100% 0% 0% |
| C++ g++ | 10.41 | 10.42 | 620 | 1763 | 1% 1% 0% 100% |
| binary-trees | |||||
| Pascal Free Pascal | 33.24 | 33.26 | 65,844 | 769 | 96% 0% 0% 4% † |
| C++ g++ | 19.06 | 6.60 | 173,960 | 892 | 60% 92% 75% 65% † |
| mandelbrot | |||||
| Pascal Free Pascal | 83.71 | 31.60 | 31,900 | 817 | 95% 35% 48% 88% |
| C++ g++ | 19.64 | 5.10 | 32,076 | 726 | 95% 95% 95% 100% |
| k-nucleotide | |||||
| Pascal Free Pascal | 46.88 | 46.91 | 128,396 | 2383 | 89% 0% 0% 11% † |
| C++ g++ | 23.39 | 7.40 | 138,100 | 1252 | 73% 74% 74% 97% † |
| spectral-norm | |||||
| Pascal Free Pascal | 15.77 | 15.77 | 8 | 423 | 0% 100% 1% 1% † |
| C++ g++ | 7.96 | 2.00 | 924 | 1044 | 100% 100% 100% 100% † |
| regex-dna | |||||
| C++ g++ | 0.07 | 0.08 | ? | 695 | 50% 11% 0% 67% |
† possible mismatch - one-core program compared to multi-core program.
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.
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 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