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.06 43,472 903 3.05 1% 99% 1% 2%
Java 3.12 37,444 938 3.30 2% 5% 98% 4%
n-body
source secs mem gz cpu cpu load
F# .NET Core 22.87 46,672 1381 22.86 0% 0% 100% 1%
Java 22.56 35,208 1424 22.65 99% 1% 1% 1%
spectral-norm
source secs mem gz cpu cpu load
F# .NET Core 4.34 46,716 853 16.64 95% 96% 98% 96%
Java 4.25 36,364 950 16.30 97% 96% 95% 97%
fannkuch-redux
source secs mem gz cpu cpu load
F# .NET Core 19.45 46,904 912 76.34 99% 99% 98% 98%
Java 15.09 34,764 1282 59.26 99% 98% 98% 100%
mandelbrot
source secs mem gz cpu cpu load
F# .NET Core 12.43 89,108 800 49.11 99% 99% 99% 100%
Java 6.08 77,056 796 23.61 97% 97% 99% 97%
k-nucleotide
source secs mem gz cpu cpu load
F# .NET Core 19.25 1,117,236 1477 62.56 80% 96% 74% 77%
Java 8.38 375,988 1802 26.25 73% 97% 70% 74%
binary-trees
source secs mem gz cpu cpu load
F# .NET Core 22.63 844,248 531 24.99 45% 20% 10% 38%
Java 8.58 966,808 835 28.98 86% 84% 90% 81%
regex-redux
source secs mem gz cpu cpu load
F# .NET Core 30.77 1,450,708 529 110.41 87% 90% 97% 86%
Java 10.38 634,548 929 29.48 70% 64% 69% 82%
fasta
source secs mem gz cpu cpu load
F# .NET Core 8.81 41,448 978 8.80 0% 1% 100% 1%
Java 2.32 46,816 2457 6.37 61% 60% 96% 60%
reverse-complement
source secs mem gz cpu cpu load
F# .NET Core 11.90 1,199,404 588 13.20 7% 96% 6% 6%
Java 1.13 199,672 2124 2.76 48% 74% 70% 54%
F# .NET Core

2.0.0 cdcd1928c9
"System.GC.Server": true

Java

java 9
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)