Registration 500 ResolveOne
This benchmark tests registering 500 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 | 5076022.4 | 5075473.4 | 5079548.6 | 0 | 1926.309 | 497.371 | 210 | 0 | 1464286 |
DryIoc | Clr | 591676.2 | 592339.9 | 594046.9 | 0 | 1828.350 | 472.078 | 15 | 0 | 640204 |
Grace | Clr | 788116.6 | 787911.5 | 792152.2 | 2 | 2051.705 | 548.341 | 599 | 0 | 701406 |
LightInject | Clr | 1418152.4 | 1423344.0 | 1438411.0 | 0 | 17944.137 | 4633.156 | 1020 | 0 | 1677296 |
Microsoft Dependency Injection | Clr | 98121.8 | 98112.0 | 98188.2 | 1 | 27.528 | 7.947 | 0 | 0 | 134920 |
NInject | Clr | 9370822.0 | 9364831.4 | 9461160.2 | 1 | 33612.048 | 9322.305 | 324 | 2 | 5375710 |
Simple Injector | Clr | 5579675.1 | 5587473.6 | 5635710.9 | 0 | 22670.199 | 6058.866 | 241 | 15 | 1452559 |
StructureMap | Clr | 39957957.8 | 39961502.9 | 39995893.2 | 0 | 21886.518 | 5651.075 | 225 | 30 | 13195258 |
Autofac | Core | 5885735.5 | 5885119.5 | 5889032.4 | 0 | 1720.332 | 444.188 | 195 | 0 | 1423720 |
DryIoc | Core | 688856.6 | 688950.0 | 690012.6 | 0 | 671.853 | 179.560 | 0 | 0 | 644358 |
Grace | Core | 820961.8 | 820878.2 | 823786.1 | 1 | 1538.818 | 411.266 | 651 | 0 | 699505 |
LightInject | Core | 1155264.8 | 1155000.1 | 1164017.1 | 2 | 3173.743 | 880.238 | 720 | 0 | 1130385 |
Microsoft Dependency Injection | Core | 100772.1 | 100774.2 | 100795.0 | 0 | 11.490 | 2.967 | 975 | 0 | 134439 |
NInject | Core | 7107432.4 | 7122426.1 | 7281203.8 | 0 | 114972.148 | 29685.681 | 643 | 23 | 5128873 |
Simple Injector | Core | 7132528.1 | 7132982.8 | 7137635.7 | 0 | 3547.442 | 1024.058 | 225 | 15 | 1508788 |
StructureMap | Core | 38518021.0 | 38517847.5 | 38543917.9 | 0 | 16333.089 | 4365.202 | 165 | 60 | 10863811 |
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