The Computer Language
Benchmarks Game

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

by benchmark task performance

mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 8.27 66,956 839 32.66 99% 100% 99% 99%
C++ g++ 5.82 33,952 726 22.40 96% 95% 95% 100%
fasta
source secs mem gz cpu cpu load
C# .NET Core 2.33 87,548 1904 8.17 85% 98% 85% 85%
C++ g++ 1.47 9,484 2291 5.13 88% 88% 87% 88%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.03 38,372 1026 3.02 1% 0% 100% 2%
C++ g++ 1.89 3,740 508 1.89 2% 99% 0% 2%
fannkuch-redux
source secs mem gz cpu cpu load
C# .NET Core 18.91 39,160 1172 74.75 99% 99% 98% 99%
C++ g++ 10.58 2,520 950 41.88 100% 100% 99% 98%
k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 13.28 223,584 1585 36.90 57% 97% 53% 73%
C++ g++ 7.15 164,080 1252 24.21 82% 83% 80% 96%
spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.05 40,348 878 15.80 97% 97% 98% 99%
C++ g++ 2.01 1,792 1044 8.00 100% 100% 100% 100%
reverse-complement
source secs mem gz cpu cpu load
C# .NET Core 1.37 750,404 1670 2.21 71% 49% 22% 24%
C++ g++ 0.59 217,564 2275 0.84 26% 78% 12% 34%
n-body
source secs mem gz cpu cpu load
C# .NET Core 21.69 37,272 1305 21.68 0% 100% 1% 2%
C++ g++ 9.30 1,712 1763 9.29 100% 1% 1% 0%
binary-trees
source secs mem gz cpu cpu load
C# .NET Core 14.63 844,632 955 52.00 91% 90% 89% 89%
C++ g++ 3.36 158,320 846 10.59 81% 82% 78% 75%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 31.11 1,230,080 856 106.12 90% 87% 92% 74%
C++ g++ 6.75 183,256 700 9.80 100% 39% 8% 0%
C# .NET Core

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

C++ g++

g++ (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609