1

How much of a performance penalty are you paying when going to .Net from a vanilla c++ unmanaged environment. I have heard that the difference is smaller now than what it used to be?

I am referring to a PC environment and not embedded systems

TGH
  • 38,769
  • 12
  • 102
  • 135
  • Somthing like this: [stackoverflow](http://stackoverflow.com/questions/145110/c-performance-vs-java-c)? – JleruOHeP Mar 30 '12 at 05:27
  • Interesting. I actually didn't consider that it in some cases can be faster... – TGH Mar 30 '12 at 05:29
  • 2
    the main difference is in the time it takes you to do your program – AndersK Mar 30 '12 at 05:29
  • Could be anything, from a performance gain to orders of magnitude loss, depending on task. – Don Reba Mar 30 '12 at 05:30
  • In my case it's a moot point since I work in Asp.Net most of the time. Any microscopical difference will be insignificant compared to the web requests anyway :-) – TGH Mar 30 '12 at 05:32
  • possible duplicate of [Is C# really slower than say C++?](http://stackoverflow.com/questions/5326269/is-c-sharp-really-slower-than-say-c) – Jerry Coffin Mar 30 '12 at 05:36

2 Answers2

2

The short answer, it depends on what you are doing. There are several places to read about this.

C++ performance vs. Java/C#

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

C# versus C++ versus Java performance comparison

Community
  • 1
  • 1
josephthomas
  • 3,256
  • 15
  • 20
0

It's absolutely depends on your project.

But remember itat .Net is not designed for high performance computing, but for high productivity.

So, in cases on stressing performance it will almost always loose in front of c, c++ or say python. But if you measure time you need deliver a simple windows based application, full of modern features,, the story almost always will be inverse.

Tigran
  • 61,654
  • 8
  • 86
  • 123