Registration 500 ResolveNone
This benchmark tests registering 500 then ResolveNone 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 | 5059664.8 | 5059916.4 | 5061759.9 | 0 | 1448.246 | 387.060 | 195 | 0 | 1461961 |
DryIoc | Clr | 464582.1 | 464585.2 | 465270.2 | 0 | 338.215 | 87.327 | 15 | 0 | 638261 |
Grace | Clr | 681009.6 | 680996.8 | 681352.4 | 0 | 269.699 | 69.636 | 120 | 0 | 696324 |
LightInject | Clr | 1291033.6 | 1292505.4 | 1299264.2 | 0 | 7938.246 | 2049.646 | 1035 | 0 | 1669720 |
Microsoft Dependency Injection | Clr | 94676.7 | 94675.3 | 94694.6 | 0 | 10.111 | 2.702 | 975 | 0 | 134298 |
NInject | Clr | 9186963.5 | 9169689.0 | 9282238.8 | 1 | 33732.503 | 9015.391 | 331 | 1 | 5367294 |
Simple Injector | Clr | 5293417.0 | 5293337.0 | 5298181.6 | 0 | 3187.655 | 920.197 | 240 | 15 | 1423785 |
StructureMap | Clr | 37653097.0 | 37650934.8 | 37684478.1 | 0 | 24579.482 | 6346.395 | 225 | 30 | 13146360 |
Autofac | Core | 5925915.0 | 5923612.7 | 5934400.9 | 0 | 4809.740 | 1241.869 | 210 | 0 | 1421521 |
DryIoc | Core | 623701.1 | 623544.4 | 625200.8 | 0 | 633.855 | 163.661 | 0 | 0 | 636790 |
Grace | Core | 737894.7 | 737880.9 | 738266.8 | 0 | 177.332 | 45.787 | 690 | 0 | 696128 |
LightInject | Core | 1105758.3 | 1105860.4 | 1112905.6 | 0 | 5257.236 | 1357.412 | 705 | 0 | 1125928 |
Microsoft Dependency Injection | Core | 96126.0 | 96128.8 | 96143.9 | 0 | 14.205 | 3.796 | 15 | 0 | 133832 |
NInject | Core | 6988224.0 | 6952787.0 | 7196451.2 | 0 | 112503.171 | 29048.194 | 626 | 24 | 5123512 |
Simple Injector | Core | 6763023.5 | 6763378.6 | 6770479.7 | 0 | 4816.155 | 1390.304 | 255 | 15 | 1503737 |
StructureMap | Core | 36589384.6 | 36602274.0 | 36663817.1 | 1 | 47335.918 | 13664.703 | 165 | 45 | 10831146 |
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