Re: Output_Cache Module

From: Date: Thu, 22 Feb 2001 15:59:51 +0000
Subject: Re: Output_Cache Module
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1451@lists.php.net to get a copy of this message
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() ) {} ***

« previous php.pear (#1451) next »