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 40,348 903 3.06 100% 1% 0% 1%
Java 3.06 31,088 938 3.16 0% 3% 9% 92%
spectral-norm
source secs mem gz cpu cpu load
F# .NET Core 4.34 43,484 853 16.72 96% 96% 98% 97%
Java 4.29 31,428 950 16.56 97% 96% 98% 97%
n-body
source secs mem gz cpu cpu load
F# .NET Core 25.38 74,468 1259 25.47 100% 2% 1% 1%
Java 21.50 27,240 1489 21.52 1% 1% 100% 0%
binary-trees
source secs mem gz cpu cpu load
F# .NET Core 15.01 735,640 511 16.63 15% 42% 23% 33%
Java 11.52 643,924 889 40.54 89% 92% 85% 89%
fannkuch-redux
source secs mem gz cpu cpu load
F# .NET Core 27.05 44,236 945 96.49 99% 82% 96% 81%
Java 17.74 30,048 1282 69.90 98% 98% 100% 99%
mandelbrot
source secs mem gz cpu cpu load
F# .NET Core 12.40 85,312 800 49.04 99% 99% 100% 99%
Java 5.89 89,504 796 23.08 98% 98% 98% 99%
k-nucleotide
source secs mem gz cpu cpu load
F# .NET Core 19.10 1,153,180 1477 62.50 84% 77% 80% 88%
Java 8.02 467,004 1802 25.57 76% 98% 73% 74%
fasta
source secs mem gz cpu cpu load
F# .NET Core 9.66 36,116 978 9.66 1% 100% 1% 0%
Java 2.14 36,192 2457 5.68 71% 58% 62% 77%
regex-redux
source secs mem gz cpu cpu load
F# .NET Core 105.80 1,028,144 426 106.18 1% 100% 1% 1%
Java 12.16 927,212 929 37.28 73% 81% 75% 78%
reverse-complement
source secs mem gz cpu cpu load
F# .NET Core 11.13 690,736 588 11.51 3% 4% 96% 2%
Java 1.11 345,308 1661 2.44 33% 58% 54% 80%
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)