Skip to content

fedemkr/IocPerformance

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ioc Performance

Source code of my performance comparison of the most popular .NET IoC containers:
www.palmmedia.de/Blog/2011/8/30/ioc-container-benchmark-performance-comparison

Author: Daniel Palme
Blog: www.palmmedia.de
Twitter: @danielpalme

Results

Explantions

First value: Time of single-threaded execution in [ms]
Second value: Time of multi-threaded execution in [ms]
*: Benchmark was stopped after 1 minute and result is extrapolated.

Basic Features

Container Singleton Transient Combined Complex
No 78
119
95
119
139
147
211
159
MvvmCross 5.1.1 318
371
1088
1170
3065
3152
8354
8584
Ninject 3.2.2.0 4603
2829
16562
11829
43867
27879
125045*
77335*
Autofac 4.6.1 732
544
725
515
2022
1358
6379
4396
Catel 5.0.0 292
357
3774
3937
8577
8754
19296
19376
DryIoc 2.11.6 44
69
65
99
103
110
167
140
LightInject 5.0.3 54
88
63
106
102
112
173
147
SimpleInjector 4.0.8 87
86
129
123
165
182
270
189

Advanced Features

Container Property Generics IEnumerable Conditional Child Container Asp Net Core Interception With Proxy
No 191
155
123
139
412
268
127
134
726
497

92
174
MvvmCross 5.1.1






Ninject 3.2.2.0 112310*
68850*
45954
25917
102237*
62166*
31843
19002
125354000*
113662878*

434366*
28779214*
Autofac 4.6.1 6448
4357
2007
1269
7491
4141
1512
1034
53977
29022
13743
8586
23132
11853
Catel 5.0.0
8587
8725




3840
3953
DryIoc 2.11.6 161
180
98
108
350
310
106
111


366750*
10954810*
LightInject 5.0.3 166
142
93
125
337
239
381
245

2194
1413
450507*
12174371*
SimpleInjector 4.0.8 296
231
153
155
878
509
165
187


384554*
30945876*

Prepare

Container Prepare And Register Prepare And Register And Simple Resolve
No 3
3
MvvmCross 5.1.1 7
10
Ninject 3.2.2.0 228678*
229920*
Autofac 4.6.1 295
317
Catel 5.0.0 24344
26201
DryIoc 2.11.6 72
290
LightInject 5.0.3 139
893
SimpleInjector 4.0.8 621
2017

Charts

Basic features Advanced features Prepare

Machine

The benchmark was executed on the following machine:
CPU: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
Memory: 15.93GB

About

Performance comparison of .NET IoC containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%