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.78 281,492 1621 1.84 71% 42% 90% 42%
C++ g++ 0.64 247,800 2280 1.03 89% 22% 31% 30%
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%
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.49 4,372 2324 5.28 89% 88% 90% 90%
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%
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.64 27,636 1002 6.51 100% 99% 100% 99%
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