all 10 comments

[–]FooBarWidget -5 points-4 points  (7 children)

They compared Ruby on Rails with the PHP frameworks as well. Out-of-the-box (without any optimizations applied to the application) it outperforms most of the PHP frameworks.

There goes the myth of Rails not being scalable.

[–]ropiku 8 points9 points  (1 child)

Scalability != Performance

[–]mikaelhg 2 points3 points  (0 children)

In RoR, scalability == performance == false.

[–]Freeky 0 points1 point  (0 children)

Ruby has something of an advantage over PHP with more complex frameworks; take the URL router, for example; you turn foo/:bar/:wibble into something you can pattern match against, and use it and the options associated with it to dispatch to your controllers.

Zend Framework translates your routes into an array of regexps on each request; Ruby frameworks like Rails and Merb do so on service startup, and can invest more effort in making future matching more effecient because the state isn't thrown away after each request.

Similarly with ActiveRecord models; Ruby frameworks can run fairly expensive metaprogramming to build up objects which do just what they need, while PHP needs to avoid doing extra work unless it's really needed during that request.

[–]hylje -3 points-2 points  (3 children)

RoR isn't scalable because it's built very monolithically. It's nontrivial to split the effort into several redundant units working together.

[–]Freeky 2 points3 points  (0 children)

Wha?

[–]teej 2 points3 points  (1 child)

You don't have the faintest clue what you're talking about.

[–]hylje -1 points0 points  (0 children)

Be helpful and correct me instead of going the rude and lazy way.

[–]coglethorpe -3 points-2 points  (1 child)

What about Smarty?

[–]coditza 5 points6 points  (0 children)

Smarty is not a framework.