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 4.45 103,404 1459 5.63 91% 17% 10% 10%
C++ g++ 6.02 218,304 848 8.57 15% 100% 14% 15%
pidigits
source secs mem gz cpu cpu load
Pascal Free Pascal 1.73 2,040 482 1.72 1% 1% 1% 100%
C++ g++ 1.89 3,740 508 1.89 2% 99% 0% 2%
fannkuch-redux
source secs mem gz cpu cpu load
Pascal Free Pascal 17.90 1,720 1018 71.36 100% 100% 100% 100%
C++ g++ 10.39 2,592 980 40.76 95% 99% 98% 100%
spectral-norm
source secs mem gz cpu cpu load
Pascal Free Pascal 3.99 1,852 542 15.84 99% 99% 99% 99%
C++ g++ 2.01 1,792 1044 8.00 100% 100% 100% 100%
n-body
source secs mem gz cpu cpu load
Pascal Free Pascal 22.36 8 1308 22.35 1% 1% 0% 100%
C++ g++ 9.30 1,712 1763 9.29 100% 1% 1% 0%
mandelbrot
source secs mem gz cpu cpu load
Pascal Free Pascal 14.68 31,120 820 58.58 100% 100% 100% 100%
C++ g++ 5.82 33,952 726 22.40 96% 95% 95% 100%
reverse-complement
source secs mem gz cpu cpu load
Pascal Free Pascal 1.91 124,668 751 1.91 99% 0% 1% 1%
C++ g++ 0.59 217,564 2275 0.84 26% 78% 12% 34%
fasta
source secs mem gz cpu cpu load
Pascal Free Pascal 10.87 8 1112 10.86 1% 1% 1% 100%
C++ g++ 1.47 9,484 2291 5.13 88% 88% 87% 88%
binary-trees
source secs mem gz cpu cpu load
Pascal Free Pascal 36.62 262,180 705 36.58 1% 0% 100% 1%
C++ g++ 2.34 104,212 809 7.58 85% 88% 83% 70%
k-nucleotide
source secs mem gz cpu cpu load
  No program contribute your program
C++ g++ 0.42 22,588 1252 0.65 33% 27% 84% 36%
Pascal Free Pascal

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

C++ g++

g++ (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609