in reply to Measuring Speed

See the Benchmark module for the general solution. It is part of all standard perl distributions.

If you're interested in testing CGI's against each other you may want to use a program like ab (apache benchmark) to test them so you can see how they perform under higher load: one CGI may be faster running one-at-a-time, but the other may scale better under multiple, concurrent hits.