The Computer Language
Benchmarks Game

C# .NET Core programs versus Java

by benchmark task performance

spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.05 40,348 878 15.80 97% 97% 98% 99%
Java 4.29 31,428 950 16.56 97% 96% 98% 97%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.03 38,372 1026 3.02 1% 0% 100% 2%
Java 3.06 31,088 938 3.16 0% 3% 9% 92%
n-body
source secs mem gz cpu cpu load
C# .NET Core 21.69 37,272 1305 21.68 0% 100% 1% 2%
Java 21.50 27,240 1489 21.52 1% 1% 100% 0%
fannkuch-redux
source secs mem gz cpu cpu load
C# .NET Core 18.91 39,160 1172 74.75 99% 99% 98% 99%
Java 17.74 30,048 1282 69.90 98% 98% 100% 99%
fasta
source secs mem gz cpu cpu load
C# .NET Core 2.33 87,548 1904 8.17 85% 98% 85% 85%
Java 2.14 36,192 2457 5.68 71% 58% 62% 77%
reverse-complement
source secs mem gz cpu cpu load
C# .NET Core 1.37 750,404 1670 2.21 71% 49% 22% 24%
Java 1.11 345,308 1661 2.44 33% 58% 54% 80%
binary-trees
source secs mem gz cpu cpu load
C# .NET Core 14.63 844,632 955 52.00 91% 90% 89% 89%
Java 11.52 643,924 889 40.54 89% 92% 85% 89%
mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 8.27 66,956 839 32.66 99% 100% 99% 99%
Java 5.89 89,504 796 23.08 98% 98% 98% 99%
k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 13.28 223,584 1585 36.90 57% 97% 53% 73%
Java 8.02 467,004 1802 25.57 76% 98% 73% 74%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 31.11 1,230,080 856 106.12 90% 87% 92% 74%
Java 12.16 927,212 929 37.28 73% 81% 75% 78%
C# .NET Core

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)