On Tue, 6 Jun 2000, Perrin Harkins wrote:

> On Tue, 6 Jun 2000, Drew Taylor wrote:
> > I know about tied hashes - Thanks Damien for your excellent book! - but
> > there is a performance penalty. How big is this penalty? Is it worth
> > using tied hashes? Versus an array of hash refs?
> 
> They're a lot slower than normal data structures, or even normal object
> methods.  Whether that slowness will be noticeable next to the slowness of
> accessing a database is questionable.  There were a few benchmarks posted
> to this list that you could dig out of the archive.

If you are going to run it with apache benchmarks try a fresh version of
Apache::Benchmark
http://stason.org/works/modules/Apache-Benchmark-0.01.tar.gz

but actually there is no reason, Benchmark is perfect for that... I have
posted a few examples, so you can roll your own benchmark. 
  perldoc Benchmark
will be no less helpful

... just plugged this note about Apache::Benchmark so you'd go grab and
try the package before I release it...

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://perl.org     http://stason.org/TULARC
http://singlesheaven.com http://perlmonth.com http://sourcegarden.org

Reply via email to