In 2014, a really interesting benchmark about DI Containers for PHP was published on Sitepoint. Unfortunately, the implementation of the tests turned out to be quite controversial, so the benchmark itself wasn't really useful.
I have been interested in the topic since then so I wanted to conduct a better benchmark than the last one was: I tried to fix some of its flaws while keeping the good parts.
You can find the benchmark results here.
You can simply download this repository or install it via Composer by running the command below:
$ composer require kocsismate/di-container-benchmarks:dev-master
Furthermore, Docker Compose has to be installed on your machine.
Run docker-compose up
in order to execute the tests. The html output will be generated in the "var" directory.
The same output can be seen here.
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see the License File for more information.