Registration 10 ResolveOne
This benchmark tests registering 10 then ResolveOne from the container 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 |
---|---|---|---|---|---|---|---|---|---|---|
Autofac | Clr | 51315.3 | 51303.9 | 51394.2 | 0 | 39.371 | 10.166 | 0 | 0 | 40498 |
DryIoc | Clr | 72817.4 | 72818.8 | 72884.1 | 0 | 35.242 | 9.099 | 165 | 0 | 11825 |
Grace | Clr | 100147.6 | 100139.1 | 100307.1 | 1 | 74.589 | 20.687 | 15 | 0 | 23800 |
LightInject | Clr | 93073.1 | 93079.7 | 93264.5 | 0 | 111.011 | 29.669 | 15 | 0 | 45107 |
Microsoft Dependency Injection | Clr | 3624.7 | 3624.0 | 3630.0 | 0 | 2.739 | 0.707 | 0 | 0 | 5256 |
NInject | Clr | 411066.3 | 410624.2 | 413919.7 | 1 | 998.149 | 276.837 | 270 | 0 | 76229 |
Simple Injector | Clr | 285835.0 | 285815.0 | 286124.2 | 0 | 117.742 | 30.401 | 0 | 0 | 77778 |
StructureMap | Clr | 2133976.7 | 2134056.6 | 2135406.0 | 0 | 780.454 | 201.512 | 76 | 0 | 253152 |
Autofac | Core | 74581.7 | 74606.4 | 74649.3 | 0 | 51.218 | 13.224 | 0 | 0 | 39241 |
DryIoc | Core | 94491.2 | 94494.4 | 94583.9 | 0 | 43.442 | 11.610 | 180 | 0 | 15565 |
Grace | Core | 101209.9 | 101210.0 | 101342.4 | 0 | 66.313 | 17.122 | 15 | 0 | 23360 |
LightInject | Core | 92274.8 | 92264.3 | 92372.2 | 0 | 46.956 | 12.124 | 15 | 0 | 28248 |
Microsoft Dependency Injection | Core | 4492.3 | 4491.3 | 4501.4 | 0 | 5.088 | 1.314 | 0 | 0 | 4784 |
NInject | Core | 255005.8 | 254906.3 | 255704.8 | 0 | 434.908 | 112.293 | 195 | 0 | 54982 |
Simple Injector | Core | 225958.3 | 226000.2 | 226088.5 | 0 | 122.123 | 32.639 | 15 | 0 | 44817 |
StructureMap | Core | 1994207.7 | 1994265.7 | 1994952.1 | 0 | 481.836 | 128.776 | 15 | 0 | 199639 |
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