Registration 100 ResolveHalf
This benchmark tests registering 100 then ResolveHalf 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 | 596654.2 | 596754.2 | 597229.5 | 0 | 303.647 | 78.401 | 105 | 0 | 415467 |
DryIoc | Clr | 3440539.3 | 3446519.7 | 3459770.2 | 0 | 16495.174 | 4259.036 | 105 | 15 | 233263 |
Grace | Clr | 3919022.5 | 3917603.3 | 3928400.9 | 2 | 4492.346 | 1245.952 | 60 | 0 | 318598 |
LightInject | Clr | 3788226.2 | 3781259.6 | 3836340.4 | 0 | 22266.781 | 5749.258 | 195 | 30 | 554530 |
Microsoft Dependency Injection | Clr | 118677.0 | 118712.9 | 118898.7 | 0 | 137.729 | 35.561 | 0 | 0 | 68082 |
NInject | Clr | 6568920.0 | 6569550.4 | 6580231.5 | 1 | 5057.846 | 1351.766 | 139 | 0 | 750381 |
Simple Injector | Clr | 6791825.0 | 6796653.2 | 6837695.3 | 0 | 27055.245 | 7230.818 | 150 | 30 | 720692 |
StructureMap | Clr | 90248524.5 | 90244350.8 | 90303700.9 | 0 | 28632.814 | 7392.961 | 75 | 30 | 4284474 |
Autofac | Core | 793111.3 | 792959.0 | 794245.5 | 0 | 508.432 | 131.277 | 0 | 0 | 402298 |
DryIoc | Core | 4453794.2 | 4453562.5 | 4457548.3 | 0 | 1953.377 | 541.769 | 75 | 0 | 391242 |
Grace | Core | 4005782.5 | 4006080.8 | 4009582.0 | 0 | 2251.876 | 581.432 | 60 | 0 | 301598 |
LightInject | Core | 3810637.0 | 3807846.6 | 3823101.8 | 0 | 5593.878 | 1495.027 | 165 | 30 | 435149 |
Microsoft Dependency Injection | Core | 168999.7 | 168954.3 | 169534.5 | 0 | 284.170 | 73.372 | 0 | 0 | 66619 |
NInject | Core | 5154438.2 | 5153213.9 | 5172938.4 | 0 | 7700.860 | 1988.353 | 150 | 0 | 669738 |
Simple Injector | Core | 6161785.2 | 6161074.6 | 6168954.6 | 0 | 3136.654 | 869.951 | 150 | 15 | 674240 |
StructureMap | Core | 82746457.5 | 82745394.6 | 82772726.2 | 0 | 15294.969 | 3949.144 | 60 | 15 | 3720696 |
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