Solved

C# and C++

Posted on 2002-07-29
4
244 Views
Last Modified: 2010-04-15
a rather general and tough question to answer, but...

i am trying to find information on the speed/performance of C++ vs C#.

anyone have information related to this?

what about some sample code i can run using each language to test speed/performance for mathematical computations?

please be as thorough as possible, and provide sample code or links to code if relevant.

thank you....
0
Comment
Question by:loyaliser
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 23

Expert Comment

by:naveenkohli
ID: 7188601
If you don't conside the JIT compilation time into consideration, there is no difference between execution speeds. I have seen some benchmarks that shows memory requirment betwen C++ and C# apps. Even that show that there is no degradation of performance. GC acts pretty nicely. I haven't comeacross any benchmarks so far that will compare speed of execution.
In my personal expereince unless you are doing some low level programming, use of C# does not add any performance hit.
0
 
LVL 4

Expert Comment

by:wile_e_coyote
ID: 7193494
Check the microsoft.public.dotnet.framework.performance newsgroup. It might have some postings that will help.
0
 
LVL 2

Accepted Solution

by:
Lockias earned 300 total points
ID: 7215650
Here is "A statistical analysis of the performance variations of assorted managed and unmanaged languages"

http://www.codeproject.com/dotnet/PrimeNumbersProjects.asp

I found it very helpful.
0
 
LVL 20

Expert Comment

by:TheAvenger
ID: 9506578
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept a comment by Lockias
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheAvenger
EE Cleanup Volunteer
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question