logo       

Re: [ANNOUNCE] Apache Hello World Benchmarks - Apache C API, HelloDB: msg#00272

apache.mod-perl

Subject: Re: [ANNOUNCE] Apache Hello World Benchmarks - Apache C API, HelloDB

Dennis Haney wrote:
The bias in the test is even a little slanted towards the JSP
benchmarks since the trivial connection pooling I used there is
nothing like the Apache::DBI overhead in the mod_perl test, when I
could have just used a persistent global $dbh instead. ( maybe I
should? )


I believe you should. It is the most common setup using mod_perl, if
you are concerned about performance, anyway.

I think you got confused by the wording. The most common setup with mod_perl is to use Apache::DBI, which is what he used in the test.

To answer the original question, I don't think Apache::DBI is much overhead at all. It amounts to little more than a hash lookup. Certainly less work than the the thread synchronization required for connection pooling.

- Perrin




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise