From: Eric Hodel Date: 2002-12-10T05:55:25+09:00 Subject: Re: eRuby and mod_ruby = *slow*? --nYySOmuH/HDX6pKp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Chris Fisher (cfisher@enteract.com) wrote: > Anyway, those numbers are horrible. There was a thread I spotted where > someone stated mod_ruby is usually 95% as fast as PHP -- definitely not > the case in my experience. For example, a PHP script that iterates over > an array with 10 elements and prints out each element's value never > dropped below 135 requests/second in the same benchmark. >=20 > So what's going on here? Why is it taking so long for eRuby to print > out a single line of text? Is it possible I've misconfigured something? > I'm not sure what information might be useful, so let me know if there's > anything important I left out. Suggestions are greatly appreciated. > Thanks! Eruby creates a tempfile filled with 'puts' lines, then evals it. If you use mod_ruby straight and a templating system (I hacked up RDoc's for my own purposes) you'll have a faster and cleaner system. Even still, you should be able to do better than 8 hits/sec. You may want to send this along with more configuration info to the mod_ruby list: modruby@modruby.net --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --nYySOmuH/HDX6pKp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE99QM7MypVHHlsnwQRAlDiAKDtr6R2rhcSgG0IybbeXCjspKEpQgCdHvEo /70uPw2TTuY4bfmmQwGxZE8= =0gXV -----END PGP SIGNATURE----- --nYySOmuH/HDX6pKp--