The Computer Language
Benchmarks Game

Free Pascal versus Java fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? Look at the other programs. They may seem more-like a fair comparison to you.

pidigits
source secs mem gz busy cpu load
Free Pascal 0.73 2,268 530 0.73 0% 0% 100% 0%
Java 0.93 36,552 764 0.98 2% 3% 1% 99%
binary-trees
source secs mem gz busy cpu load
Free Pascal 1.99 132,728 959 4.97 100% 58% 50% 42%
Java 2.48 1,722,848 835 7.88 98% 75% 71% 74%
spectral-norm
source secs mem gz busy cpu load
Free Pascal 1.44 1,908 650 5.72 99% 99% 99% 99%
Java 1.63 39,304 756 6.22 95% 97% 95% 95%
mandelbrot
source secs mem gz busy cpu load
Free Pascal 3.86 31,404 974 15.38 99% 99% 100% 99%
Java 4.15 69,136 796 16.29 98% 99% 98% 99%
n-body
source secs mem gz busy cpu load
Free Pascal 6.28 8 1325 6.29 0% 100% 0% 0%
Java 6.74 35,844 1489 6.82 1% 100% 1% 0%
fannkuch-redux
source secs mem gz busy cpu load
Free Pascal 10.55 1,848 1050 42.14 100% 100% 100% 100%
Java 10.64 35,192 1282 41.91 99% 98% 99% 97%
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 670,924 2183 3.51 46% 56% 48% 79%
fasta
source secs mem gz busy cpu load
Free Pascal 5.59 8 1190 5.63 1% 0% 0% 100%
Java 1.21 44,620 2543 3.58 89% 75% 65% 68%
regex-redux
source secs mem gz busy cpu load
Free Pascal   Failed
Java 5.58 985,696 929 18.26 81% 77% 84% 85%
k-nucleotide
source secs mem gz busy cpu load
  No program contribute your program
Java 4.98 356,904 1812 16.25 78% 76% 96% 76%
Free Pascal

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

Java

openjdk 16 2021-03-16
OpenJDK Runtime Environment (build 16+36-2231)
OpenJDK 64-Bit Server VM (build 16+36-2231, mixed mode, sharing)