The Computer Language
Benchmarks Game

Free Pascal versus Java fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

binary-trees
source secs mem gz busy cpu load
Free Pascal 1.99 132,728 959 4.97 100% 58% 50% 42%
Java 2.50 2,487,096 835 7.90 88% 75% 75% 79%
spectral-norm
source secs mem gz busy cpu load
Free Pascal 1.44 1,908 650 5.72 99% 99% 99% 99%
Java 1.68 38,348 950 6.43 96% 96% 96% 95%
pidigits
source secs mem gz busy cpu load
Free Pascal 0.73 2,268 530 0.73 0% 0% 100% 0%
Java 0.79 35,568 764 0.84 99% 3% 3% 1%
n-body
source secs mem gz busy cpu load
Free Pascal 6.28 8 1339 6.33 100% 0% 0% 0%
Java 6.75 35,200 1489 6.83 0% 0% 100% 1%
mandelbrot
source secs mem gz busy cpu load
Free Pascal 3.86 31,404 974 15.38 99% 99% 100% 99%
Java 4.11 68,204 796 16.20 98% 99% 98% 99%
fannkuch-redux
source secs mem gz busy cpu load
Free Pascal 10.55 1,848 1050 42.14 100% 100% 100% 100%
Java 11.00 34,104 1282 43.42 99% 98% 98% 99%
reverse-complement
source secs mem gz busy cpu load
Free Pascal 3.67 520,464 771 3.70 0% 100% 0% 1%
Java 1.54 702,332 2183 3.55 78% 46% 49% 57%
fasta
source secs mem gz busy cpu load
Free Pascal 5.59 8 1190 5.63 1% 0% 0% 100%
Java 1.27 43,968 2473 3.92 73% 95% 70% 70%
regex-redux
source secs mem gz busy cpu load
Free Pascal   Failed
Java 5.70 656,328 929 18.25 89% 76% 79% 75%
k-nucleotide
source secs mem gz busy cpu load
  No program contribute your program
Java 5.00 408,040 1812 16.36 74% 81% 86% 86%
Free Pascal

Free Pascal Compiler version 3.2.0 [2020/06/14] for x86_64

Java

openjdk 15 2020-09-15
OpenJDK Runtime Environment (build 15+36-1562)
OpenJDK 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)