Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Head-to-head benchmark: C++ vs .NET

, 4 Jul 2011 LGPL3
How fast is C++ compared to C#? Let's compare code ported directly between the two languages.
BenchmarkCppVsDotNet.zip
CPlusPlus
CPlusPlus.vcproj.MEI.dpiepgrass.user
Out
RANGER V01 (ARMV4I)-Release
BenchmarkCPlusPlus.exe
Win32-Release
BenchmarkCPlusPlus.exe
x64-Release
BenchmarkCPlusPlus.exe
ResultsC++.csv
CSharp
BenchmarkCSharp.csproj.user
bin
x64 Release
BenchmarkCSharp.exe
SimpleDll.dll
x86 Release
BenchmarkCSharp.exe
SimpleDll.dll
Math
Properties
CSharpCF
BenchmarkCSharpCF.csproj.user
bin
Release
BenchmarkCSharp.exe
Math
Properties
Results
ResultsC# ARM Release.csv
ResultsC# x64 Debug.csv
ResultsC# x64 Release.csv
ResultsC# x86 Debug.csv
ResultsC# x86 Mono.csv
ResultsC# x86 Release.csv
ResultsC++ ARM fast hash_map.csv
ResultsC++ ARM Release.csv
ResultsC++ x64 Debug.csv
ResultsC++ x64 Release.csv
ResultsC++ x86 Debug.csv
ResultsC++ x86 Release.csv
Summary.xlsx
SimpleDll
SimpleDll.vcproj.MEI.dpiepgrass.user
BenchmarkCppVsDotNetV2.zip
CPlusPlus.vcproj.MEI.dpiepgrass.user
CPlusPlus2010.vcxproj.filters
CPlusPlus2010.vcxproj.user
hashtable_inc.cxx
BenchmarkCPlusPlus.exe
BenchmarkCPlusPlus.exe
BenchmarkCPlusPlus.exe
Out2010
Win32-Release
BenchmarkCPlusPlus2010.exe
x64-Release
BenchmarkCPlusPlus2010.exe
BenchmarkCSharp.csproj.user
x64 Release .NET4
BenchmarkCSharp2010.exe
SimpleDll.dll
BenchmarkCSharp.exe
SimpleDll.dll
x86 Release .NET4
BenchmarkCSharp2010.exe
SimpleDll.dll
BenchmarkCSharp.exe
SimpleDll.dll
BenchmarkCSharpCF.csproj.user
BenchmarkCSharp.exe
Excluded
ResultsC# Mono --llvm.csv
GraphMaker
bin
Debug
GraphMaker.exe
GraphMaker.suo
Properties
Old
ResultsC# ARM Release.csv
ResultsC# x64 Debug.csv
ResultsC# x64 Release.csv
ResultsC# x86 Debug.csv
ResultsC# x86 Mono.csv
ResultsC# x86 Release.csv
ResultsC++ ARM fast hash_map.csv
ResultsC++ ARM Release.csv
ResultsC++ x64 Debug.csv
ResultsC++ x64 Release.csv
ResultsC++ x86 Debug.csv
ResultsC++ x86 Release.csv
ResultsC# Mono.csv
Summary.xlsx
SimpleDll.vcproj.MEI.dpiepgrass.user
SimpleDll2010.filters
SimpleDll2010.vcxproj.user
ResultsC# x64 .NET3.csv
ResultsC# x64 .NET4.csv
ResultsC# x86 .NET3.csv
ResultsC# x86 .NET4.csv
ResultsC++ x64 VC9 SSE2.csv
ResultsC++ x64 VC10 SSE2.csv
ResultsC++ x86 VC9 default.csv
ResultsC++ x86 VC9 NCI.csv
ResultsC++ x86 VC9 SSE2.csv
ResultsC++ x86 VC10 SSE2.csv
ResultsC++ x86 VC9 NCI + Ox.csv

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)

Share

About the Author

Qwertie
Software Developer Trapeze Software, Inc.
Canada Canada
Since I started programming when I was 11, I wrote the SNES emulator "SNEqr", the FastNav mapping component, and LLLPG, among other things. Now I'm old.
 
In my spare time I'm developing a system called Loyc (Language of your choice), which will include an enhanced C# compiler. Many programs have an add-in architecture; why not your programming language? I'm also looking for a life partner. Oh hi future wife! Wazzap.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150129.1 | Last Updated 5 Jul 2011
Article Copyright 2011 by Qwertie
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid