Registration 10 ResolveAll
This benchmark tests registering 10 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 | 80640.3 | 80630.2 | 80707.9 | 0 | 34.986 | 9.033 | 0 | 0 | 61095 |
DryIoc | Clr | 671754.9 | 672641.9 | 674796.3 | 0 | 2689.030 | 694.305 | 60 | 0 | 33001 |
Grace | Clr | 792175.2 | 791919.2 | 794377.0 | 2 | 917.608 | 245.241 | 105 | 0 | 57505 |
LightInject | Clr | 741055.2 | 740823.2 | 742570.5 | 0 | 824.932 | 220.472 | 150 | 0 | 89186 |
Microsoft Dependency Injection | Clr | 11898.1 | 11896.6 | 11917.1 | 0 | 7.248 | 1.871 | 0 | 0 | 12573 |
NInject | Clr | 1479582.1 | 1479264.7 | 1483862.3 | 0 | 1763.048 | 455.217 | 105 | 0 | 126228 |
Simple Injector | Clr | 1310225.4 | 1310226.5 | 1310985.9 | 0 | 343.581 | 88.712 | 120 | 0 | 145290 |
StructureMap | Clr | 17275229.6 | 17275237.7 | 17288047.1 | 0 | 7236.536 | 1868.466 | 30 | 0 | 656387 |
Autofac | Core | 102831.3 | 102835.2 | 102878.7 | 0 | 29.828 | 7.702 | 0 | 0 | 58973 |
DryIoc | Core | 872177.2 | 872058.2 | 872739.4 | 0 | 274.462 | 70.866 | 120 | 0 | 65534 |
Grace | Core | 801376.8 | 801302.9 | 802413.7 | 0 | 668.043 | 178.542 | 90 | 0 | 53877 |
LightInject | Core | 748808.0 | 748820.1 | 749432.8 | 0 | 336.262 | 93.262 | 120 | 0 | 66134 |
Microsoft Dependency Injection | Core | 16749.0 | 16749.0 | 16762.1 | 1 | 6.321 | 1.825 | 0 | 0 | 10124 |
NInject | Core | 1060950.3 | 1061144.2 | 1064231.3 | 0 | 1923.306 | 496.596 | 90 | 0 | 101527 |
Simple Injector | Core | 1087234.5 | 1086799.3 | 1090292.8 | 0 | 1382.590 | 399.119 | 90 | 0 | 108761 |
StructureMap | Core | 15851588.5 | 15849948.4 | 15862258.9 | 0 | 5596.553 | 1445.024 | 30 | 0 | 585095 |
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