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.
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.
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…