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.

binary-trees
source secs mem gz busy cpu load
Free Pascal 3.06 132,852 1003 10.34 100% 89% 70% 80%
C++ g++ 3.93 113,768 809 12.78 70% 81% 75% 98%
pidigits
source secs mem gz busy cpu load
Free Pascal 1.73 2,436 530 1.80 99% 1% 1% 2%
C++ g++ 1.89 4,460 513 1.95 2% 0% 100% 1%
fannkuch-redux
source secs mem gz busy cpu load
Free Pascal 17.95 1,860 1050 71.73 100% 100% 100% 100%
C++ g++ 10.70 1,864 980 42.31 96% 100% 100% 100%
spectral-norm
source secs mem gz busy cpu load
Free Pascal 3.98 1,912 542 15.84 99% 99% 99% 99%
C++ g++ 1.98 2,320 1044 7.90 99% 100% 99% 100%
regex-redux
source secs mem gz busy cpu load
Free Pascal 3.88 103,124 1503 5.35 15% 15% 93% 14%
C++ g++ 1.85 203,748 1315 4.44 48% 100% 43% 48%
n-body
source secs mem gz busy cpu load
Free Pascal 22.36 8 1325 22.46 0% 100% 0% 0%
C++ g++ 7.70 1,772 1879 8.02 4% 0% 0% 100%
reverse-complement
source secs mem gz busy cpu load
Free Pascal 7.86 499,600 771 7.93 0% 1% 1% 100%
C++ g++ 1.88 499,844 2093 1.93 100% 1% 2% 0%
mandelbrot
source secs mem gz busy cpu load
Free Pascal 8.52 29,120 974 34.00 100% 100% 100% 100%
C++ g++ 1.51 25,708 1791 6.01 99% 99% 99% 100%
fasta
source secs mem gz busy cpu load
Free Pascal 10.08 8 1190 10.27 0% 0% 1% 100%
C++ g++ 1.46 2,180 2711 4.39 75% 75% 75% 75%
k-nucleotide
source secs mem gz busy cpu load
  No program contribute your program
C++ g++ 3.89 156,148 1631 11.99 94% 74% 70% 71%
Free Pascal

Free Pascal Compiler version 3.0.4 [2017/10/03] for x86_64

C++ g++

g++ (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008