8000 Performance regression of Symfony DI since v5.0.2 · Issue #37401 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Performance regression of Symfony DI since v5.0.2 #37401
Closed
@kocsismate

Description

@kocsismate

Symfony version affected: 5.1.2

Description

I noticed that there is a huge performance regression of Symfony DI since 5.0.2 according to my benchmarks (https://github.com/kocsismate/php-di-container-benchmarks). The last time I generated the results, Symfony was the clear winner in most of the tests, but now, half a year later, Symfony's performance decreased dramatically, while the results of the other contenders didn't change significantly.

The difference can be observed by looking at the last two benchmark reports:

How to reproduce

You can run the test suite, following the steps detailed in the project's readme.

Possible Solution

Container as well as infrastructure configuration didn't change much since the two benchmark runs, so I would search for the source of issue somewhere else. After a quick look of the generated containers, I noticed that include_once invocations changed place in the meanwhile, and now they are always performed when a service is retrieved. Maybe this can be blamed for the regression?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0