From: Thomas Fini Hansen Date: 2003-12-03T03:30:08+09:00 Subject: Re: How's the speed? On Tue, Dec 02, 2003 at 05:07:08PM +0900, Robert Klemme wrote: > > "Thomas Fini Hansen" schrieb im Newsbeitrag > news:20031201213101.GC18957@saber.xen.dk... > > On Tue, Dec 02, 2003 at 05:32:09AM +0900, Leif K-Brooks wrote: > > > I'm considering doing a large web-based project in Ruby (mod_ruby) > > > instead of PHP. How would the speed of mod_ruby using the cgi library > > > compare to the speed of PHP? > > > > Depends on what you want to do.. Here's something I wrote some months > > ago: > [snip] > > Great story! Should be filed somewhere under "Ruby Success Stories". > Which version of PHP where you using? I think they did a major > improvement in performance between v3 and v4... Well, it was PHP4. I was genuinely surprised too, I had the 'feeling' that PHP would be the fastest, as Ruby was nicer to work with. PHP seems to have a bit of an edge i the 'load and parse file' department, but with mod_ruby, Ruby is back on top. But the most important part is that Ruby just seems easier to comprehend. Especially the =& operator (or was it the &= ?), gave me much grief. Using the wrong one wouldn't give a parse error or anything, just hard to track errors. The only 'problem' with Ruby is that it makes me want to make things even smarter and elegant, rather than just getting the job done. -- Thomas beast@system-tnt.dk