Forum Moderators: coopster & phranque

Message Too Old, No Replies

Benchmarking / optimising Perl scripts?

         

sugarkane

11:13 pm on Jun 14, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Has anyone any advice on how to test the efficiency of a script? The benchmark [perl.com] module is handy for testing execution time, but I'm struggling to think of a good way to test memory usage (which I'd think was very important in a CGI environment where there might be multiple instances of the script running at once).

Any tips?

Brett_Tabke

9:10 am on Aug 24, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I sure wish there was a way too SugarKane.
When running on Winders, I often run a memory monitor just to see the effect of different perl actions on memory.

For instance; you declare a large hash or array and then use UNDEF on it. On windows, the memory is reclaimed, on most *nix systems it isn't.