Registration 100 ResolveOne
This benchmark tests registering 100 then ResolveOne 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 | 453511.0 | 453516.5 | 453985.8 | 0 | 292.210 | 75.448 | 75 | 0 | 303329 |
DryIoc | Clr | 156157.2 | 156187.4 | 156282.4 | 0 | 103.306 | 26.674 | 0 | 0 | 115608 |
Grace | Clr | 210662.0 | 210623.6 | 210968.4 | 0 | 141.553 | 36.549 | 15 | 0 | 134789 |
LightInject | Clr | 258421.9 | 258582.8 | 259520.3 | 0 | 671.979 | 173.504 | 561 | 0 | 304577 |
Microsoft Dependency Injection | Clr | 20569.1 | 20567.6 | 20581.0 | 0 | 5.878 | 1.518 | 0 | 0 | 30005 |
NInject | Clr | 1059901.5 | 1060164.2 | 1061285.4 | 0 | 1269.625 | 327.816 | 435 | 0 | 477970 |
Simple Injector | Clr | 1155860.8 | 1153140.5 | 1166901.0 | 0 | 5340.505 | 1378.912 | 195 | 0 | 322411 |
StructureMap | Clr | 6268562.3 | 6268318.7 | 6276172.8 | 0 | 3356.468 | 866.636 | 165 | 0 | 2091575 |
Autofac | Core | 607510.1 | 607570.4 | 607888.3 | 0 | 257.904 | 71.530 | 270 | 0 | 294865 |
DryIoc | Core | 195661.4 | 195588.4 | 196130.4 | 0 | 262.570 | 70.175 | 0 | 0 | 116714 |
Grace | Core | 217254.7 | 217246.9 | 217337.2 | 0 | 49.819 | 14.381 | 15 | 0 | 135264 |
LightInject | Core | 268928.8 | 268927.7 | 269099.9 | 4 | 85.122 | 22.750 | 45 | 0 | 219248 |
Microsoft Dependency Injection | Core | 21975.7 | 21977.6 | 21995.6 | 0 | 9.836 | 2.540 | 0 | 0 | 29531 |
NInject | Core | 823109.4 | 821608.0 | 830609.4 | 0 | 4684.768 | 1209.602 | 750 | 0 | 415889 |
Simple Injector | Core | 1309311.8 | 1309011.9 | 1311650.1 | 0 | 959.699 | 256.490 | 75 | 0 | 295279 |
StructureMap | Core | 5966243.5 | 5966319.8 | 5967899.8 | 0 | 1120.123 | 323.352 | 255 | 0 | 1620308 |
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