From: "Benjamin J. Tilly" Date: 2001-05-08T06:15:43+09:00 Subject: [ruby-talk:14815] Re: Ruby and Web Applications >===== Original Message From "Guy N. Hurst" ===== >Jim Freeze wrote: >> ... >> However, right now I'm guessing that there would be some performance >> degredation if I were to switch from php to ruby. >> But, this is why the post, I can only guess right now >> and although I am tempted to launch into a new web project >> with Ruby, instead of php, I would like to hear from others >> if it is going to be worth it right now. >> > >I converted a site using mysql from PHP to Ruby, and it was >noticably slower. But then, Perl is noticably slower than PHP, too. I have heard mixed reports on whether there is a speed difference. What is certain is that if you convert CGI to mod_perl using the classic Apache::Registry, what you get is slower than PHP. But if you code explicit handlers in Perl, the gap at least narrows significantly, and memory use improves. With Ruby I predict the same holds. Additionally for CGI, people who use << to incrementally build strings are likely to get significantly better performance than those who create large numbers of small objects, or who do unneeded copying with +=. What it really comes down to is this, "Is it fast enough for you, and is it maintainable in its current form?" Cheers, Ben