in reply to YA newbie question: benchmarking your scripts?

Check out this node for the Benchmark snippet you're looking for.

Just remember that your most valid benchmarks come from multiple iterations, as you would get from the link cjf posted.
  • Comment on Re: YA newbie question: benchmarking your scripts?

Replies are listed 'Best First'.
Re: Re: YA newbie question: benchmarking your scripts?
by redemption (Sexton) on May 24, 2002 at 03:20 UTC
    thanks joealba! that's exactly what i'm looking for... thing is right now the script runs slow enough as it is and i figure 1 run though would be enough for my purposes... i do understand that you'd need to run several iterations for a proper benchmark but i guess once is sufficient for this script
      Ahh.. Now we see. :)

      You can use as many of those benchmarks as you want in one file, so don't be shy with them while you're trying to find the code that's crawling. Slap some in at the start and end of each of your reasonably-sized code blocks or loops.

      Code optimization -- it's an art. :)