in reply to Startup cost, CGI performance

You may like to take a look at Benchmark::Timer. It comes with the standard distribution. It has a really simple interface for measuring elapsed times in as many categories as you want, and also allows you to accumulate and average individual timings across many iterations. Finally, it outputs a nicely formatted, brief report.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Timing (and a little luck) are everything!

Replies are listed 'Best First'.
Re: Startup cost, CGI performance
by b10m (Vicar) on Jan 16, 2004 at 23:51 UTC

    Although I do agree that Benchmark::Timer is really nice for easy benchmarking, I do have to note (for the record) that it is not included with Perl (by default), AFAIK. Benchmark is, but you do have to install Benchmark::Timer yourself.

    --
    b10m

      I sit corrected :)

      I've had it so long, I've reached the point that I assumed it was a consituent part of Benchmark.


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail
      Timing (and a little luck) are everything!