Rails vs PHP in resource usage

I’d like to know if Rails requires significantly more resources than
PHP. Assume the following setups:

Rails:
Apache 2.2 w/ Passenger
MySQL Database

PHP:
Apache 2.2 w/ MPM worker and Fast CGI
MySQL Database

In one of my Rails apps running the above setup, I’m at roughly 80mb
RAM idle, and for each person that visits the site roughly 10-20mb are
taken for each. This seems like a lot and I was wondering if it
continues to be like this. PHP seems to require less resources, but
based on my limited experience I can’t make a definite conclusion.

On Sun, Jul 19, 2009 at 12:36 AM, Mike C [email protected] wrote:

I’d like to know if Rails requires significantly more resources than
PHP.

Yes.

Could I get some details on why it does take more resources and what I
can do to minimize resource usage as much as possible?

snacktime wrote:

On Sun, Jul 19, 2009 at 12:36 AM, Mike C [email protected] wrote:

I’d like to know if Rails requires significantly more resources than
PHP.

Yes.

Or rather, it depends. Rails is a framework, whereas PHP is simply a
language. It wouldn’t surprise me if there were PHP frameworks whose
resource usage were comparable to that of Rails.

I don’t know how the PHP and Ruby interpreters (exclusive of framework)
compare in terms of resource usage.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Here’s a top-10 list of PHP frameworks:

http://www.phpframeworks.com/

It’s about a year old. Which PHP framework are you wanting to compare
to Ruby on Rails? As Marnen said, PHP in itself is a language whereas
RoR is a framework. You can only compare PHP to Ruby if you are asking
for a language to language comparison…

As for Ruby…

http://blog.pluron.com/2009/05/ruby-19-performance.html

PHP Framework aims to speed up the creation and maintenance, and also to
replace the repetitive coding tasks by power, control and pleasure.
More PHP Framework you can view:
http://www.phpkode.com/projects/category/php-development-framework/