The Computer Language
Benchmarks Game

Pascal Free Pascal programs versus Java

by benchmark task performance

pidigits
source secs KB gz cpu cpu load
Pascal Free Pascal 1.73 2,300 482 1.72 2% 0% 1% 100%
Java 3.11 33,364 938 3.20 99% 2% 2% 2%
n-body
source secs KB gz cpu cpu load
Pascal Free Pascal 22.36 8 1308 22.35 0% 100% 0% 1%
Java 22.53 28,212 1430 22.54 100% 7% 1% 1%
fannkuch-redux
source secs KB gz cpu cpu load
Pascal Free Pascal 17.39 1,732 1018 69.38 99% 100% 100% 100%
Java 17.34 30,084 1282 68.20 97% 98% 99% 99%
reverse-complement
source secs KB gz cpu cpu load
Pascal Free Pascal 1.99 124,536 751 1.99 1% 1% 100% 1%
Java 1.17 345,940 1661 2.42 41% 43% 57% 72%
mandelbrot
source secs KB gz cpu cpu load
Pascal Free Pascal 16.62 31,540 748 66.34 100% 100% 100% 100%
Java 7.14 88,236 796 27.93 97% 98% 98% 99%
binary-trees
source secs KB gz cpu cpu load
Pascal Free Pascal 38.12 131,376 769 38.09 1% 0% 100% 1%
Java 11.51 622,328 889 40.10 86% 86% 92% 87%
spectral-norm
source secs KB gz cpu cpu load
Pascal Free Pascal 15.98 8 423 15.97 0% 1% 100% 0%
Java 4.26 32,244 950 16.41 96% 98% 95% 97%
fasta
source secs KB gz cpu cpu load
Pascal Free Pascal 10.99 8 1112 10.98 100% 1% 0% 1%
Java 2.20 37,072 2457 6.37 81% 68% 72% 72%
k-nucleotide
source secs KB gz cpu cpu load
  No program contribute your program
Java 0.50 42,404 1802 1.20 63% 61% 52% 67%
regex-dna
source secs KB gz cpu cpu load
  No program contribute your program
Java 1.56 61,564 1085 2.24 40% 32% 63% 61%
Pascal Free Pascal

Free Pascal Compiler version 3.0.0 [2015/11/20] for x86_64

Java

java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)