Registration 10 ResolveNone
This benchmark tests registering 10 then ResolveNone 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 | 46985.5 | 46971.9 | 47126.0 | 0 | 70.859 | 18.296 | 0 | 0 | 38209 |
DryIoc | Clr | 7040.3 | 7040.0 | 7042.3 | 0 | 0.983 | 0.263 | 0 | 0 | 9448 |
Grace | Clr | 20185.9 | 20189.5 | 20202.0 | 0 | 9.441 | 2.438 | 0 | 0 | 20048 |
LightInject | Clr | 19878.8 | 19879.3 | 19887.8 | 0 | 5.655 | 1.568 | 0 | 0 | 39665 |
Microsoft Dependency Injection | Clr | 2563.4 | 2563.3 | 2564.4 | 0 | 0.447 | 0.124 | 0 | 0 | 4656 |
NInject | Clr | 276958.3 | 276721.4 | 277861.2 | 0 | 478.919 | 127.996 | 255 | 0 | 70440 |
Simple Injector | Clr | 129812.9 | 129832.2 | 129949.5 | 0 | 97.185 | 25.974 | 0 | 0 | 53241 |
StructureMap | Clr | 438965.1 | 438942.5 | 439313.4 | 0 | 199.078 | 51.402 | 15 | 0 | 207813 |
Autofac | Core | 65176.5 | 65169.6 | 65286.4 | 0 | 55.521 | 14.839 | 0 | 0 | 37048 |
DryIoc | Core | 9613.3 | 9616.3 | 9669.2 | 0 | 25.717 | 6.640 | 0 | 0 | 10024 |
Grace | Core | 20590.8 | 20587.9 | 20615.7 | 0 | 11.999 | 3.207 | 0 | 0 | 19984 |
LightInject | Core | 18005.8 | 18005.8 | 18019.5 | 0 | 6.625 | 1.770 | 0 | 0 | 23792 |
Microsoft Dependency Injection | Core | 2740.5 | 2740.6 | 2741.4 | 0 | 0.658 | 0.170 | 0 | 0 | 4192 |
NInject | Core | 152988.3 | 152907.2 | 153536.6 | 0 | 295.398 | 78.948 | 376 | 0 | 49717 |
Simple Injector | Core | 118436.7 | 118248.5 | 119633.8 | 0 | 583.686 | 155.997 | 15 | 0 | 37835 |
StructureMap | Core | 439356.4 | 439368.2 | 439552.2 | 0 | 134.764 | 34.796 | 15 | 0 | 156755 |
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