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.98 103,248 1003 4.93 49% 100% 58% 42%
Java 2.48 2,496,112 835 7.88 78% 91% 74% 75%
spectral-norm
source secs mem gz busy cpu load
Free Pascal 1.45 1,800 650 5.73 99% 99% 99% 99%
Java 1.57 39,376 756 5.94 96% 94% 95% 95%
pidigits
source secs mem gz busy cpu load
Free Pascal 0.87 2,020 530 0.88 100% 1% 0% 0%
Java 0.94 36,644 764 1.07 98% 5% 2% 9%
n-body
source secs mem gz busy cpu load
Free Pascal 6.51 8 1325 6.63 1% 0% 0% 100%
Java 6.74 36,480 1489 6.84 100% 1% 0% 0%
fannkuch-redux
source secs mem gz busy cpu load
Free Pascal 10.62 1,864 1050 42.41 100% 100% 100% 100%
Java 10.61 34,960 1282 42.06 99% 99% 99% 98%
mandelbrot
source secs mem gz busy cpu load
Free Pascal 4.84 28,228 974 19.33 100% 100% 100% 100%
Java 4.14 71,012 796 16.29 99% 99% 98% 98%
reverse-complement
source secs mem gz busy cpu load
Free Pascal 3.67 488,916 771 3.73 1% 0% 100% 1%
Java 1.58 677,584 2183 3.76 55% 74% 48% 61%
fasta
source secs mem gz busy cpu load
Free Pascal 5.59 8 1190 5.76 0% 1% 1% 100%
Java 1.27 45,584 2473 3.91 82% 83% 73% 70%
regex-redux
source secs mem gz busy cpu load
Free Pascal   Failed
Java 5.75 647,984 929 18.61 82% 88% 77% 77%
k-nucleotide
source secs mem gz busy cpu load
  No program contribute your program
Java 4.57 485,000 1812 14.50 77% 74% 83% 82%
Free Pascal

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

Java

java 14.0.1 2020-04-14
Java(TM) SE Runtime Environment (build 14.0.1+7)
Java HotSpot(TM) 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)