Lookup 500

This benchmark is designed to test the lookup performance of each container. One small object is resolved from the container along with 500 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
AutofacClr1558.31558.41559.300.4960.138001808
Castle WindsorClr6245.16245.86261.609.9732.665001856
DryIocClr28.728.728.700.0070.0020056
GraceClr25.825.825.800.0020.0000056
LightInjectClr24.424.424.400.0050.0010056
Microsoft Dependency InjectionClr134.1134.1134.220.0350.0100056
NInjectClr11939.011974.312151.10158.21242.28433005890
Simple InjectorClr53.453.453.500.0060.0020056
StructureMapClr1642.01641.91643.320.5930.158001984
AutofacCore1833.01832.81837.102.2390.578001808
Castle WindsorCore9907.29907.89923.109.8842.642002696
DryIocCore26.326.326.400.0070.0020056
GraceCore26.926.926.900.0100.0030056
LightInjectCore25.025.025.000.0040.0010056
Microsoft Dependency InjectionCore117.9117.9117.900.0030.0010056
NInjectCore16185.616186.316458.00140.88837.65448305680
Simple InjectorCore40.040.040.110.0020.0010056
StructureMapCore2056.52056.42058.210.6330.183001984
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