Is Managed Code Slower Than Unmanaged Code?(grimes.demon.co.uk)

submitted by terrbleterrble(1665) 3 years, 10 months ago

Ask anyone the question above and they will say that managed is slower than unmanaged code. Are they right? No they are not. The problem is that when most people think of .NET they think of other frameworks with a runtime, like Java or Visual Basic; or they may even think about interpreters. They do not think about applications, or what they do; they do not think about limiting factors like network or disk access; in short, they do not think.

6 comments |category: |Views: 479

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by evarlastevarlast(20) 3 years, 10 months ago 0

I would down mod if I could because the premise isn't "are managed applications slow" but "is the code slower". I read "code" as the codes, or IL v. native machine language. Applications, what they do, network or disk do not come into play with speed test of "codes" it comes into play with speed tests of applications.

Reply

posted by gt1329agt1329a(7849) 3 years, 10 months ago 0

JIT'ing the managed code before comparing execution speeds seems to defeat the point of comparing them at all.

Reply

posted by BlackWaspBlackWasp(4212) 3 years, 10 months ago 0

Interesting article but please do something about the background.

Reply

posted by RickasaurusRickasaurus(1225) 3 years, 10 months ago 0

I would like to see some partial trust results as well.

Reply

posted by damodamo(0) 3 years, 10 months ago 0

Wow, that background is really bad. Thought I had a bunch of broken pixels on my LCD... Adblock "http://www.grimes.demon.co.uk/images/bkgnd.gif"

Reply

posted by omelletomellet(0) 3 years, 9 months ago 0

The problem with this test is that FFTs can benefit tremendously from SIMD optimizations, which you can't do in managed code. In real life, a properly optimized C++ FFT algorithm on any modern x86 cpu would beat the pants off of a managed app, and will continue to do so until the JIT engine can vectorize.

Reply

information Login or create an account to comment on this story