The Computer Language
Benchmarks Game

C# .NET Core versus Java fastest programs

by faster benchmark performance

k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 5.58 187,032 2574 18.81 70% 93% 81% 95%
Java 8.66 384,756 1812 26.91 69% 88% 81% 75%
spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.07 35,300 878 15.84 97% 98% 99% 97%
Java 4.41 35,028 950 16.79 96% 97% 98% 95%
binary-trees
source secs mem gz cpu cpu load
C# .NET Core 7.81 804,268 810 26.27 91% 80% 83% 84%
Java 8.37 894,000 835 27.85 77% 85% 97% 77%
reverse-complement
source secs mem gz cpu cpu load
C# .NET Core 2.98 1,035,064 1621 7.18 74% 77% 36% 56%
Java 3.18 672,272 2183 7.17 67% 46% 43% 77%
fasta
source secs mem gz cpu cpu load
C# .NET Core 2.15 68,048 2098 7.97 90% 95% 95% 91%
Java 2.29 43,724 2473 6.16 67% 76% 59% 70%
mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 5.86 66,856 794 22.99 99% 98% 98% 99%
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 36,048 1542 21.40 100% 0% 1% 0%
Java 22.19 33,272 1489 22.28 35% 2% 66% 1%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.06 36,204 1121 3.06 98% 1% 2% 3%
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.47 33,448 1068 69.43 100% 99% 99% 100%
Java 17.74 31,900 1282 69.78 99% 98% 99% 98%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 14.90 1,492,752 673 48.69 83% 79% 73% 93%
Java 10.43 609,920 929 31.73 72% 78% 72% 83%
C# .NET Core

.NET Core SDK 2.1.402
Commit: 3599f217f4
Host 2.1.4
<ServerGarbageCollection>true
<ConcurrentGarbageCollection>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)