title: Are my unaltered CGI scripts actually faster with mod_perl?
body: <p>My apache server previously used CGI scripts written in perl. I heard that using mod_perl is much faster than using standard cgi scripts, so I went about setting up mod_perl on my server. According to <a href="http://perl.apache.org/docs/2.0/api/ModPerl/Registry.html" rel="nofollow">this page</a>, all I needed to do in order for my CGI scripts to run under mod_perl was to edit my httpd.conf file. I added the following lines to the end of my httpd:</p>
  
  <pre><code>LoadModule perl_module libexec/apache2/mod_perl.so
  &lt;Location /cgi-bin&gt;
      SetHandler perl-script
      PerlResponseHandler ModPerl::Registry
      Options ExecCGI
      PerlSendHeader On
      Order allow,deny
      Allow from all
  &lt;/Location&gt;
  </code></pre>
  
  <p>If I check for <pre>exists $ENV{"MOD_PERL"}</pre> in a CGI file, the MOD_PERL variable appears to be present. So I'm pretty sure I have mod_perl set up and running.</p>
  
  <p>My question is: Does my <b>completely unaltered</b> CGI script <b>actually</b> experience a speedup? Is there anything I can do to speed it up even more? Or would any further work not really be worth it for the speedup? Does anyone have experience with this type of stuff?</p>
  
  <p>I've been searching documentation and forums for an answer, but I can't really find anything. Thanks in advance for your help!</p>