Re: [PHP-PEAR] News from the PHPLib and Pear Benchmark-Front

[email protected] ((Stig Sæther Bakken)) 07 Mar 2001 19:36:30 +0100
Newsgroups php.pear
Message-ID <[email protected]>
[Christian Stocker <[email protected]>]
> Hi there
> 
> i made some more benchmarking tests on the pear::db
> 
> i analyzed the connect function in DB.php and it's clearly the
> 
> 	    @include_once "DB/${type}.php";
> 
> command, which uses 90% of the time in connect(). so it looks like,
> there's a lot to compile in {$type}.php and common.php. and i don't know,
> how to speed that up, apart from deleting code :) any ideas?
> 
> see http://nomad.ch/php/result.html for the exact figures.
> 
> BTW:
> zend_cache helped a lot (from 9ms for the include down to 0.5ms)
> bware_cache was not faster for the include...

Hi,

Could you send me the source for your benchmarks?  I want to take a
look at this to see whether there are hidden performance hits
somewhere (PEAR postpones much of the compile time to connect() like
your benchmark shows, but does it show PHPLIB's compile hit?)

Anyway, I'll take a look at what I can do to improve PEAR DB's
performance.

 - Stig

-- 
  Stig Sæther Bakken <[email protected]>
  Fast Search & Transfer ASA, Trondheim, Norway