Devel::NYTProf is a great tool to help you figure out which part of an application is responsible for the bulk of the processing time. This information then can drive your optimization effort to the area where you can get the biggest impact.