FrameworkBenchmarks icon indicating copy to clipboard operation
FrameworkBenchmarks copied to clipboard

PHP - Symfony - replace RoadRunner bridge

Open roxblnfk opened this issue 4 months ago • 12 comments

Image

It seems that the benchmarks for Symfony + RoadRunner use an unpopular bridge, which slows down the interop between RoadRunner and Symfony. I think it would be better to replace it with the more popular baldinof/roadrunner-bundle or another one that does not do unnecessary conversions and reflection calls on each request.

roxblnfk avatar Aug 04 '25 03:08 roxblnfk

Yes, I see terrible results with RoadRunner. And still only work with PHP 8.3. Please you know it better, try to update it with a PR.

Thank you.

PD: with Laravel is still worst !!

UPDATE: it's failing in the last runs with Symfony and Laravel.

joanhey avatar Aug 06 '25 16:08 joanhey

I'll try to use Laravel Octane with RoadRunner, so It'll be always updated.

joanhey avatar Aug 06 '25 17:08 joanhey

I updated Symfony RoadRunner to PHP 8.4 and rr 2025.1. The last time was failing. #10037

So later we can test it with another PHP Runtime.

joanhey avatar Aug 07 '25 07:08 joanhey

We have ready Laravel Octane with RoadRunner, but first we need to add the server header. #10053

joanhey avatar Aug 07 '25 20:08 joanhey

After the changes, still perform poorly:

Image Image

Try to add a PR, or help me to add any change.

joanhey avatar Aug 29 '25 09:08 joanhey

Looks like after 128 concurrent users don't scale more:

Image

joanhey avatar Aug 29 '25 09:08 joanhey

We can try adjusting the settings for the number of workers. If the hardware is known, we can set the number of workers to CPUs*2 or configure autoscaling (if it's not prohibited by the rules).

roxblnfk avatar Aug 29 '25 10:08 roxblnfk

Also with Laravel has a very poor performance:

Image Image Image

https://www.techempower.com/benchmarks/#section=test&runid=e8b36ecc-d623-48bb-936d-d043e9db2c13&test=fortune&f=zik0zj-zik0zj-zik0zj-zik0zj-zik0zj-zik0zj-z8kflr-zik0zj-zik0zj-zik0zj-zik0zj-zik0zj-zik0zj-zik0zj-zik0zj-4fti4f

joanhey avatar Aug 30 '25 09:08 joanhey

Also with Laravel has a very poor performance:

~~laravel roadrunner package (Spiral\RoadRunnerLaravel) is no longer maintain.~~

https://packagist.org/packages/spiral/roadrunner-laravel

Image

kitrio avatar Aug 31 '25 03:08 kitrio

We are not using this package @kitrio. We use the Octane install:

RUN composer require laravel/octane --update-no-dev --no-scripts --quiet
RUN php artisan octane:install --server="roadrunner"

joanhey avatar Aug 31 '25 06:08 joanhey

laravel roadrunner package (Spiral\RoadRunnerLaravel) is no longer maintain.

Thank you for letting me know. Fixed.

roxblnfk avatar Sep 01 '25 07:09 roxblnfk

I sent the bench in X: https://x.com/adaptermanphp/status/1966055619103715680 If we find a better way to improve RoadRunner, I'm open but the rest of users need to know how to make it faster also.

joanhey avatar Sep 11 '25 17:09 joanhey