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.78 281,492 1621 1.84 71% 42% 90% 42%
Java 1.03 191,064 2183 2.31 52% 57% 43% 74%
fannkuch-redux
source secs mem gz cpu cpu load
C# .NET Core 14.44 32,724 1049 55.77 97% 92% 98% 99%
Java 17.26 32,116 1282 67.75 98% 99% 97% 99%
fasta
source secs mem gz cpu cpu load
C# .NET Core 2.09 65,216 2098 7.97 95% 99% 95% 95%
Java 2.33 43,924 2473 6.07 53% 71% 63% 74%
spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.07 32,608 878 15.82 99% 97% 97% 97%
Java 4.23 34,472 950 16.27 96% 97% 97% 96%
mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 5.83 65,344 794 22.93 99% 98% 98% 99%
Java 6.04 76,528 796 23.34 98% 97% 97% 97%
n-body
source secs mem gz cpu cpu load
C# .NET Core 21.37 34,120 1542 21.36 100% 1% 0% 1%
Java 22.10 33,136 1429 22.20 31% 1% 1% 70%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.03 35,360 1026 3.03 1% 0% 0% 100%
Java 3.12 36,788 938 3.31 6% 3% 4% 96%
binary-trees
source secs mem gz cpu cpu load
C# .NET Core 8.26 877,360 810 26.13 80% 80% 81% 79%
Java 8.34 893,008 835 28.20 87% 79% 96% 81%
k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 11.47 189,036 2044 40.36 96% 95% 74% 87%
Java 8.70 375,568 1812 27.17 80% 72% 74% 88%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 30.74 1,483,936 659 110.24 92% 89% 90% 88%
Java 10.34 627,224 929 29.88 74% 72% 65% 79%
C# .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)