The Computer Language
Benchmarks Game

C# .NET Core versus Java fastest programs

by faster benchmark performance

spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.08 34,988 878 15.83 97% 98% 98% 96%
Java 4.41 35,028 950 16.79 96% 97% 98% 95%
reverse-complement
source secs mem gz cpu cpu load
C# .NET Core 2.97 1,034,408 1621 7.18 25% 45% 76% 97%
Java 3.18 672,272 2183 7.17 67% 46% 43% 77%
binary-trees
source secs mem gz cpu cpu load
C# .NET Core 7.79 755,336 810 25.57 89% 82% 77% 83%
Java 8.29 930,040 835 28.13 78% 94% 85% 86%
mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 5.86 66,928 794 23.00 98% 100% 98% 98%
Java 6.13 76,876 796 23.60 96% 96% 96% 97%
n-body
source secs mem gz cpu cpu load
C# .NET Core 21.40 35,528 1542 21.40 0% 100% 1% 0%
Java 22.17 33,128 1489 22.26 0% 100% 2% 0%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.08 36,632 1026 3.08 2% 1% 1% 98%
Java 3.14 37,080 938 3.35 4% 4% 1% 98%
fannkuch-redux
source secs mem gz cpu cpu load
C# .NET Core 17.48 33,452 1068 69.42 99% 99% 99% 100%
Java 17.74 31,900 1282 69.78 99% 98% 99% 98%
fasta
source secs mem gz cpu cpu load
C# .NET Core 2.26 67,756 2098 8.39 92% 95% 96% 91%
Java 2.29 43,724 2473 6.16 67% 76% 59% 70%
k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 9.23 185,464 2593 30.46 98% 72% 79% 82%
Java 8.66 384,756 1812 26.91 69% 88% 81% 75%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 14.89 1,555,668 673 48.95 78% 76% 78% 99%
Java 10.43 609,920 929 31.73 72% 78% 72% 83%
C# .NET Core

sdk/2.1.300
.NETCore.App 2.1.0
"System.GC.Server": true

Java

java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)