IReadOnlyList
This benchmark registers 5 small objects then resolves them as an IReadOnlyList(T). 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 | 16286.4 | 16288.7 | 16301.7 | 0 | 12.297 | 3.286 | 0 | 0 | 10616 |
DryIoc | Clr | 294.1 | 294.1 | 294.2 | 0 | 0.020 | 0.005 | 0 | 0 | 464 |
Grace | Clr | 452.5 | 452.4 | 452.6 | 2 | 0.064 | 0.018 | 0 | 0 | 600 |
LightInject | Clr | 470.1 | 470.1 | 470.4 | 1 | 0.110 | 0.030 | 0 | 0 | 600 |
Simple Injector | Clr | 161.1 | 161.1 | 161.1 | 2 | 0.018 | 0.005 | 0 | 0 | 0 |
Autofac | Core | 19284.3 | 19282.6 | 19319.0 | 0 | 20.445 | 5.464 | 0 | 0 | 10459 |
DryIoc | Core | 208.9 | 208.9 | 209.0 | 0 | 0.018 | 0.005 | 0 | 0 | 464 |
Grace | Core | 353.8 | 353.8 | 353.8 | 0 | 0.033 | 0.008 | 0 | 0 | 600 |
LightInject | Core | 379.9 | 379.9 | 380.0 | 0 | 0.043 | 0.011 | 0 | 0 | 600 |
Simple Injector | Core | 127.2 | 127.2 | 127.3 | 0 | 0.029 | 0.007 | 0 | 0 | 0 |
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