Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPEverywhere:
PHP Benchmarking Suite
Feb 12, 2004 @ 13:35:59

John Lim from PHPEverywhere, there's a new posting about his PHP Benchmarking Suite making it easier to test your code and extend to conform to your testing needs.

My benchmarking suite. Apart from XML, it also benchmarks string handling, looping (foreach vs for), output buffering, etc. And it's easily extensible too.

I wrote it when i was thinking about writing a book on optimizing PHP, and realized i would need a benchmarking suite to test various performance hypotheses. Its not OOP, but i think it demonstrates how far you can make procedural programming extensible in PHP.

The benchmarking engine scans sub-directories, and each sub-directory is treated as a test suite. A .php file in a sub-directory is one test. Every .php file in a sub-directory can be run stand-alone, and when running stand-alone debugging output is generated so you can verify the correctness of the code you are measuring.

So, if you're interested and want to give it a shot, you can download it directly from here.

tagged:

Link:


Trending Topics: