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 2.95 1,032,860 1621 7.17 41% 35% 94% 75%
C++ g++ 3.08 980,604 2280 4.66 62% 25% 12% 54%
fannkuch-redux
source secs mem gz cpu cpu load
C# .NET Core 14.44 32,724 1049 55.77 97% 92% 98% 99%
C++ g++ 10.61 2,044 980 41.90 100% 96% 100% 100%
k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 11.47 189,036 2044 40.36 96% 95% 74% 87%
C++ g++ 7.75 165,180 1276 26.02 80% 96% 82% 79%
fasta
source secs mem gz cpu cpu load
C# .NET Core 2.09 65,216 2098 7.97 95% 99% 95% 95%
C++ g++ 1.35 1,952 2711 4.18 79% 78% 78% 79%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.03 35,360 1026 3.03 1% 0% 0% 100%
C++ g++ 1.88 4,276 513 1.88 0% 100% 1% 0%
spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.07 32,608 878 15.82 99% 97% 97% 97%
C++ g++ 2.02 1,332 1044 7.91 99% 99% 99% 99%
n-body
source secs mem gz cpu cpu load
C# .NET Core 21.37 34,120 1542 21.36 100% 1% 0% 1%
C++ g++ 8.23 1,856 1763 8.23 100% 1% 1% 0%
binary-trees
source secs mem gz cpu cpu load
C# .NET Core 8.26 877,360 810 26.13 80% 80% 81% 79%
C++ g++ 2.55 135,568 809 7.99 85% 96% 69% 66%
mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 5.83 65,344 794 22.93 99% 98% 98% 99%
C++ g++ 1.51 25,704 1791 5.99 99% 100% 100% 100%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 30.74 1,483,936 659 110.24 92% 89% 90% 88%
C++ g++ 1.61 203,572 1315 4.18 100% 52% 57% 54%
C# .NET Core

2.0.2 a04b4bf512
"System.GC.Server": true

C++ g++

g++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0