# Eruby and mod\_ruby

**URL:** <https://www.ruby-forum.com/t/eruby-and-mod-ruby/107589>\
**Category:** Ruby\
**Created:** [June 23, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/eruby-and-mod-ruby/107589 "2007-06-23T19:44:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/ee59a6/32.png) [@zaki](https://www.ruby-forum.com/u/zaki)\
**Post date:** [June 23, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/eruby-and-mod-ruby/107589/1 "2007-06-23T19:44:49Z")

</div>

Hi everyone,

Can someone explain to me what the (performance) difference between  
eruby, mod\_ruby, erb, erubis, etc is? I have been struggling to find  
up-to-date information, but most of the talks date back to 2002.

I have tried a limited benchmark on apache 2.2 between eruby and  
mod\_ruby, but it seems to me, that probably something is not quite right  
with the setup. The result is that static html can perform (on a  
particular machine) up to 2000-3000 requests per seconds (no cache/proxy  
is set up), while eruby performs around 180 request per second. More  
interestingly, mod\_ruby, while performs at around the same level, causes  
errors and drops the connection from time to time. I have used ERubyRun  
and ERbRun with no difference.

I have a large codebase that dates back to 2000, which has been written  
with eruby in mind thus making it harder for me to just jump on  
different mods - without first justifying it of course. As I could  
gather, mod\_ruby is supposed to outperform eruby, but the author of  
eruby mentioned that he created a patch that brings eruby on par with  
mod\_ruby. Then, however he went on to say that this patched version is  
merged into mod\_ruby, which is plausible, as eruby is still version  
1.0.5 and as far as i know, hasn’t changed since 2002. Mod\_ruby on the  
other hand is said not to be thread-safe (i’m not entirely sure if that  
should cause a problem, as i am running on linux, apache and prefork  
mpm, but that might change in the future)

So if anybody can point me to the right direction, my question is: What  
would be the best practice for running a really huge site on ruby?  
(_not_ rails).

Zaki

---

<div class="post-metadata">

**Author:** ![zaki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/ee59a6/32.png) [@zaki](https://www.ruby-forum.com/u/zaki)\
**Post date:** [June 25, 2007, 5:27am UTC](https://www.ruby-forum.com/t/eruby-and-mod-ruby/107589/2 "2007-06-25T05:27:27Z")

</div>

Anyone? ☹
