Registration 100 ResolveAll
This benchmark tests registering 100 then ResolveAll 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 | 749594.4 | 749579.5 | 749918.4 | 0 | 165.644 | 44.270 | 15 | 0 | 529900 |
DryIoc | Clr | 6727536.0 | 6729165.0 | 6735383.7 | 0 | 4845.372 | 1251.070 | 75 | 15 | 358151 |
Grace | Clr | 7746165.9 | 7746881.5 | 7749506.2 | 0 | 2817.319 | 752.960 | 105 | 30 | 508618 |
LightInject | Clr | 7364867.8 | 7365880.5 | 7378838.0 | 0 | 7226.074 | 1865.764 | 150 | 44 | 825422 |
Microsoft Dependency Injection | Clr | 221634.6 | 221666.8 | 221931.4 | 0 | 198.246 | 51.187 | 0 | 0 | 101262 |
NInject | Clr | 12098341.5 | 12087059.2 | 12185682.1 | 0 | 37634.309 | 10058.192 | 67 | 0 | 1030493 |
Simple Injector | Clr | 12547877.3 | 12542337.6 | 12584450.2 | 0 | 17554.603 | 4532.579 | 135 | 30 | 1199893 |
StructureMap | Clr | 176032273.2 | 176038771.6 | 176257217.1 | 0 | 119628.044 | 33178.850 | 90 | 45 | 6514826 |
Autofac | Core | 962596.0 | 962686.4 | 963420.8 | 0 | 461.035 | 119.039 | 30 | 0 | 511921 |
DryIoc | Core | 8802666.1 | 8801879.6 | 8821197.1 | 0 | 9095.316 | 2348.401 | 75 | 15 | 676735 |
Grace | Core | 7918322.0 | 7919853.9 | 7925952.7 | 0 | 5265.351 | 1359.508 | 45 | 15 | 474409 |
LightInject | Core | 7460546.0 | 7459915.6 | 7471301.4 | 0 | 7694.061 | 2056.324 | 118 | 28 | 690964 |
Microsoft Dependency Injection | Core | 317057.7 | 317289.4 | 319470.0 | 0 | 1887.378 | 487.319 | 0 | 0 | 105891 |
NInject | Core | 9539486.1 | 9539541.3 | 9550873.0 | 0 | 5017.725 | 1341.043 | 105 | 0 | 930665 |
Simple Injector | Core | 11244188.8 | 11244035.1 | 11247708.0 | 0 | 2367.485 | 683.434 | 105 | 30 | 1132458 |
StructureMap | Core | 160655830.5 | 160654051.0 | 160700469.5 | 0 | 29588.716 | 7639.774 | 60 | 30 | 5858733 |
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