Profile/Benchmark your PHP

Here’s a pretty handy tool for figuring out why your page is so slow. It beats having to write your own timing code.

There’s also a profiling feature that tracks the number of times a section of code is run. Useful to discover that you’re running a O(n^2) function more times than you thought you were.

http://pear.php.net/package/Benchmark/docs/1.2.7/Benchmark/Benchmark_Timer.html

Leave a Reply