The Computer Language
Benchmarks Game

Pascal Free Pascal programs versus C++ g++

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
Pascal Free Pascal 1.73 2,400 530 1.73 100% 1% 1% 1%
C++ g++ 1.88 4,276 513 1.88 0% 100% 1% 0%
fannkuch-redux
source secs mem gz cpu cpu load
Pascal Free Pascal 17.94 1,884 1050 71.36 100% 100% 100% 99%
C++ g++ 10.61 2,044 980 41.90 100% 96% 100% 100%
spectral-norm
source secs mem gz cpu cpu load
Pascal Free Pascal 3.99 2,032 542 15.81 99% 99% 99% 99%
C++ g++ 2.02 1,332 1044 7.91 99% 99% 99% 99%
regex-redux
source secs mem gz cpu cpu load
Pascal Free Pascal 3.84 98,696 1503 5.26 100% 15% 15% 11%
C++ g++ 1.61 203,572 1315 4.18 100% 52% 57% 54%
n-body
source secs mem gz cpu cpu load
Pascal Free Pascal 22.35 8 1325 22.35 0% 1% 1% 100%
C++ g++ 8.23 1,856 1763 8.23 100% 1% 1% 0%
reverse-complement
source secs mem gz cpu cpu load
Pascal Free Pascal 2.00 122,548 771 1.99 1% 2% 100% 1%
C++ g++ 0.64 247,800 2280 1.03 89% 22% 31% 30%
fasta
source secs mem gz cpu cpu load
Pascal Free Pascal 10.86 8 1140 10.85 0% 1% 100% 1%
C++ g++ 1.49 4,372 2324 5.28 89% 88% 90% 90%
mandelbrot
source secs mem gz cpu cpu load
Pascal Free Pascal 14.65 29,952 845 58.42 100% 100% 100% 100%
C++ g++ 1.64 27,636 1002 6.51 100% 99% 100% 99%
binary-trees
source secs mem gz cpu cpu load
Pascal Free Pascal 39.47 262,180 715 39.44 56% 1% 44% 1%
C++ g++ 2.55 135,568 809 7.99 85% 96% 69% 66%
k-nucleotide
source secs mem gz cpu cpu load
  No program contribute your program
C++ g++ 0.41 740 1276 0.73 30% 38% 93% 28%
Pascal Free Pascal

Free Pascal Compiler version 3.0.2 [2017/02/05] for x86_64

C++ g++

g++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0