SmallObject
Resolves a small object graph from each container The code can be found here.
Container | Env | Mean (ns) | Median (ns) | Max (ns) | Outliers | Std Dev (ns) | Std Err (ns) | Gen 1 | Gen 2 | Bytes Alloc |
---|---|---|---|---|---|---|---|---|---|---|
Autofac | Clr | 1434.8 | 1434.8 | 1435.5 | 0 | 0.317 | 0.082 | 0 | 0 | 1808 |
Castle Windsor | Clr | 6648.0 | 6648.5 | 6673.7 | 0 | 11.274 | 3.127 | 0 | 0 | 1856 |
DryIoc | Clr | 26.5 | 26.5 | 26.5 | 0 | 0.002 | 0.001 | 0 | 0 | 56 |
Grace | Clr | 21.5 | 21.5 | 21.5 | 0 | 0.003 | 0.001 | 0 | 0 | 56 |
LightInject | Clr | 25.5 | 25.5 | 25.5 | 0 | 0.001 | 0.000 | 0 | 0 | 56 |
Microsoft Dependency Injection | Clr | 140.3 | 140.3 | 140.3 | 0 | 0.008 | 0.002 | 0 | 0 | 56 |
NInject | Clr | 11315.9 | 11365.7 | 12143.7 | 0 | 429.555 | 64.034 | 1034 | 0 | 5807 |
Simple Injector | Clr | 56.4 | 56.4 | 56.4 | 0 | 0.003 | 0.001 | 0 | 0 | 56 |
StructureMap | Clr | 1801.0 | 1795.0 | 1813.8 | 0 | 8.367 | 2.160 | 0 | 0 | 1984 |
Autofac | Core | 1935.7 | 1935.5 | 1937.9 | 0 | 1.073 | 0.277 | 0 | 0 | 1808 |
Castle Windsor | Core | 9888.7 | 9887.8 | 9912.3 | 0 | 17.256 | 4.455 | 0 | 0 | 2696 |
DryIoc | Core | 29.0 | 29.0 | 29.1 | 0 | 0.029 | 0.008 | 0 | 0 | 56 |
Grace | Core | 21.9 | 21.9 | 21.9 | 0 | 0.003 | 0.001 | 0 | 0 | 56 |
LightInject | Core | 25.7 | 25.7 | 25.7 | 0 | 0.008 | 0.002 | 0 | 0 | 56 |
Microsoft Dependency Injection | Core | 117.8 | 117.8 | 117.8 | 0 | 0.003 | 0.001 | 0 | 0 | 56 |
NInject | Core | 14830.9 | 14847.1 | 15153.8 | 0 | 234.543 | 65.050 | 315 | 0 | 5722 |
Simple Injector | Core | 39.6 | 39.6 | 39.6 | 0 | 0.003 | 0.001 | 0 | 0 | 56 |
StructureMap | Core | 2093.7 | 2093.8 | 2094.1 | 0 | 0.333 | 0.086 | 0 | 0 | 1984 |
Details
BenchmarkDotNet=v0.10.8, OS=Windows 10 Redstone 2 (10.0.15063)
Processor=Intel Core i7-3770 CPU 3.40GHz (Ivy Bridge), ProcessorCount=4
Frequency=3320336 Hz, Resolution=301.1743 ns, Timer=TSC
[Host] : Clr 4.0.30319.42000, 64bit RyuJIT-v4.7.2101.1
Clr : Clr 4.0.30319.42000, 64bit RyuJIT-v4.7.2101.1
Core : .NET Core 4.6.25211.01, 64bit RyuJIT