EOS Benchmark is a benchmarking tool for PHP. It tracks memory usage and script execution time and assists the developer in finding the slower parts of his source code. The features include:
EOSBenchmark is distributed as a single class in a single file for easy integration.
EOSBenchmark will not work with PHP versions lower than 5 because classes were not integrated with these.
EOSBenchmark also requires PREG regular expression functions.
If you want to work with XML files your server will need to have the file_get_contents() and file_put_contents() functions enabled. Basic un-altered PHP installations have these, but some hosted webhotels do not.
Simply add the EOSBenchmark.php file to your working environment, include it and you're ready to go.
EOSBenchmark lets you add "records" at various places in your source code. You can benchmark your entire source code or portions of it. Every record takes a "snapshot" of the current memory usage and current microtime value. You can add as many records as you want and assign a comment to each. For example if you want to track the execution time and memory usage of a loop, you might add a record before the loop and another after, with the comments "Before running heavy loop" and "after the loop".