CreateScopeAndResolve

This benchmark creates a lifetime scope and then resolves a small object from the child scope. 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
AutofacClr2070.62071.22078.803.8961.006002560
Castle WindsorClr9353.09349.19382.4015.1663.916002424
DryIocClr114.9114.9115.000.0190.00500320
GraceClr77.677.677.600.0050.00100184
LightInjectClr278.2278.2278.300.0540.01500328
Microsoft Dependency InjectionClr343.1343.1343.100.0130.00400264
StructureMapClr19076.619066.319181.9051.01913.17392013011
AutofacCore2529.42529.62534.503.4630.894002560
Castle WindsorCore13488.513482.913522.0016.9674.381003496
DryIocCore121.3121.3121.300.0120.00300320
GraceCore88.588.588.500.0110.00300184
LightInjectCore284.9284.9284.900.0410.01100328
Microsoft Dependency InjectionCore324.4324.4324.400.0270.00700264
StructureMapCore21332.121320.421431.6053.85113.90485010283
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