The Computer Language
Benchmarks Game

C# .NET Core programs versus C++ g++

by benchmark task performance

fasta
source secs mem gz cpu cpu load
C# .NET Core 2.11 86,936 2087 7.95 92% 93% 96% 98%
C++ g++ 1.48 4,176 2313 5.25 89% 90% 88% 89%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.03 40,312 1026 3.03 99% 1% 1% 0%
C++ g++ 1.89 3,868 508 1.89 100% 1% 2% 1%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 30.79 1,401,756 856 106.34 92% 82% 80% 93%
C++ g++ 17.14 220,088 853 25.22 95% 3% 51% 1%
fannkuch-redux
source secs mem gz cpu cpu load
C# .NET Core 18.93 41,332 1172 75.05 99% 100% 99% 99%
C++ g++ 10.35 2,624 980 40.60 99% 99% 100% 95%
k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 13.46 223,004 1585 37.90 73% 99% 55% 56%
C++ g++ 7.18 164,052 1252 24.28 83% 83% 93% 83%
spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.06 42,800 878 15.81 98% 98% 98% 97%
C++ g++ 1.99 1,880 1044 7.89 100% 99% 99% 99%
n-body
source secs mem gz cpu cpu load
C# .NET Core 21.69 43,112 1305 21.68 1% 100% 1% 0%
C++ g++ 9.31 1,052 1544 9.30 1% 1% 1% 100%
reverse-complement
source secs mem gz cpu cpu load
C# .NET Core 1.40 700,868 1670 2.22 19% 45% 63% 37%
C++ g++ 0.60 211,852 2275 0.98 38% 25% 82% 27%
binary-trees
source secs mem gz cpu cpu load
C# .NET Core 7.40 684,584 780 24.34 86% 83% 81% 83%
C++ g++ 2.36 114,404 809 7.69 86% 71% 87% 85%
mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 8.27 80,888 839 32.68 99% 99% 100% 99%
C++ g++ 1.73 34,064 1002 6.80 98% 98% 98% 99%
C# .NET Core

dotnet 1.0.1 005db40cd1
"System.GC.Server": true

C++ g++

g++ (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406