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.

regex-redux
source secs mem gz busy cpu load
F# .NET Core 4.37 985,812 599 6.26 78% 27% 17% 21%
Java 5.75 647,984 929 18.61 82% 88% 77% 77%
fannkuch-redux
source secs mem gz busy cpu load
F# .NET Core 8.91 34,216 1097 34.78 98% 99% 99% 94%
Java 10.61 34,960 1282 42.06 99% 99% 99% 98%
k-nucleotide
source secs mem gz busy cpu load
F# .NET Core 3.95 182,004 1907 12.46 94% 78% 78% 66%
Java 4.57 485,000 1812 14.50 77% 74% 83% 82%
fasta
source secs mem gz busy cpu load
F# .NET Core 1.13 77,452 1350 4.24 96% 96% 90% 94%
Java 1.27 45,584 2473 3.91 82% 83% 73% 70%
mandelbrot
source secs mem gz busy cpu load
F# .NET Core 3.77 63,096 933 14.76 98% 97% 98% 98%
Java 4.14 71,012 796 16.29 99% 99% 98% 98%
reverse-complement
source secs mem gz busy cpu load
F# .NET Core 1.53 1,030,248 1140 4.24 95% 89% 35% 58%
Java 1.58 677,584 2183 3.76 55% 74% 48% 61%
spectral-norm
source secs mem gz busy cpu load
F# .NET Core 1.56 33,784 853 5.83 94% 92% 96% 92%
Java 1.57 39,376 756 5.94 96% 94% 95% 95%
pidigits
source secs mem gz busy cpu load
F# .NET Core 0.97 34,372 905 0.98 1% 96% 1% 3%
Java 0.94 36,644 764 1.07 98% 5% 2% 9%
n-body
source secs mem gz busy cpu load
F# .NET Core 6.97 34,776 1617 7.28 100% 1% 3% 1%
Java 6.74 36,480 1489 6.84 100% 1% 0% 0%
binary-trees
source secs mem gz busy cpu load
F# .NET Core 2.67 575,900 635 9.04 87% 84% 84% 83%
Java 2.48 2,496,112 835 7.88 78% 91% 74% 75%
F# .NET Core

.NET Core SDK 3.1.301
Host Version: 3.1.5; Commit: 65cd789777
<ServerGarbageCollection>true

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)