The Computer Language
Benchmarks Game

Pascal Free Pascal programs versus Java

by benchmark task performance

pidigits
secs KB gz cpu cpu load
Pascal Free Pascal 1.73 2,300 482 1.72 2% 0% 1% 100%
Java 3.12 33,528 938 3.22 3% 2% 80% 21%
n-body
secs KB gz cpu cpu load
Pascal Free Pascal 22.36 8 1308 22.35 0% 100% 0% 1%
Java 22.66 30,036 1424 22.68 97% 3% 0% 1%
fannkuch-redux
secs KB gz cpu cpu load
Pascal Free Pascal 17.39 1,732 1018 69.38 99% 100% 100% 100%
Java 17.41 33,032 1282 68.64 98% 98% 99% 99%
reverse-complement
secs KB gz cpu cpu load
Pascal Free Pascal 1.99 124,536 751 1.99 1% 1% 100% 1%
Java 1.27 315,296 1661 2.68 41% 48% 34% 92%
mandelbrot
secs KB gz cpu cpu load
Pascal Free Pascal 16.62 31,540 748 66.34 100% 100% 100% 100%
Java 6.27 88,992 796 24.24 96% 97% 97% 98%
fasta-redux
secs KB gz cpu cpu load
Pascal Free Pascal 7.93 8 1227 7.92 1% 100% 1% 1%
Java 2.59 29,940 1443 2.65 1% 76% 1% 25%
spectral-norm
secs KB gz cpu cpu load
Pascal Free Pascal 15.98 8 423 15.97 0% 1% 100% 0%
Java 4.28 32,696 950 16.53 96% 96% 96% 99%
k-nucleotide
secs KB gz cpu cpu load
Pascal Free Pascal 55.76 132,580 2383 55.72 100% 1% 1% 0%
Java 11.29 1,118,288 1844 38.66 83% 97% 82% 82%
fasta
secs KB gz cpu cpu load
Pascal Free Pascal 10.99 8 1112 10.98 100% 1% 0% 1%
Java 2.19 39,368 2457 5.60 58% 72% 66% 61%
binary-trees
secs KB gz cpu cpu load
Pascal Free Pascal 38.12 131,376 769 38.09 1% 0% 100% 1%
Java 6.20 524,828 926 20.90 87% 91% 82% 80%
regex-dna
secs KB gz cpu cpu load
  No program contribute your program
Java 0.40 1,760 929 0.97 82% 69% 51% 44%
Pascal Free Pascal

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

Java

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