The Computer Language
Benchmarks Game

F# .NET Core programs versus Java

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
F# .NET Core 3.05 42,220 903 3.05 1% 100% 0% 2%
Java 3.06 31,760 938 3.16 6% 3% 97% 1%
spectral-norm
source secs mem gz cpu cpu load
F# .NET Core 4.32 45,488 853 16.57 97% 97% 96% 95%
Java 4.29 29,884 950 16.56 96% 97% 99% 95%
n-body
source secs mem gz cpu cpu load
F# .NET Core 25.38 80,716 1259 25.47 12% 85% 2% 3%
Java 21.54 27,092 1489 21.56 1% 1% 100% 1%
mandelbrot
source secs mem gz cpu cpu load
F# .NET Core 12.43 85,692 800 49.10 99% 99% 100% 99%
Java 7.10 90,588 796 27.92 99% 99% 98% 98%
fannkuch-redux
source secs mem gz cpu cpu load
F# .NET Core 26.39 46,224 945 96.08 98% 84% 99% 84%
Java 13.74 30,368 1282 54.12 100% 98% 98% 99%
binary-trees
source secs mem gz cpu cpu load
F# .NET Core 23.71 596,776 531 27.26 36% 20% 36% 27%
Java 11.26 593,156 835 39.02 85% 88% 90% 88%
k-nucleotide
source secs mem gz cpu cpu load
F# .NET Core 18.96 1,166,252 1477 63.62 82% 87% 90% 78%
Java 7.93 465,372 1802 25.11 75% 75% 75% 93%
fasta
source secs mem gz cpu cpu load
F# .NET Core 9.67 38,672 978 9.66 1% 64% 37% 1%
Java 2.13 36,036 2457 5.66 94% 58% 59% 60%
regex-redux
source secs mem gz cpu cpu load
F# .NET Core 105.62 1,090,956 426 106.05 38% 3% 2% 60%
Java 12.31 902,528 929 38.75 73% 76% 86% 81%
reverse-complement
source secs mem gz cpu cpu load
F# .NET Core 11.05 695,604 588 11.54 51% 2% 3% 51%
Java 1.10 345,352 1661 2.40 33% 82% 53% 54%
F# .NET Core

F# 4.1.0
dotnet 1.0.1 005db40cd1
"System.GC.Server": true

Java

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)