Registration 10 ResolveHalf
This benchmark tests registering 10 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 | 62366.3 | 62358.8 | 62410.0 | 0 | 22.304 | 5.759 | 0 | 0 | 49652 |
DryIoc | Clr | 336437.3 | 336480.0 | 336628.3 | 0 | 128.428 | 34.324 | 75 | 0 | 21220 |
Grace | Clr | 407273.6 | 407256.4 | 407519.6 | 0 | 141.360 | 36.499 | 135 | 0 | 38725 |
LightInject | Clr | 379413.5 | 379190.8 | 380788.6 | 0 | 546.389 | 141.077 | 225 | 0 | 63910 |
Microsoft Dependency Injection | Clr | 6743.7 | 6740.9 | 6761.5 | 0 | 9.657 | 2.493 | 0 | 0 | 7659 |
NInject | Clr | 901114.0 | 901229.7 | 904383.3 | 0 | 1907.459 | 509.790 | 165 | 0 | 98261 |
Simple Injector | Clr | 752840.2 | 753479.6 | 754348.4 | 0 | 1045.808 | 270.026 | 135 | 0 | 107618 |
StructureMap | Clr | 8838837.3 | 8838759.3 | 8842241.7 | 0 | 1746.315 | 466.722 | 45 | 0 | 432269 |
Autofac | Core | 87935.4 | 87961.8 | 88034.5 | 0 | 67.478 | 17.423 | 0 | 0 | 48011 |
DryIoc | Core | 439869.3 | 439873.9 | 440115.9 | 0 | 202.656 | 52.326 | 135 | 0 | 37778 |
Grace | Core | 412396.2 | 412427.1 | 412745.3 | 0 | 185.085 | 47.789 | 135 | 0 | 36929 |
LightInject | Core | 384193.6 | 384158.5 | 384590.8 | 0 | 202.848 | 54.213 | 150 | 0 | 44746 |
Microsoft Dependency Injection | Core | 8757.9 | 8755.9 | 8769.7 | 0 | 6.337 | 1.636 | 0 | 0 | 7156 |
NInject | Core | 620265.8 | 619448.4 | 624576.3 | 0 | 2344.096 | 605.243 | 135 | 0 | 75497 |
Simple Injector | Core | 612280.7 | 612146.2 | 613666.4 | 1 | 555.345 | 154.025 | 120 | 0 | 72980 |
StructureMap | Core | 8137959.8 | 8138026.0 | 8141771.9 | 0 | 2273.458 | 630.544 | 30 | 0 | 370959 |
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