New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add performance advanced solutions #17428
Comments
Added Frankenphp to the bench. Now only in normal mode with plain php. |
Added Symfony Swoole using phpruntime |
@joanhey thank you. Good to see viable solutions that improves performances of high quality PHP Frameworks. |
Added Symfony with Frankenphp in Worker mode using phpruntime |
@joanhey thanks for working on this 🙏 Just out of curiosity, how are the numbers that you see when running these benchmarks on your local machine? How much faster is the app when running via FrankenPHP? Thanks. |
Hola Javier Normally I don't bench locally because it's unrealistic, but we get some numbers in the test verification. Symfony Fortunes test |
|
The symfony results are ready: So we'll show the json and single query: The link to visualize the results: |
This benchmark is the most fair, as all the runtimes use the same framework and code. |
Folks, we're closing this as "won't fix". The reason is the same as explained here: #18432 (comment) We prefer to keep this article focused on the changes/tweaks you can do in your Symfony app and in some very specific PHP ini settings to improve performance. Using servers that provide async features is important for some apps, but those projects will need to document how to integrate them with Symfony apps. Thanks for understanding! |
As we can see more and more solution trying to run Symfony with async event driven or other modern servers (swoole, openswoole, amp, workerman, frankenphp), it would be interesting to provide tips or links to the different solutions. It could be added in a specific section of the https://symfony.com/doc/current/performance.html page.
Frankenphp and Workerman support with AdapterMan seems particularly interesting (see last benchmark here). It use the exact same code.
Maybe it would make sense to increase the popularity of these solutions, by providing advises (pro/cons).
References
https://frankenphp.dev/
https://github.com/joanhey/AdapterMan
https://github.com/walkor/workerman
https://openswoole.com/
https://github.com/swoole/swoole-src
The text was updated successfully, but these errors were encountered: