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.06 31,760 938 3.16 6% 3% 97% 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.29 29,884 950 16.56 96% 97% 99% 95%
n-body
source secs mem gz cpu cpu load
F# .NET Core 22.87 46,672 1381 22.86 0% 0% 100% 1%
Java 21.54 27,092 1489 21.56 1% 1% 100% 1%
fannkuch-redux
source secs mem gz cpu cpu load
F# .NET Core 19.45 46,904 912 76.34 99% 99% 98% 98%
Java 13.74 30,368 1282 54.12 100% 98% 98% 99%
mandelbrot
source secs mem gz cpu cpu load
F# .NET Core 12.43 89,108 800 49.11 99% 99% 99% 100%
Java 7.10 90,588 796 27.92 99% 99% 98% 98%
binary-trees
source secs mem gz cpu cpu load
F# .NET Core 22.63 844,248 531 24.99 45% 20% 10% 38%
Java 11.26 593,156 835 39.02 85% 88% 90% 88%
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 7.93 465,372 1802 25.11 75% 75% 75% 93%
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 12.31 902,528 929 38.75 73% 76% 86% 81%
fasta
source secs mem gz cpu cpu load
F# .NET Core 8.81 41,448 978 8.80 0% 1% 100% 1%
Java 2.13 36,036 2457 5.66 94% 58% 59% 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.10 345,352 1661 2.40 33% 82% 53% 54%
F# .NET Core

2.0.0 cdcd1928c9
"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)