Lookup 100

This benchmark is designed to test the lookup performance of each container. One small object is resolved from the container along with 100 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
AutofacClr1453.81453.91454.210.2070.055001808
Castle WindsorClr6229.96229.36257.1118.5604.960001856
DryIocClr26.926.926.900.0020.0000056
GraceClr24.324.324.300.0010.0000056
LightInjectClr25.825.825.800.0030.0010056
Microsoft Dependency InjectionClr134.9134.9134.900.0150.0040056
NInjectClr12860.512877.413222.90205.69754.97533005890
Simple InjectorClr53.953.953.900.0020.0000056
StructureMapClr1839.71839.71840.000.2360.061001984
AutofacCore1835.01835.01835.200.1460.039001808
Castle WindsorCore10054.310059.610087.5015.7874.076002696
DryIocCore28.528.528.600.0030.0010056
GraceCore21.421.421.400.0030.0010056
LightInjectCore26.326.326.300.0050.0010056
Microsoft Dependency InjectionCore117.0117.0117.030.0070.0020056
NInjectCore15356.715385.215655.80193.79455.94348415680
Simple InjectorCore42.942.942.910.0050.0010056
StructureMapCore2099.92099.82100.900.4710.122001984
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