The Computer Language
Benchmarks Game

C# .NET Core programs versus Java

by benchmark task performance

reverse-complement
source secs mem gz cpu cpu load
C# .NET Core 0.79 307,604 1584 1.84 89% 75% 51% 24%
Java 1.13 199,672 2124 2.76 48% 74% 70% 54%
binary-trees
source secs mem gz cpu cpu load
C# .NET Core 7.26 716,568 851 23.98 84% 82% 81% 87%
Java 8.58 966,808 835 28.98 86% 84% 90% 81%
fasta
source secs mem gz cpu cpu load
C# .NET Core 2.09 90,540 2087 7.85 94% 93% 97% 93%
Java 2.32 46,816 2457 6.37 61% 60% 96% 60%
n-body
source secs mem gz cpu cpu load
C# .NET Core 21.37 39,628 1542 21.36 1% 0% 100% 1%
Java 22.56 35,208 1424 22.65 99% 1% 1% 1%
spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.05 42,828 878 15.80 99% 97% 97% 98%
Java 4.25 36,364 950 16.30 97% 96% 95% 97%
fannkuch-redux
source secs mem gz cpu cpu load
C# .NET Core 14.45 40,556 1049 55.82 98% 93% 99% 98%
Java 15.09 34,764 1282 59.26 99% 98% 98% 100%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.03 43,064 1026 3.03 3% 99% 1% 3%
Java 3.12 37,444 938 3.30 2% 5% 98% 4%
mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 6.78 74,348 672 26.69 100% 99% 98% 99%
Java 6.08 77,056 796 23.61 97% 97% 99% 97%
k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 12.37 231,336 2251 39.09 97% 70% 78% 72%
Java 8.38 375,988 1802 26.25 73% 97% 70% 74%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 31.19 1,696,208 673 111.64 97% 89% 92% 80%
Java 10.38 634,548 929 29.48 70% 64% 69% 82%
C# .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)