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.07 30,624 878 15.82 98% 97% 98% 97%
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.73 28,584 1305 21.72 1% 1% 1% 100%
Java 22.53 28,212 1430 22.54 100% 7% 1% 1%
fasta-redux
source secs KB gz cpu cpu load
C# .NET Core 2.47 28,168 1438 2.46 99% 1% 1% 2%
Java 2.53 31,648 1443 2.59 3% 98% 1% 3%
pidigits
source secs KB gz cpu cpu load
C# .NET Core 3.06 29,616 1026 3.05 1% 2% 0% 99%
Java 3.11 33,364 938 3.20 99% 2% 2% 2%
reverse-complement
source secs KB gz cpu cpu load
C# .NET Core 1.37 766,740 1670 2.18 35% 63% 5% 58%
Java 1.17 345,940 1661 2.42 41% 43% 57% 72%
fasta
source secs KB gz cpu cpu load
C# .NET Core 3.32 45,360 1505 10.97 81% 81% 90% 80%
Java 2.20 37,072 2457 6.37 81% 68% 72% 72%
fannkuch-redux
source secs KB gz cpu cpu load
C# .NET Core 20.96 28,928 1096 82.65 98% 98% 99% 99%
Java 13.65 31,996 1282 53.64 99% 98% 99% 98%
mandelbrot
source secs KB gz cpu cpu load
C# .NET Core 11.43 63,104 701 45.18 99% 100% 99% 99%
Java 7.14 88,236 796 27.93 97% 98% 98% 99%
k-nucleotide
source secs KB gz cpu cpu load
C# .NET Core 13.75 180,812 1585 37.19 99% 52% 69% 53%
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.76 411,556 809 85.27 82% 93% 90% 94%
Java 4.56 667,820 1085 12.16 60% 66% 56% 87%
binary-trees
source secs KB gz cpu cpu load
C# .NET Core 62.48 543,156 650 68.62 62% 12% 27% 10%
Java 11.51 622,328 889 40.10 86% 86% 92% 87%
C# .NET Core

1.0.0-preview2-003121

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)