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.3.0 (http://code.google.com/p/autofac) | 1022 | 723 | 1717 | 5169 |
Caliburn.Micro 1.5.2 (http://caliburnmicro.codeplex.com) | 435 | 409 | 1132 | 4488 |
Catel 3.8.1 (http://www.catelproject.com) | 787 | 7488 | 18610 | 48585 |
DryIoc 1.1.1 (https://bitbucket.org/dadhi/dryioc) | 46 | 54 | 72 | 92 |
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 2.0.0 (http://grace.codeplex.com) | 352 | 300 | 552 | 1438 |
Griffin 1.1.0 (https://github.com/jgauffin/griffin.container) | 207 | 262 | 552 | 1475 |
HaveBox 1.6.1 (https://bitbucket.org/Have/havebox) | 102 | 99 | 113 | 158 |
Hiro 1.0.3 (https://github.com/philiplaureano/Hiro) | 130 | 123 | 183 | 191 |
IfInjector 0.8.1 (https://github.com/iamahern/IfInjector) | 109 | 127 | 135 | 176 |
LightCore 1.5.1 (http://www.lightcore.ch) | 451 | 2871 | 19797 | 102595 |
LightInject 3.0.1.2 (https://github.com/seesharper/LightInject) | 115 | 97 | 117 | 141 |
LinFu 2.3.0.41559 (https://github.com/philiplaureano/LinFu) | 6384 | 28237 | 70343 | 189899 |
Maestro 1.3.1 (https://github.com/JonasSamuelsson/Maestro) | 532 | 456 | 1249 | 3542 |
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.4.1 (http://simpleinjector.codeplex.com) | 86 | 92 | 104 | 132 |
Spring.NET 1.3.2 (http://www.springframework.net/) | 1936 | 16471 | 40787 | 104762 |
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 |