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