The Computer Language
Benchmarks Game

F# .NET Core programs versus Java

by benchmark task performance

fasta
source secs mem gz cpu cpu load
F# .NET Core 1.67 123,472 1350 6.27 93% 99% 93% 93%
Java 2.33 43,924 2473 6.07 53% 71% 63% 74%
reverse-complement
source secs mem gz cpu cpu load
F# .NET Core 0.82 304,232 1608 1.67 46% 36% 81% 49%
Java 1.03 191,064 2183 2.31 52% 57% 43% 74%
fannkuch-redux
source secs mem gz cpu cpu load
F# .NET Core 16.65 36,904 953 64.80 100% 98% 97% 95%
Java 17.26 32,116 1282 67.75 98% 99% 97% 99%
pidigits
source secs mem gz cpu cpu load
F# .NET Core 3.05 38,168 874 3.04 1% 0% 99% 3%
Java 3.12 36,788 938 3.31 6% 3% 4% 96%
spectral-norm
source secs mem gz cpu cpu load
F# .NET Core 4.32 37,008 853 16.69 96% 96% 96% 99%
Java 4.23 34,472 950 16.27 96% 97% 97% 96%
binary-trees
source secs mem gz cpu cpu load
F# .NET Core 8.54 1,049,740 619 28.64 87% 88% 83% 82%
Java 8.34 893,008 835 28.20 87% 79% 96% 81%
n-body
source secs mem gz cpu cpu load
F# .NET Core 22.86 38,500 1381 22.86 100% 0% 1% 1%
Java 22.10 33,136 1429 22.20 31% 1% 1% 70%
mandelbrot
source secs mem gz cpu cpu load
F# .NET Core 6.66 67,124 877 26.20 98% 100% 99% 98%
Java 6.04 76,528 796 23.34 98% 97% 97% 97%
k-nucleotide
source secs mem gz cpu cpu load
F# .NET Core 10.43 195,348 1926 36.77 96% 88% 84% 86%
Java 8.70 375,568 1812 27.17 80% 72% 74% 88%
regex-redux
source secs mem gz cpu cpu load
F# .NET Core 31.02 1,446,740 529 111.00 92% 89% 85% 91%
Java 10.34 627,224 929 29.88 74% 72% 65% 79%
F# .NET Core

2.0.2 a04b4bf512
"System.GC.Server": true

Java

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