The Computer Language
Benchmarks Game

F# .NET Core 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.

k-nucleotide
source secs mem gz busy cpu load
F# .NET Core 5.80 183,360 1907 19.47 86% 66% 88% 96%
Java 9.14 403,576 1812 29.10 87% 72% 74% 86%
binary-trees
source secs mem gz busy cpu load
F# .NET Core 6.28 724,124 635 22.76 91% 93% 90% 88%
Java 8.28 948,040 835 28.20 80% 84% 87% 90%
fasta
source secs mem gz busy cpu load
F# .NET Core 1.70 138,596 1350 6.45 95% 98% 93% 93%
Java 2.22 43,096 2473 6.10 67% 83% 45% 80%
regex-redux
source secs mem gz busy cpu load
F# .NET Core 7.87 971,632 599 11.18 64% 37% 28% 13%
Java 10.27 635,500 740 29.42 74% 81% 55% 76%
mandelbrot
source secs mem gz busy cpu load
F# .NET Core 5.78 65,644 933 22.72 99% 98% 98% 98%
Java 6.84 76,008 796 26.90 99% 98% 98% 98%
reverse-complement
source secs mem gz busy cpu load
F# .NET Core 2.93 1,031,696 1140 8.52 94% 45% 60% 90%
Java 3.27 714,144 2183 7.54 47% 60% 66% 58%
n-body
source secs mem gz busy cpu load
F# .NET Core 22.20 33,660 1290 23.03 0% 100% 1% 3%
Java 21.85 34,112 1489 22.16 1% 0% 0% 100%
pidigits
source secs mem gz busy cpu load
F# .NET Core 1.87 35,692 905 2.01 4% 2% 4% 98%
Java 1.83 34,848 764 1.95 99% 1% 4% 2%
spectral-norm
source secs mem gz busy cpu load
F# .NET Core 4.29 35,228 853 16.12 92% 92% 97% 94%
Java 4.15 36,428 950 16.26 98% 100% 98% 97%
fannkuch-redux
source secs mem gz busy cpu load
F# .NET Core 16.68 35,816 1097 65.52 98% 97% 100% 98%
Java 16.12 33,168 1282 63.71 100% 98% 99% 98%
F# .NET Core

.NET Core SDK 3.1.201
Host Version: 3.1.3; Commit: 4a9f85e9f8
<ServerGarbageCollection>true
<ConcurrentGarbageCollection>true

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)