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 3.10 128,744 1003 10.44 74% 72% 90% 100%
Java 8.28 948,040 835 28.20 80% 84% 87% 90%
regex-redux
source secs mem gz busy cpu load
Free Pascal 4.97 101,716 1503 6.71 15% 16% 93% 12%
Java 10.27 635,500 740 29.42 74% 81% 55% 76%
pidigits
source secs mem gz busy cpu load
Free Pascal 1.72 2,292 530 1.77 2% 100% 1% 0%
Java 1.83 34,848 764 1.95 99% 1% 4% 2%
spectral-norm
source secs mem gz busy cpu load
Free Pascal 3.98 1,832 650 15.85 99% 99% 99% 99%
Java 4.15 36,428 950 16.26 98% 100% 98% 97%
n-body
source secs mem gz busy cpu load
Free Pascal 22.00 8 1325 23.44 0% 2% 4% 100%
Java 21.85 34,112 1489 22.16 1% 0% 0% 100%
fannkuch-redux
source secs mem gz busy cpu load
Free Pascal 18.11 1,852 1050 72.36 100% 100% 100% 100%
Java 16.12 33,168 1282 63.71 100% 98% 99% 98%
mandelbrot
source secs mem gz busy cpu load
Free Pascal 8.55 30,260 974 34.13 100% 100% 100% 100%
Java 6.84 76,008 796 26.90 99% 98% 98% 98%
reverse-complement
source secs mem gz busy cpu load
Free Pascal 7.92 502,504 771 8.26 100% 2% 2% 0%
Java 3.27 714,144 2183 7.54 47% 60% 66% 58%
fasta
source secs mem gz busy cpu load
Free Pascal 10.08 8 1190 10.51 0% 4% 100% 0%
Java 2.22 43,096 2473 6.10 67% 83% 45% 80%
k-nucleotide
source secs mem gz busy cpu load
  No program contribute your program
Java 9.14 403,576 1812 29.10 87% 72% 74% 86%
Free Pascal

Free Pascal Compiler version 3.0.4 [2017/10/03] for x86_64

Java

openjdk 14 2020-03-17
OpenJDK Runtime Environment (build 14+36-1461)
OpenJDK 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)