Link to home
Start Free TrialLog in
Avatar of loyaliser
loyaliserFlag for United States of America

asked on

C# and C++

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....
Avatar of naveenkohli
naveenkohli

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.
Check the microsoft.public.dotnet.framework.performance newsgroup. It might have some postings that will help.
ASKER CERTIFIED SOLUTION
Avatar of Lockias
Lockias

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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