Lookup 2000

This benchmark is designed to test the lookup performance of each container. One small object is resolved from the container along with 2000 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
AutofacClr1533.41533.41534.100.2790.072001808
Castle WindsorClr6014.86012.86043.2011.0202.845001856
DryIocClr32.932.932.920.0050.0010056
GraceClr26.126.126.100.0030.0010056
LightInjectClr24.424.424.400.0050.0010056
Microsoft Dependency InjectionClr133.5133.5133.500.0060.0010056
NInjectClr11583.611570.112395.90406.07564.20692405812
Simple InjectorClr53.353.353.400.0490.0130056
StructureMapClr1680.81680.71681.200.2180.058001984
AutofacCore1725.61725.61726.000.1820.049001808
Castle WindsorCore10564.410563.410585.2110.7303.097002696
DryIocCore34.234.234.300.0360.0100056
GraceCore29.729.729.700.0020.0010056
LightInjectCore25.525.425.500.0300.0080056
Microsoft Dependency InjectionCore128.0128.4132.002.4810.6200056
NInjectCore14903.914883.815317.20262.44567.76315005775
Simple InjectorCore44.044.044.000.0050.0010056
StructureMapCore2075.72075.52076.600.4950.132001984
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