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

Profiling perl

by spmlingam (Scribe)
on Dec 08, 2008 at 12:29 UTC ( [id://728921]=perlquestion: print w/replies, xml ) Need Help??

spmlingam has asked for the wisdom of the Perl Monks concerning the following question:

Hi Friends,
How can i profile and set benchmark my Perl code?

Replies are listed 'Best First'.
Re: Profiling perl
by lamp (Chaplain) on Dec 08, 2008 at 12:39 UTC
Re: Profiling perl
by marto (Cardinal) on Dec 08, 2008 at 12:55 UTC
Re: Profiling perl
by cdarke (Prior) on Dec 08, 2008 at 12:35 UTC
    Profiling, use Devel::DProf like this:
    perl -d:DProf myscript.pl
    This will create a file called tmon.out which you process using dprofpp.

    Benchmarking may be done using a number of tools, the most obvious being Benchmark.
Re: Profiling perl
by swampyankee (Parson) on Dec 08, 2008 at 12:33 UTC

    Use the Benchmark module.


    Information about American English usage here and here. Floating point issues? Please read this before posting. — emc

Log In?
Username:
Password:

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

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

    No recent polls found