note
tachyon
<p>As requested by /msg from [mirod] on Benchmarking CGI::Simple is just under 3 times faster performing the most common function - getting the value of a param. It is variably faster on other common operations. Load times are more difficult to evaluate accurately. I would be interested in what you find.
<code>
use Benchmark;
use CGI;
use CGI::Simple;
$ENV{'QUERY_STRING'} = 'foo=bar&baz=boo';
$q = new CGI;
$s = new CGI::Simple;
timethese(250000, {'CGI' =>'$q->param("baz")', 'Simple' => '$s->param("baz")'});
__DATA__
Benchmark: timing 250000 iterations of CGI, Simple...
CGI: 27 wallclock secs (27.19 usr + 0.00 sys = 27.19 CPU) @ 9194.56/s (n=250000)
Simple: 10 wallclock secs ( 9.99 usr + 0.00 sys = 9.99 CPU) @ 25025.03/s (n=250000)
</code>
<h3>Update</h3>
For a more in depth analysis see [CGI::Simple vs CGI.pm - Is twice as fast good enough?]
<p>cheers
<p><font color="#0000ff">tachyon</font>
<p>s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
145432
145527