in reply to Benchmark doesn't tell me what I want to hear

If you're trying to locate the bottleneck in your code, try using Devel::DProf.

While your Benchmark results may be informative, they must be considered within the context of your code, with particular emphasis on the relative number of iterations.

  • Comment on Re: Benchmark doesn't tell me what I want to hear

Replies are listed 'Best First'.
Re^2: Benchmark doesn't tell me what I want to hear
by afresh1 (Hermit) on May 04, 2005 at 23:30 UTC
    I did try that, but ran into issues with it. I would guess it is because I am using POE and forking and such. I may pull out the sub I know it spends most of its time in into a test script and try to profile just that.

    $ perl -d:DProf SeedTorrents.pl
    Memory fault (core dumped)
    
    --
    andrew