The Computer Language
Benchmarks Game

C# .NET Core programs versus Java

by benchmark task performance

spectral-norm
source secs KB gz cpu cpu load
C# .NET Core 4.05 40,680 878 15.80 97% 98% 97% 99%
Java 4.26 32,244 950 16.41 96% 98% 95% 97%
n-body
source secs KB gz cpu cpu load
C# .NET Core 21.69 37,264 1305 21.68 1% 0% 1% 100%
Java 22.53 28,212 1430 22.54 100% 7% 1% 1%
pidigits
source secs KB gz cpu cpu load
C# .NET Core 3.03 38,568 1026 3.02 1% 1% 100% 1%
Java 3.11 33,364 938 3.20 99% 2% 2% 2%
fasta
source secs KB gz cpu cpu load
C# .NET Core 2.30 87,444 1904 8.16 98% 86% 86% 87%
Java 2.20 37,072 2457 6.37 81% 68% 72% 72%
fannkuch-redux
source secs KB gz cpu cpu load
C# .NET Core 18.89 43,648 1172 74.76 99% 99% 100% 99%
Java 17.34 30,084 1282 68.20 97% 98% 99% 99%
mandelbrot
source secs KB gz cpu cpu load
C# .NET Core 8.27 66,936 839 32.66 99% 100% 99% 99%
Java 7.14 88,236 796 27.93 97% 98% 98% 99%
reverse-complement
source secs KB gz cpu cpu load
C# .NET Core 1.39 762,992 1670 2.20 43% 24% 67% 28%
Java 1.17 345,940 1661 2.42 41% 43% 57% 72%
binary-trees
source secs KB gz cpu cpu load
C# .NET Core 14.31 760,568 955 50.52 89% 88% 89% 91%
Java 11.51 622,328 889 40.10 86% 86% 92% 87%
k-nucleotide
source secs KB gz cpu cpu load
C# .NET Core 13.91 221,480 1585 37.85 52% 51% 74% 97%
Java 8.10 469,624 1802 25.75 97% 77% 76% 71%
regex-dna
source secs KB gz cpu cpu load
C# .NET Core 23.35 403,520 806 86.33 89% 90% 95% 96%
Java 4.56 667,820 1085 12.16 60% 66% 56% 87%
C# .NET Core

1.0.0-preview2-1-003177
"System.GC.Server": true

Java

java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)