Ioc Performance
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
Results
Container | Singleton | Transient | Combined | Complex |
---|---|---|---|---|
No | 78 | 88 | 93 | 104 |
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.9.0 (http://www.catelproject.com) | 378 | 3756 | 9759 | 24901 |
DryIoc 1.2.0 (https://bitbucket.org/dadhi/dryioc) | 67 | 66 | 83 | 107 |
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.4 (http://grace.codeplex.com) | 592 | 401 | 571 | 1688 |
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.3 (https://github.com/seesharper/LightInject) | 88 | 65 | 72 | 106 |
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.5 (http://stylemvvm.codeplex.com) | 578 | 543 | 748 | 1445 |
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 |