http://www.perlmonks.org?node_id=879033


in reply to Subroutine execution time

IMHO you need:
perldoc Benchmark