The trouble is, performance isn't as simple as "X is faster than Y". It's a series of complex trade-offs. For example, mod_perl causes Apache processes to have a larger memory footprint. Depending on what you're doing, it may well be worse if you're running under Apache::Registry, especially if your CGI scripts aren't tuned to run under it. However, the execution time is generally far superior to CGI. In a lot of cases, it's better to use more memory than to run slowly.

Of course, this is not always the case. It's all highly dependant on exactly what you're doing, what the goals of the project are, etc.

There's a strong possibility that performance isn't as important for your application as you think. There isn't a huge amount of difference between the performance of mod_perl using custom handlers, mod_perl using Apache::Registry and PHP using mod_php, at least for the vast majority of applications. Unless your requirements specifically state 'X must run in n seconds or less', I wouldn't let performance be a huge factor in whether I chose PHP over Perl


In reply to Re: mod_perl without separate config for static HTML? by Mutant
in thread mod_perl without separate config for static HTML? by gunzip

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.