Re: How to measure the efficiency, load & performance of a script?

[email protected] ("michael wang")
Newsgroups perl.beginners
Message-ID <[email protected]>
look at perldoc -m Benchmark

On 5/20/08, Richard Lee <[email protected]> wrote:
>
> timbo wrote:
>
>> Hi all,
>>
>> I was just wondering if any general tools / modules exist to help
>> measure the efficiency of any code.
>> I know that the Learning Perl books cover the theory but was wanting
>> to know if there were good measuring methods available.
>> Its pretty easy to figure out the time a script took to run but
>> knowing the load on the cpu, the overhead from all the loops &
>> variables, arrays & hashes, etc would also be nice to know.
>> Any suggestions appreciated.
>> Thanks in advance.
>> t.
>>
>>
>>
>>
>
>
> perl -d:DProf  ./programname
>
> and then
>
> dprofpp
>
> --
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> http://learn.perl.org/
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.