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 2.49 1,940 482 2.48 1% 100% 1% 100%
C++ g++ 2.27 3,440 508 2.27 0% 1% 1% 100%
fasta
source secs mem gz cpu cpu load
Pascal Free Pascal 8.14 8 1112 8.14 1% 100% 0% 100%
C++ g++ 4.21 1,336 1105 4.20 1% 1% 0% 100%
spectral-norm
source secs mem gz cpu cpu load
Pascal Free Pascal 15.96 8 423 15.95 0% 100% 1% 100%
C++ g++ 7.93 2,288 1044 7.92 1% 1% 0% 100%
reverse-complement
source secs mem gz cpu cpu load
Pascal Free Pascal 2.14 124,816 751 2.14 1% 100% 0% 100%
C++ g++ 1.02 247,604 2275 1.01 2% 0% 0% 100%
n-body
source secs mem gz cpu cpu load
Pascal Free Pascal 22.49 8 1308 22.48 1% 100% 1% 100%
C++ g++ 8.96 816 1545 8.95 1% 1% 0% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Pascal Free Pascal 63.02 1,664 1018 63.00 100% 1% 1% 100%
C++ g++ 24.65 556 1150 24.64 1% 1% 0% 100%
mandelbrot
source secs mem gz cpu cpu load
Pascal Free Pascal 64.08 32,640 820 64.06 2% 0% 0% 100%
C++ g++ 20.11 33,768 726 20.10 0% 1% 1% 100%
binary-trees
source secs mem gz cpu cpu load
Pascal Free Pascal 32.25 65,804 769 32.22 1% 0% 0% 100%
C++ g++ 6.86 76,616 846 6.85 0% 1% 0% 100%
k-nucleotide
source secs mem gz cpu cpu load
  No program contribute your program
C++ g++ 0.58 9,460 1252 0.51 5% 0% 0% 100%
Pascal Free Pascal

Free Pascal Compiler version 3.0.0 [2015/11/24] for i386

C++ g++

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