The Computer Language
Benchmarks Game

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

by benchmark task performance

reverse-complement
source secs mem gz cpu cpu load
C# .NET Core 0.79 307,604 1584 1.84 89% 75% 51% 24%
C++ g++ 0.60 211,852 2275 0.98 38% 25% 82% 27%
fasta
source secs mem gz cpu cpu load
C# .NET Core 2.09 90,540 2087 7.85 94% 93% 97% 93%
C++ g++ 1.48 4,176 2313 5.25 89% 90% 88% 89%
fannkuch-redux
source secs mem gz cpu cpu load
C# .NET Core 14.98 40,740 1091 57.67 97% 93% 99% 97%
C++ g++ 10.35 2,624 980 40.60 99% 99% 100% 95%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.03 43,064 1026 3.03 3% 99% 1% 3%
C++ g++ 1.89 3,868 508 1.89 100% 1% 2% 1%
k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 12.37 231,336 2251 39.09 97% 70% 78% 72%
C++ g++ 7.18 164,052 1252 24.28 83% 83% 93% 83%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 31.19 1,696,208 673 111.64 97% 89% 92% 80%
C++ g++ 17.14 220,088 853 25.22 95% 3% 51% 1%
spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.05 42,828 878 15.80 99% 97% 97% 98%
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.71 39,848 1305 21.70 100% 0% 1% 0%
C++ g++ 9.31 1,052 1544 9.30 1% 1% 1% 100%
binary-trees
source secs mem gz cpu cpu load
C# .NET Core 7.26 716,568 851 23.98 84% 82% 81% 87%
C++ g++ 2.36 114,404 809 7.69 86% 71% 87% 85%
mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 6.78 74,348 672 26.69 100% 99% 98% 99%
C++ g++ 1.73 34,064 1002 6.80 98% 98% 98% 99%
C# .NET Core

2.0.0 cdcd1928c9
"System.GC.Server": true

C++ g++

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