3 ms·
>Raw PHP usually beats Rails handsdown, and most PHP frameworks are usually comparable Being able to keep up with the slowest competitor in existence isn't ver
by papsosouid 14y ago
>Raw PHP usually beats Rails handsdown, and most PHP frameworks are usually comparable
Being able to keep up with the slowest competitor in existence isn't very good.
- RobAley 14y agoThe reason I cited Rails is that its usually proposed as the better alternative in these anti-PHP threads. Most "high" performance PHP doesn't use one of the usual-suspects in the framework world and can easily beat Rails (and usually plain ruby too). Edit: I should add "in my experience" to the end of that, I have no stats to hand.
- papsosouid 14y ago>Most "high" performance PHP doesn't use one of the usual-suspects in the framework world and can easily beat Rails (and usually plain ruby too). If you skip a framework on both languages, they end up as the two slowest languages. Hard to say if either is faster overall, but they are both awful. Using jruby provides a huge performance increase, and PHP really has nothing to compare with that.
- RobAley 14y agoTo be honest I've not used jruby. It would be interesting to see how it compares to implementations PHP on the JVM such as IBM's WebSphere sMash, and Caucho's Quercus. Do you have any views on the performance of jruby vs hiphop'd PHP?
- papsosouid 14y agoHiphop doesn't really compete in the same space, as it only converts a subset of PHP into C++, and has very limited support for various PHP modules. I don't think any of the common PHP apps like wordpress, joomla, etc work under hiphop. Stuff like Quercus is the jruby of PHP, being an actual implementation of PHP rather than a source -> source translator. But I haven't seen any benchmarks showing it actually beating regular PHP. It does have a much better security record than the official PHP though, and is probably a worthwhile project on that grounds alone.