danielpalme / IocPerformance

Performance comparison of .NET IoC containers
https://danielpalme.github.io/IocPerformance
Apache License 2.0
876 stars 157 forks source link

Update #91

Closed ENikS closed 6 years ago

ENikS commented 6 years ago

Running it in debug I got this:

No                                           Single      Multi
 Singleton                                       86        124
 Transient                                      107        124
 Combined                                       155        167
 Complex                                        255        198
 Property                                       206        174
 Generics                                       126        135
 IEnumerable                                    518        352
 Conditional                                    138        130
 Child Container                                668        418
 Asp Net Core
 Interception With Proxy                        105        101
 Prepare And Register                             3
 Prepare And Register And Simple Resolve          3

Unity 5.5.8                                  Single      Multi
 Singleton                                      795        537
 Transient                                     1585        925
 Combined                                      4464       2538
 Complex                                      13134       7506
 Property                                     13124       7434
 Generics                                     10193       5413
 IEnumerable                                  30443      15679
 Conditional                                   3568       1996
 Child Container                              31412      17059
 Asp Net Core
 Interception With Proxy
 Prepare And Register                           146
 Prepare And Register And Simple Resolve        960
ENikS commented 6 years ago

@danielpalme Why such a big discrepancy: I have much higher No numbers but my Unity measurements are still lower than what you show in your results?

run Singleton Transient Combined Complex
No 86 107 155 255
No 61 68 83 90
Unity 795 1,585 4,464 13,134
Unity 1,086 2,084 5,666 16,360
danielpalme commented 6 years ago

@ENikS No idea. I used the same machine as always.