Lookup 50

This benchmark is designed to test the lookup performance of each container. One small object is resolved from the container along with 50 dummy registrations that are located at warmup time. 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
AutofacClr1474.61474.61475.220.3000.080001808
Castle WindsorClr6119.56120.26133.7010.1442.619001856
DryIocClr26.126.126.100.0030.0010056
GraceClr21.421.421.400.0020.0010056
LightInjectClr24.424.424.400.0010.0000056
Microsoft Dependency InjectionClr133.2133.2133.300.0150.0040056
NInjectClr11748.411777.712645.00400.67264.99833005890
Simple InjectorClr54.354.354.300.0040.0010056
StructureMapClr1707.71707.71710.301.2950.334001984
AutofacCore1730.41730.41730.700.2610.067001808
Castle WindsorCore9842.79839.59883.4017.3394.477002696
DryIocCore26.026.026.000.0010.0000056
GraceCore21.521.521.500.0020.0000056
LightInjectCore24.724.724.700.0030.0010056
Microsoft Dependency InjectionCore115.6115.6115.600.0080.0020056
NInjectCore15595.515592.815875.10199.89457.70431505722
Simple InjectorCore41.241.241.200.0010.0000056
StructureMapCore1917.01917.01917.200.1640.044001984
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