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.70 656,328 929 18.25 89% 76% 79% 75%
k-nucleotide
source secs mem gz busy cpu load
F# .NET Core 3.95 182,004 1907 12.46 94% 78% 78% 66%
Java 5.00 408,040 1812 16.36 74% 81% 86% 86%
fannkuch-redux
source secs mem gz busy cpu load
F# .NET Core 8.91 34,216 1097 34.78 98% 99% 99% 94%
Java 11.00 34,104 1282 43.42 99% 98% 98% 99%
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 43,968 2473 3.92 73% 95% 70% 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.11 68,204 796 16.20 98% 99% 98% 99%
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.68 38,348 950 6.43 96% 96% 96% 95%
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.54 702,332 2183 3.55 78% 46% 49% 57%
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.75 35,200 1489 6.83 0% 0% 100% 1%
binary-trees
source secs mem gz busy cpu load
F# .NET Core 2.71 697,592 635 9.30 89% 88% 82% 84%
Java 2.50 2,487,096 835 7.90 88% 75% 75% 79%
pidigits
source secs mem gz busy cpu load
F# .NET Core 0.97 34,372 905 0.98 1% 96% 1% 3%
Java 0.79 35,568 764 0.84 99% 3% 3% 1%
F# .NET Core

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

Java

openjdk 15 2020-09-15
OpenJDK Runtime Environment (build 15+36-1562)
OpenJDK 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)