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)



Reply via email to