RE: [PHP-PEAR] PHPLib and Pear merge
| From: | Christian Stocker | Date: | Wed, 07 Mar 2001 11:31:16 +0000 |
| Subject: | RE: [PHP-PEAR] PHPLib and Pear merge | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-1591@lists.php.net to get a copy of this message | ||
Hi
> However, since there is apparently some problems with pear's db speed, we do
> need to take steps to fix this. I believe the first step would be to see the
> original benchmark script that have been created previously to have
> triggered this discussion.
the benchmark i used was just testing the Caching class and this is
usually just one sql-query call (if the site is cached). used ab
from apache for that.
to get a better insight, i wrote a little script using
Pear::Benchmark/Timer.
you can see the script at
http://nomad.ch/php/benchmarkdb.phps
and one output of the result at
http://nomad.ch/php/result.html
(no, the script doesn't work on that machine...)
the times are in microseconds and they are not average values, just one
sample output, but they show the correct magnitude.
as you can see, the connect-function in pear-DB is really time-consuming.
we should investigate in that.
chregu