Re: [PHP-PEAR] Output_Cache Module

[email protected] (Christian Stocker) Thu, 22 Feb 2001 16:59:51 +0100 (CET)
Newsgroups php.pear
Organization Nomad Online Agents
Message-ID <[email protected]>
On Thu, 22 Feb 2001, Chuck Hagenbuch wrote:

> > BTW, the DB-abstraction of PEAR since to be much slower than the one from
> > phplib. Just as a comment.
>
> What kind of data do you have about this?

with selecting 5 records from a simple table, i get 58 pages/sec for
phplib, with PEAR-DB only 18 pages/sec (measured with ab -n 100 from
apache). the scripts i used can be found below.

dbpear.php:
***
require_once( 'DB.php' );
$db = DB::connect( "mysql://root@localhost/ebp",True);
$sql = 'SELECT * FROM seiten limit 5';
$demoResult = $db->query($sql) or die($sql );
while ($demoRow = $demoResult->fetchRow(DB_FETCHMODE_ASSOC)) {}
***

dbphplib.php:
***
require_once( 'ebp/phplib/prepend.php3' );
$db = new DB_iba;
$sql = 'SELECT * FROM seiten limit 5';
$db->query($sql);
while (	$db->next_record() ) {}
***