Performance is up to the developer to avoid inefficient use of resources such as the processor, memory, graphics, network, and device battery. But dependency is a design template based on the Inversion of Control concept, which states that a class must receive its dependencies from the outside. In simple words, no class should create an instance of another class, but should receive instances from the configuration class, and not create them inside. Thus, this template allows developers to write low-link code, which therefore can be easily tested and saved.
But to compare the performance of dependency injection libraries, see this good link: http://blog.nimbledroid.com/2016/03/07/performance-of-dependency-injection-libraries.html
source share