Singleton
Resolves a Singleton services 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 | 365.5 | 365.5 | 365.5 | 0 | 0.029 | 0.008 | 0 | 0 | 640 |
Castle Windsor | Clr | 273.6 | 273.6 | 273.7 | 0 | 0.027 | 0.007 | 0 | 0 | 352 |
DryIoc | Clr | 18.3 | 18.3 | 18.3 | 0 | 0.001 | 0.000 | 0 | 0 | 0 |
Grace | Clr | 12.1 | 12.1 | 12.1 | 0 | 0.000 | 0.000 | 0 | 0 | 0 |
LightInject | Clr | 15.3 | 15.3 | 15.3 | 0 | 0.004 | 0.001 | 0 | 0 | 0 |
Microsoft Dependency Injection | Clr | 100.5 | 100.5 | 100.5 | 0 | 0.014 | 0.004 | 0 | 0 | 0 |
NInject | Clr | 735.6 | 734.9 | 739.7 | 0 | 2.241 | 0.579 | 0 | 0 | 1000 |
Simple Injector | Clr | 28.9 | 28.9 | 28.9 | 0 | 0.002 | 0.001 | 0 | 0 | 0 |
StructureMap | Clr | 553.9 | 554.5 | 564.2 | 0 | 7.707 | 1.990 | 0 | 0 | 1120 |
Autofac | Core | 525.1 | 525.1 | 525.4 | 1 | 0.107 | 0.030 | 0 | 0 | 640 |
Castle Windsor | Core | 312.2 | 312.2 | 312.5 | 1 | 0.103 | 0.028 | 0 | 0 | 344 |
DryIoc | Core | 16.2 | 16.2 | 16.2 | 0 | 0.001 | 0.000 | 0 | 0 | 0 |
Grace | Core | 12.4 | 12.4 | 12.4 | 0 | 0.001 | 0.000 | 0 | 0 | 0 |
LightInject | Core | 14.8 | 14.8 | 14.8 | 0 | 0.002 | 0.000 | 0 | 0 | 0 |
Microsoft Dependency Injection | Core | 100.7 | 100.7 | 100.7 | 0 | 0.030 | 0.008 | 0 | 0 | 0 |
NInject | Core | 1130.8 | 1131.3 | 1136.3 | 0 | 2.962 | 0.792 | 0 | 0 | 976 |
Simple Injector | Core | 29.8 | 29.8 | 29.8 | 1 | 0.001 | 0.000 | 0 | 0 | 0 |
StructureMap | Core | 622.5 | 622.5 | 622.7 | 0 | 0.099 | 0.026 | 0 | 0 | 1120 |
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