The Computer Language
Benchmarks Game

Free Pascal versus C++ g++ fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

pidigits
source secs mem gz busy cpu load
Free Pascal 0.87 2,020 530 0.88 100% 1% 0% 0%
C++ g++ 0.89 4,236 513 0.89 0% 0% 100% 0%
binary-trees
source secs mem gz busy cpu load
Free Pascal 1.98 103,248 1003 4.93 49% 100% 58% 42%
C++ g++ 1.53 112,820 1270 4.03 99% 59% 52% 53%
fannkuch-redux
source secs mem gz busy cpu load
Free Pascal 10.62 1,864 1050 42.41 100% 100% 100% 100%
C++ g++ 7.92 1,700 980 30.88 100% 99% 98% 93%
n-body
source secs mem gz busy cpu load
Free Pascal 6.51 8 1325 6.63 1% 0% 0% 100%
C++ g++ 3.94 1,604 1808 4.02 0% 1% 100% 1%
spectral-norm
source secs mem gz busy cpu load
Free Pascal 1.45 1,800 650 5.73 99% 99% 99% 99%
C++ g++ 0.72 2,348 1044 2.84 100% 99% 99% 99%
mandelbrot
source secs mem gz busy cpu load
Free Pascal 4.84 28,228 974 19.33 100% 100% 100% 100%
C++ g++ 0.88 34,608 3542 3.47 98% 100% 98% 97%
reverse-complement
source secs mem gz busy cpu load
Free Pascal 3.67 488,916 771 3.73 1% 0% 100% 1%
C++ g++ 0.63 499,668 2093 0.64 2% 0% 0% 100%
fasta
source secs mem gz busy cpu load
Free Pascal 5.59 8 1190 5.76 0% 1% 1% 100%
C++ g++ 0.85 2,020 2711 3.13 92% 92% 92% 93%
regex-redux
source secs mem gz busy cpu load
Free Pascal   Failed
C++ g++ 1.03 275,752 2850 2.19 36% 37% 100% 40%
k-nucleotide
source secs mem gz busy cpu load
  No program contribute your program
C++ g++ 1.98 156,108 1631 5.92 96% 67% 68% 68%
Free Pascal

Free Pascal Compiler version 3.2.0 [2020/06/14] for x86_64

C++ g++

g++ (Ubuntu 9.3.0-10ubuntu2) 9.3.0