The Computer Language
Benchmarks Game

Pascal Free Pascal programs versus C++ g++

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
Pascal Free Pascal 3.75 99,488 1459 5.15 20% 16% 14% 90%
C++ g++ 17.14 220,088 853 25.22 95% 3% 51% 1%
pidigits
source secs mem gz cpu cpu load
Pascal Free Pascal 1.73 2,284 482 1.72 1% 100% 1% 1%
C++ g++ 1.89 3,868 508 1.89 100% 1% 2% 1%
fannkuch-redux
source secs mem gz cpu cpu load
Pascal Free Pascal 17.93 1,780 1018 71.44 100% 100% 100% 100%
C++ g++ 10.35 2,624 980 40.60 99% 99% 100% 95%
spectral-norm
source secs mem gz cpu cpu load
Pascal Free Pascal 3.99 1,896 542 15.82 99% 100% 99% 100%
C++ g++ 1.99 1,880 1044 7.89 100% 99% 99% 99%
n-body
source secs mem gz cpu cpu load
Pascal Free Pascal 22.35 8 1308 22.34 1% 0% 1% 100%
C++ g++ 9.31 1,052 1544 9.30 1% 1% 1% 100%
reverse-complement
source secs mem gz cpu cpu load
Pascal Free Pascal 1.92 124,784 751 1.92 2% 1% 100% 0%
C++ g++ 0.60 211,852 2275 0.98 38% 25% 82% 27%
fasta
source secs mem gz cpu cpu load
Pascal Free Pascal 10.86 8 1112 10.85 100% 0% 1% 0%
C++ g++ 1.48 4,176 2313 5.25 89% 90% 88% 89%
mandelbrot
source secs mem gz cpu cpu load
Pascal Free Pascal 14.68 31,560 820 58.59 100% 100% 100% 100%
C++ g++ 1.73 34,064 1002 6.80 98% 98% 98% 99%
binary-trees
source secs mem gz cpu cpu load
Pascal Free Pascal 36.18 262,180 705 36.15 1% 0% 1% 100%
C++ g++ 2.36 114,404 809 7.69 86% 71% 87% 85%
k-nucleotide
source secs mem gz cpu cpu load
  No program contribute your program
C++ g++ 0.42 780 1252 0.72 73% 30% 50% 37%
Pascal Free Pascal

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

C++ g++

g++ (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406