Registration 500 ResolveHalf
This benchmark tests registering 500 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 | 5983953.2 | 5984152.2 | 5986569.9 | 0 | 1736.551 | 464.113 | 285 | 0 | 2034016 |
DryIoc | Clr | 17149227.0 | 17151068.6 | 17159708.5 | 0 | 8955.269 | 2312.240 | 60 | 0 | 1281665 |
Grace | Clr | 20240710.6 | 20244298.4 | 20270726.5 | 0 | 17099.503 | 4570.034 | 60 | 15 | 1660870 |
LightInject | Clr | 19853152.7 | 19844498.3 | 19933834.1 | 0 | 35441.708 | 9151.010 | 120 | 15 | 3156171 |
Microsoft Dependency Injection | Clr | 631134.2 | 631152.8 | 631818.4 | 0 | 545.517 | 140.852 | 331 | 0 | 338122 |
NInject | Clr | 37548185.4 | 37584765.5 | 37735823.3 | 0 | 146260.218 | 37764.226 | 45 | 0 | 6748457 |
Simple Injector | Clr | 35698051.3 | 35718145.9 | 35770832.6 | 0 | 54152.645 | 13982.153 | 30 | 0 | 4267516 |
StructureMap | Clr | 475930797.6 | 476004245.1 | 476370200.2 | 2 | 339073.203 | 90621.125 | 420 | 210 | 24231198 |
Autofac | Core | 6791579.8 | 6791164.8 | 6794376.5 | 0 | 1720.585 | 444.253 | 240 | 0 | 1969629 |
DryIoc | Core | 21643314.1 | 21641521.5 | 21667544.8 | 0 | 10140.720 | 2618.323 | 60 | 15 | 2073997 |
Grace | Core | 19598275.7 | 19594985.4 | 19629479.3 | 0 | 20229.994 | 5223.362 | 60 | 15 | 1569981 |
LightInject | Core | 19197151.0 | 19268183.0 | 19327815.5 | 0 | 115206.523 | 29746.196 | 90 | 15 | 2507160 |
Microsoft Dependency Injection | Core | 918442.5 | 918367.3 | 919390.2 | 0 | 570.270 | 147.243 | 0 | 0 | 327063 |
NInject | Core | 28754215.6 | 28702053.8 | 29045562.0 | 0 | 153854.685 | 42671.612 | 83 | 8 | 6395715 |
Simple Injector | Core | 33088585.3 | 33088895.2 | 33113892.7 | 0 | 17129.131 | 4422.723 | 30 | 0 | 4220104 |
StructureMap | Core | 430217865.5 | 430064064.6 | 431013667.2 | 0 | 324427.027 | 83766.698 | 270 | 135 | 21519349 |
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