Solved

C# and C++

Posted on 2002-07-29
4
231 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
4 Comments
 
LVL 23

Expert Comment

by:naveenkohli
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
send mail from app.net 8 27
the name DateAdd does not exist in this context 2 32
Problem with SqlConnection 5 109
asp.net bundle 8 33
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now