Source code of my performance comparison of the most popular .NET IoC containers:
www.palmmedia.de/Blog/2011/8/30/ioc-container-benchmark-performance-comparison
Author: Daniel Palme
Blog: www.palmmedia.de
Twitter: @danielpalme
Container | Singleton | Transient | Combined | Complex |
---|---|---|---|---|
No | 81 | 88 | 97 | 106 |
Autofac 3.1.5 (http://code.google.com/p/autofac) | 978 | 713 | 1674 | 5042 |
Caliburn.Micro 1.5.2 (http://caliburnmicro.codeplex.com) | 435 | 409 | 1132 | 4488 |
Catel 3.7 (http://www.catelproject.com) | 417 | 2981 | 7162 | 18088 |
Dynamo 3.0.2.0 (http://www.dynamoioc.com) | 98 | 105 | 164 | 444 |
fFastInjector 0.8.1 (http://ffastinjector.codeplex.com) | 86 | 113 | 140 | 216 |
Funq 1.0.0.0 (http://funq.codeplex.com) | 127 | 131 | 289 | 952 |
Grace 1.0 (http://grace.codeplex.com) | 471 | 444 | 686 | 1707 |
Griffin 1.1.0 (https://github.com/jgauffin/griffin.container) | 207 | 262 | 552 | 1475 |
HaveBox 1.6.0 (https://bitbucket.org/Have/havebox) | 99 | 107 | 99 | 144 |
Hiro 1.0.3 (https://github.com/philiplaureano/Hiro) | 130 | 123 | 183 | 191 |
IfInjector 0.7 (https://github.com/iamahern/IfInjector) | 111 | 130 | 148 | 258 |
LightCore 1.5.1 (http://www.lightcore.ch) | 451 | 2871 | 19797 | 102595 |
LightInject 3.0.1.0 (https://github.com/seesharper/LightInject) | 95 | 114 | 97 | 148 |
LinFu 2.3.0.41559 (https://github.com/philiplaureano/LinFu) | 6384 | 28237 | 70343 | 189899 |
Mef 4.0.0.0 (http://mef.codeplex.com) | 36949 | 40471 | 67467 | 131693 |
MicroSliver 2.1.6.0 (http://microsliver.codeplex.com) | 335 | 956 | 3057 | 8282 |
Mugen 3.5.1 (http://mugeninjection.codeplex.com) | 808 | 877 | 2169 | 7957 |
Munq 3.1.6 (http://munq.codeplex.com) | 92 | 127 | 411 | 1355 |
Ninject 3.0.1.10 (http://ninject.org) | 8997 | 18530 | 50983 | 138221 |
Petite 0.3.2 (https://github.com/andlju/Petite) | 5715 | 5375 | 5651 | 7121 |
SimpleInjector 2.3.6 (http://simpleinjector.codeplex.com) | 107 | 108 | 114 | 146 |
Spring.NET 1.3.2 (http://www.springframework.net/) | 1641 | 16664 | 40305 | 101881 |
StructureMap 2.6.4.1 (http://structuremap.net/structuremap) | 2178 | 2009 | 5984 | 15834 |
StyleMVVM 3.1.4 (http://stylemvvm.codeplex.com) | 463 | 436 | 619 | 1274 |
TinyIoC 1.2 (https://github.com/grumpydev/TinyIoC) | 601 | 2723 | 9101 | 34886 |
Unity 3.0.1304.1 (http://msdn.microsoft.com/unity) | 2915 | 4009 | 11660 | 33348 |
Windsor 3.2.1 (http://castleproject.org) | 931 | 2700 | 8108 | 20969 |