Registration 500 ResolveAll
This benchmark tests registering 500 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 | 6953578.1 | 6953108.6 | 6957021.5 | 0 | 2409.144 | 622.038 | 435 | 0 | 2606166 |
DryIoc | Clr | 33915990.9 | 33915500.2 | 33939867.1 | 0 | 18814.845 | 5028.479 | 45 | 0 | 1955358 |
Grace | Clr | 39563916.4 | 39560923.5 | 39594429.1 | 0 | 22954.038 | 5926.707 | 30 | 0 | 2668723 |
LightInject | Clr | 40746113.5 | 40642612.4 | 41046675.4 | 0 | 186424.108 | 48134.498 | 75 | 30 | 5392476 |
Microsoft Dependency Injection | Clr | 1306455.9 | 1306487.7 | 1308513.0 | 0 | 1033.578 | 276.235 | 375 | 0 | 629733 |
NInject | Clr | 65714235.4 | 65246181.7 | 67045698.3 | 0 | 689632.503 | 178062.347 | 65 | 5 | 8121130 |
Simple Injector | Clr | 68991937.1 | 68980723.4 | 69179329.0 | 0 | 103919.998 | 26832.028 | 60 | 15 | 8919380 |
StructureMap | Clr | 905940917.3 | 905792610.3 | 908247934.1 | 0 | 1467389.551 | 378878.353 | 360 | 164 | 35402140 |
Autofac | Core | 7638437.7 | 7638516.4 | 7643794.0 | 0 | 3461.603 | 893.782 | 375 | 0 | 2517673 |
DryIoc | Core | 42946160.7 | 42945159.1 | 42985055.2 | 3 | 22413.860 | 5990.356 | 45 | 15 | 3542812 |
Grace | Core | 38510739.5 | 38508930.9 | 38558445.8 | 0 | 31124.431 | 8984.849 | 30 | 0 | 2488116 |
LightInject | Core | 37491822.0 | 37497532.3 | 37535263.8 | 0 | 26886.574 | 7185.739 | 45 | 15 | 4583912 |
Microsoft Dependency Injection | Core | 1826290.3 | 1826298.1 | 1828508.7 | 0 | 1378.236 | 355.859 | 75 | 0 | 582331 |
NInject | Core | 49961438.4 | 49965933.4 | 50069800.9 | 0 | 59604.350 | 15389.777 | 60 | 0 | 7683224 |
Simple Injector | Core | 62215618.6 | 62241573.6 | 62409572.4 | 0 | 144316.957 | 37262.478 | 45 | 15 | 8772418 |
StructureMap | Core | 821478117.2 | 821527749.1 | 822274896.8 | 0 | 381199.399 | 101879.825 | 405 | 180 | 32205711 |
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