The Computer Language
Benchmarks Game

Pascal Free Pascal programs versus Java

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
Pascal Free Pascal 1.73 2,040 482 1.72 1% 1% 1% 100%
Java 3.06 31,088 938 3.16 0% 3% 9% 92%
spectral-norm
source secs mem gz cpu cpu load
Pascal Free Pascal 3.99 1,852 542 15.84 99% 99% 99% 99%
Java 4.29 31,428 950 16.56 97% 96% 98% 97%
fannkuch-redux
source secs mem gz cpu cpu load
Pascal Free Pascal 17.90 1,720 1018 71.36 100% 100% 100% 100%
Java 17.74 30,048 1282 69.90 98% 98% 100% 99%
n-body
source secs mem gz cpu cpu load
Pascal Free Pascal 22.36 8 1308 22.35 1% 1% 0% 100%
Java 21.50 27,240 1489 21.52 1% 1% 100% 0%
reverse-complement
source secs mem gz cpu cpu load
Pascal Free Pascal 1.91 124,668 751 1.91 99% 0% 1% 1%
Java 1.11 345,308 1661 2.44 33% 58% 54% 80%
mandelbrot
source secs mem gz cpu cpu load
Pascal Free Pascal 14.68 31,120 820 58.58 100% 100% 100% 100%
Java 5.89 89,504 796 23.08 98% 98% 98% 99%
binary-trees
source secs mem gz cpu cpu load
Pascal Free Pascal 38.08 131,372 769 38.04 0% 1% 0% 100%
Java 11.52 643,924 889 40.54 89% 92% 85% 89%
fasta
source secs mem gz cpu cpu load
Pascal Free Pascal 10.87 8 1112 10.86 1% 1% 1% 100%
Java 2.14 36,192 2457 5.68 71% 58% 62% 77%
regex-redux
source secs mem gz cpu cpu load
  No program contribute your program
Java 0.69 46,096 929 1.58 85% 67% 53% 53%
k-nucleotide
source secs mem gz cpu cpu load
  No program contribute your program
Java 0.48 41,748 1802 1.16 63% 53% 65% 73%
Pascal Free Pascal

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

Java

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)