Click here to Skip to main content
13,090,418 members (45,592 online)
Click here to Skip to main content

Stats

631.9K views
2.1K downloads
198 bookmarked
Posted 17 Jun 2011

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

, 4 Jul 2011
How fast is C++ compared to C#? Let's compare code ported directly between the two languages.
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
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 None
Canada Canada
Since I started programming when I was 11, I wrote the SNES emulator "SNEqr", the FastNav mapping component, the Enhanced C# programming language (in progress), the parser generator LLLPG, and LES, a syntax to help you start building programming languages, DSLs or build systems.

My overall focus is on the Language of your choice (Loyc) initiative, which is about investigating ways to improve interoperability between programming languages and putting more power in the hands of developers. I'm also seeking employment.

You may also be interested in...

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