Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: YA newbie question: benchmarking your scripts?

by joealba (Hermit)
on May 24, 2002 at 03:10 UTC ( [id://168964]=note: print w/replies, xml ) Need Help??


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. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://168964]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found