Paul Seamons > CGI-Ex > bench_auth.pl

Download:
CGI-Ex-2.38.tar.gz

Annotate this POD

CPAN RT

New  4
Open  0
View/Report Bugs
Source   Latest Release: CGI-Ex-2.41

NAME ^

bench_auth.pl - Test relative performance of CGI::Ex::Auth

SAMPLE OUTPUT ^

  Benchmark: running cookie_bad, cookie_good, cookie_good2, form_bad, form_good, form_good2, form_good3, form_good4 for at least 2 CPU seconds...
  cookie_bad:  3 wallclock secs ( 2.15 usr +  0.00 sys =  2.15 CPU) @ 6819.07/s (n=14661)
  cookie_good:  3 wallclock secs ( 2.01 usr +  0.08 sys =  2.09 CPU) @ 6047.85/s (n=12640)
  cookie_good2:  2 wallclock secs ( 1.95 usr +  0.10 sys =  2.05 CPU) @ 5087.80/s (n=10430)
    form_bad:  3 wallclock secs ( 2.19 usr +  0.00 sys =  2.19 CPU) @ 6542.92/s (n=14329)
   form_good:  3 wallclock secs ( 2.08 usr +  0.05 sys =  2.13 CPU) @ 6108.45/s (n=13011)
  form_good2:  3 wallclock secs ( 2.05 usr +  0.09 sys =  2.14 CPU) @ 5023.36/s (n=10750)
  form_good3:  3 wallclock secs ( 2.17 usr +  0.01 sys =  2.18 CPU) @ 7040.83/s (n=15349)
  form_good4:  3 wallclock secs ( 2.12 usr +  0.00 sys =  2.12 CPU) @ 1947.64/s (n=4129)
                 Rate form_good4 form_good2 cookie_good2 cookie_good form_good form_bad cookie_bad form_good3
  form_good4   1948/s         --       -61%         -62%        -68%      -68%     -70%       -71%       -72%
  form_good2   5023/s       158%         --          -1%        -17%      -18%     -23%       -26%       -29%
  cookie_good2 5088/s       161%         1%           --        -16%      -17%     -22%       -25%       -28%
  cookie_good  6048/s       211%        20%          19%          --       -1%      -8%       -11%       -14%
  form_good    6108/s       214%        22%          20%          1%        --      -7%       -10%       -13%
  form_bad     6543/s       236%        30%          29%          8%        7%       --        -4%        -7%
  cookie_bad   6819/s       250%        36%          34%         13%       12%       4%         --        -3%
  form_good3   7041/s       262%        40%          38%         16%       15%       8%         3%         --
syntax highlighting: