PHP vs Ruby vs Python vs Perl
I am one of those PHP bigots who say that Ruby on Rails does not scale. This is quite a debate amongst web mechanics. My issue with Ruby on Rails is really the IO handling of Rails and the fact that its a middleware framework that hasn’t reached the integration status that PHP has enjoyed with major web engines like Apache.
Sans such integration, everything the framework does has to be encapsulated and virtualized. These are neat words that mean the server has to do more work. Sure its an orderly and secure world where everything is carefully packaged up and encapsulated. Its also slow. I am a security guy at heart, sure, but I’m also old school on frameworks - keep it simple and let it do what it does; cut out as much red tape between the layers as you can. This philosophy has been successful for me in deploying very large web farms that handle very big traffic and even bigger traffic spikes.
However on pure language parsing Ruby is faster than PHP according to this study. This makes sense because Ruby is young and not yet bloated. The bloat will come just like the waistband of middle age. PHP is already there for sure.
I would like to see a study done with the complete frameworks in place. Of course this study was also done using out-of-the-box configs and I have always custom-compiled PHP and Apache in my platforms to keep them as lean and mean as possible.
As you can read in the study, Python outsnakes the competition. Python may be the future for all of us but maybe the reason its so fast is because it doesn’t load libraries etc. until they are called. At the core its a very streamlined language. Almost everything is modularized. If only it wasn’t so snooty and picky.
