Sergey,
You can crank up Apache::ASP's speed by setting StateDir
to somehting like /tmp/asp, or setting NoState to 1.
Please check out http://www.nodeworks.com/asp/tuning.html
When well tuned, Apache::ASP scripts will still be
slower than tuned Embperl & modperl, but not as much as
shown in your testing.
For other benchmarks, check out:
http://www.chamas.com/hello_world.html
-- Joshua
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NODEWORKS >> free web link monitoring Huntington Beach, CA USA
http://www.nodeworks.com 1-562-683-2142
BeerBong wrote:
>
> Huh, another test
>
> test.epl
> ----------------------------------------------
> <html>
> <title>DBTest</title>
> <body>
> <pre>
> [-
> use DBI;
>
> $dbh = DBI->connect("DBI:Oracle:SIMain","test","test");
> $sth = $dbh->prepare("select login,fio from test where login like ?");
> $sth->bind_param(1,"Be%");
> $sth->execute;
> $sth->bind_columns(\$login,\$fio);
> local $^W=0;
> $escmode =0;
> -]
> [$ while ($sth->fetchrow_arrayref) $]
> [+ $login +] - [+ $fio +]
> [$ endwhile $]
> </pre>
> </body>
> </html>
> ----------------------------------------------
> ./ab -n 1000 -c 10 http://apache/test.epl
> 19 Requests per second...
> PHP3 and mod_perl script with DBD::Oracle - 24 Requests per second
> And I still don't know why PHP3 has the same speed as DBD::Oracle, DBI is
> neccessary layer, and PHP hasn't it and directly calls to OCI. I guess if
> Tim Bunce rewrite PHP it will be safer and faster :)
> Apache::ASP - 7 Requests per second, but Apache::ASP was installed and works
> without any troubles, EmbPerl has them... I still dont know why error log
> doesnt work, though it is not neccessary feature, and why my
> PerlPostReadRequestHandler stops the rewriting Remote IP :(
> ----------------------------------------------
> Sergey Polyakov (BeerBong)
> Chief of Web Lab (http://www.mustdie.ru/~beerbong)