Dependency Injection Framework Speedtest(philipm.at)

submitted by dpetersondpeterson(4392) 9 months, 10 days ago

Philip Mateescu shares with us an in-depth and well documented speed test of Autofac v2.4.5.724, Castle.Windsor v2.5.3, Ninject v2.2.0.0, Spring.Net v1.3.1, StructureMap v2.6.1, and Microsoft Unity v2.1.0.0. Spoiler alert, Unity loses big time ;-)

6 comments |category: |Views: 315

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 vijaystvijayst(1311) 9 months, 8 days ago 0

A good analysis of the performance of various DI frameworks in .Net. Do the slower frameworks provide more programmable features?

Reply

posted by dpetersondpeterson(4392) 9 months, 7 days ago 0

I don't know that they provide more features, at least not for the time tradeoff. A DI framework is a DI framework, anything beyond that makes it something else IMO.
Sprint.Net can also do some AOP stuff, and is more of an application framework, so I don't know if its results are skewed in this test because of that or not.
As for Autofac vs Ninject vs StructureMap, they all appear to be on equal footing feature-wise (from my cursory inspection). I think their speed differences have more to do with how they were designed rather than whether one is more feature-rich than the other.
I would also put myself out on a limb and say that providing more features isn't necessarily an excuse to perform slowly ;-)

Reply

posted by bsenoffbsenoff(1584) 8 months, 8 days ago 0

Best of DNK for August 2011 !

Reply

posted by dotnetchrisdotnetchris(157) 8 months, 8 days ago 0

StructureMap king as always. Except when it comes to documentation. Thankfully I just have like 3 years of experience with it that I rarely if ever need help doing anything with it.

Reply

posted by dpetersondpeterson(4392) replied to dotnetchrisdotnetchris(157), 8 months, 8 days ago 0

In your opinion, how does it compare to the author's favorite, Autofac?

Reply

posted by dotnetchrisdotnetchris(157) replied to dpetersondpeterson(4392), 8 months, 8 days ago 0

I've never had a need to use Autofac so I have no real comparison point. However looking at his tests I definitely saw no reason he dubbed Autofac top other than personal preference.

Reply

information Login or create an account to comment on this story