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

[email protected] (timbo)
Newsgroups perl.beginners
Organization http://groups.google.com
Message-ID <e937861f-bf85-4095-b2e6-7a6a235c172c@g16g2000pri.googlegroups.com>
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.
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.