Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

anon34372's avatar

Is Laravel 'faster' than Ruby on Rails?

Hi,

Does anyone have a legit benchmark of the two frameworks lets say for a simple CRUD app? I'm asking because PHP7 seems to run significantly faster than Ruby and makes me wonder if that also means that Laravel is faster than RoR.

It's just curiosity! Both frameworks are the best tools out there that power the web! Love them :D

Press 'F' to pay respects to Taylor.

PS: I'm developing in Rails

0 likes
11 replies
crnkovic's avatar

I remember reading somewhere that PHP 7 outperforms Ruby and Python 3 in some 'speed tests' and Mandelbrot fractal generation. I really love the optimizations they did on PHP 7 and Rasmus briefly talked about even more optimizations coming to 7.3. They will reduce the number of instructions being performed by scanning non-used code first in MUCH MUCH more places than they already do. Basically, if you initialize a variable that's never used, or if you loop N times to do basically no logic relevant to the rest of the scope, no instruction will be executed. Basically, PHP 7 is twice as fast as 5.6. Amazing!

I don't have any real benchmarking evidences, just wanted to be in a conversation! :D

4 likes
jcmargentina's avatar

laravel is not only faster ... also with an stable performance.

this is the most serious benchmark i found out there

https://www.techempower.com/benchmarks/#section=data-r16&hw=ph&test=fortune

please do not confuse yourself. you will see some ruby at the top of laravel .... but its because they are using other frames in ruby.

also .... php is over ruby in the general view.

RoR does not even appear in the ranking due to the low performance.

3 likes
jcmargentina's avatar

ok 2 things

  1. Comparing RoR vs Laravel, should be a comparison of features, or learning curve , something like that.

Because, every framework is designed with some gold in mind. That is why the metric should not be performance ... at least not the only one.

  1. RoR relies on Ruby and Laravel on PHP, Ruby vs PHP sounds like a more reasonable performance comparison... in that case you can find that PHP7 has a better performance than RUBY.

For example, check this out:

https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/php-yarv.html

At least this is my opinion, hope it helps

1 like
vladi160's avatar

@JCMARGENTINA - From that list, I see Rails is on 261 place. On 262 is Unicorn server again with the same Rails framework. Laravel is on 269 place. Where you read that Rails is slower than Laravel ?

vladi160's avatar

Actually Rails is faster than Laravel, but Ruby is slower than PHP, and this doesn't matter, because they are both slow compared to NodeJS, for the example.

bappy10's avatar

Rails and Laravel both are good framework. But when you select a web framework for your project, you need to consider many other things, you need to think about full development life cycle, learning curve, deployment system, ci cd, etc.

Suppose, If I need to develop a multi tenant web application, I will do it with Rails. Because, I can easily do it with constraints in Rails routes. (I see that, Laravel routes also has constraints.)

Sometime I work in PHP frameworks, but I always come back to Rails. I find Rails takes less development time, may be, because Rails is my personal preference.

martinbean's avatar

I find Rails takes less development time, may be, because Rails is my personal preference.

@bappy10 Thanks for bumping a year-old thread just to say you’re faster with something you have more experience with…

Snapey's avatar

This thread just needs nuking. It can't contribute anything of value

mathilde's avatar

Ruby on Rails offers lots of libraries. They come with simple and well-written documentation. These ‘gems’ help to speed up the development process. They are also a must-have if you are building a large-sized project. PHP frameworks like Laravel or Symphony offer third-party integrations but the number of it is incomparable to Rails. Based on a comparison of three frameworks, it can be said that Ruby is still one step forward owing to the ease of RoR tools and perfect documentation. click here is a nice comparison of Ruby and PHP https://sloboda-studio.com/blog/ruby-vs-php/

Please or to participate in this conversation.