Re: DB performance
| From: | Edin Kadribasic | Date: | Sat, 06 Oct 2001 12:55:18 +0000 |
| Subject: | Re: DB performance | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2160@lists.php.net to get a copy of this message | ||
On Sat, 6 Oct 2001, Christian Stocker wrote:
> On Sat, 6 Oct 2001, Martin Jansen wrote:
>
> > On Sat, 6 Oct 2001 12:04:33 +0200, Edin Kadribasic wrote:
> >
> > >Are there any numbers on how big is the performance loss when using PEAR::DB
> > >as opposed to using db backend functions directly?
> >
> > Some time ago during the discussion about merging PHPLIB into PEAR someone
> > (Christian Stocker?) made a performance comparison between the DB class of
> > PHPLIB and PEAR::DB. I don't remember if he also measured the time the
> > backend functions directly need, but perhaps you can find some pieces of
> > information in the mailinglist archive.
>
> yes, that was me. but i wouldn't call those benchmark tests
> scientifically correct :) and i didn't test it with the "native" backend
> functions. just a pear to phplib comparison. See
>
> http://marc.theaimsgroup.com/?l=php-pear&m=98396772605723&w=2
> for the thread
>
Thanks for the link. Those numbers don't look too good and confirm my
suspicion of noticable performance loss (as in pages/sec) when switching
from "native" calls to Pear.
Pear::DB is so nice to work with that I would have a hard time switching
back from it because of the performance issues. If I remember correctly
somebody mentioned porting the package to C to address those. Any news on
that front?