Improving mod_perl Driven Site's Performance -- Part III: Code Profiling and Memory Measurement Techniques Page 6
% perl -MO=Terse -e 'my %hash' | wc -l -e syntax OK 4 % perl -MO=Terse -e 'my %hash = ()' | wc -l -e syntax OK 10The first one has less opcodes.
Note that you shouldn't use
Apache::Statusmodule on production server as it adds quite a bit of overhead for each request.
References
- The mod_perl site's URL: http://perl.apache.org
-
Devel::DProf
http://search.cpan.org/search?dist=DProf -
Apache::DProf
http://search.cpan.org/search?dist=Apache-DB -
Apache::VMonitor
http://search.cpan.org/search?dist=Apache-VMonitor -
GTop
http://search.cpan.org/search?dist=GTop
The home of the C library: http://www.home-of-linux.org/gnome/libgtop/ -
BSD::Resource
http://search.cpan.org/search?dist=BSD-Resource
0 Comments (click to add your comment)
Networking Solutions
