Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
IOC Container Drag Race
travislaborde
follow
0
4-17-2008 7:08 AM
212 views
tags:
programming
,
.net
,
ioc
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Related Clips
Goodbye To Faulty Software?
Harvard Researchers Create Computer Langua...
ComCast Hears You and Talks Back
Sophia
Creative Code: 14 Ways to Learn From Creat...
FOSSwiki
FreeBookZone - free eBooks
More clips from
travislaborde
Talula Does The Hula From Hawaii
Japanese iPhones Get Exclusive Feature to...
Unit Test Boundaries
Today's Top Clips
High Speed Photography
Jupiter
Hero
My Doggies
Time as an abstract idea –beautiful illustration
California becomes first state to ban trans fats
Do Not Read This !
"Time" - Wheel of Life
How Many Silicon Valley Startup Executives Are Hopped Up On Provigil?
'Last Lecture' professor dies at 47
visit the
Top Clips page
View the Top Clips from
April 17, 2008
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/24940b60-db99-452a-8915-e9e4d7bbe1ec/4E57114A-F2C3-450C-97AD-1C2E388D92C1/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.codinginstinct.com/2008/04/ioc-container-benchmark-unity-windsor.html" href="http://www.codinginstinct.com/2008/04/ioc-container-benchmark-unity-windsor.html" style="font-size: 11px;">www.codinginstinct.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.codinginstinct.com/2008/04/ioc-container-benchmark-unity-windsor.html"><DIV><SPAN class="titles"> <A href="http://www.codinginstinct.com/2008/04/ioc-container-benchmark-unity-windsor.html">IoC Container Benchmark - Unity, Windsor, StructureMap and Spring.NET</A> </SPAN></DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.codinginstinct.com/2008/04/ioc-container-benchmark-unity-windsor.html"><P>There are a number of inversion of control containers out there so I thought it would be an interesting experiment to do a simple benchmark. There are different ways that one can instantiate a type in .NET, for example via the new operator, Activator, GetUninitializedObject and Dynamic Method. The performance difference between these methods are in some cases quite high, maybe the same is true for these IoC containers? Granted IoC containers do more than just create objects so other factors will probably play a big role in the results.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.codinginstinct.com/2008/04/ioc-container-benchmark-unity-windsor.html"><P>The scenario for this test:</P> <UL> <li style="margin-left:16px;padding-left: 0px;">Have each IoC container resolve a UserController 1000 000 times </LI> <li style="margin-left:16px;padding-left: 0px;">The UserController will have two constructor dependencies </LI> <li style="margin-left:16px;padding-left: 0px;">Run the test with transient (new instance for each resolve) and singleton components</LI></UL></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.codinginstinct.com/2008/04/ioc-container-benchmark-unity-windsor.html"><div align="center"><img src="http://content8.clipmarks.com/blog_cache/www.codinginstinct.com/img/17525D16-2A52-4177-B595-10B826A56E49" alt="IoCSingleton" /></div></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.codinginstinct.com/2008/04/ioc-container-benchmark-unity-windsor.html"><div align="center"><img src="http://content9.clipmarks.com/blog_cache/www.codinginstinct.com/img/A82F6A48-4BFB-4C42-BCC6-D6FBD8763F4F" alt="IoCTransient" /></div></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/4E57114A-F2C3-450C-97AD-1C2E388D92C1/blog/" title="blog or email this clip"><img src="http://content6.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Blog
Copyright
Privacy
EULA
OK