<?xml version="1.0" encoding="windows-1252"?>
<node id="145692" title="Re: Re: Re: Re: Re: RFC CGI.pm refactoring" created="2002-02-15 10:18:55" updated="2005-07-19 14:08:11">
<type id="11">
note</type>
<author id="53423">
Masem</author>
<data>
<field name="doctext">
And even then, with this test, while it's fair in how fast it accesses, the real concern would be the speed in breaking down the query string.  I propose a better test would be :
&lt;CODE&gt;
use Benchmark;
use CGI qw/:cgi /;
use CGI::Simple;
$ENV{'QUERY_STRING'} = 'foo=bar&amp;baz=boo';
timethese(250000, {'CGI' =&gt;
                      '$q = new CGI; $q-&gt;param("baz")', 
                   'Simple' =&gt; 
                      '$s = new CGI::Simple; $s-&gt;param(
+"baz")'});
&lt;/CODE&gt;
&lt;P&gt;
-----------------------------------------------------
&lt;BR&gt;
&lt;I&gt;
&lt;A HREF="http://mneylon.masemware.com/"&gt;Dr. Michael K. Neylon&lt;/A&gt; - &lt;a href="mailto:mneylon-pm@masemware.com"&gt;mneylon-pm@masemware.com&lt;/a&gt;
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
&lt;BR&gt;
&lt;FONT COLOR="#800000"&gt;&lt;I&gt;"I can see my house from here!"&lt;/I&gt;&lt;/FONT&gt;
&lt;BR&gt;
&lt;FONT COLOR="#808080"&gt;&lt;I&gt;It's not what you know, but knowing how to find it if you don't know that's important&lt;/I&gt;&lt;/FONT&gt;
&lt;/I&gt;</field>
<field name="root_node">
145432</field>
<field name="parent_node">
145690</field>
</data>
</node>
