This is one benchmark.. somewhat dated, but good for a general idea.

You might also find this article to be interesting too...

By and large, I've found that JSPs can be as fast as mod_perl, (Note: JSP have to play catchup to equal mod_perl performance, with a specialized JRE like IBM, and lots of other trickery besides) but the usual disclaimer applies, it depends a lot on what you're doing with mod_perl and JSPs, so these benchmarks should be taken with a more than a few grains of salt.. :o)

CGI is slower because of the overhead of starting up an interpreter for each invocation of the script, and all of these benchmarks seem to prove this.. so, yes, for the most part, mod_perl over CGI is true where performance is concerned...

As in a recent thread though, I'd prefer mod_perl (and Perl in general) over JSP (and Java) for an entirely different set of reasons.. YMMV :o)
HTH


In reply to Re: Don't use CGI; by tinman
in thread Don't use CGI; by Jonathan

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.