I wouldn't recommend writing a performance test using PHP as it is pretty much "re-inventing the wheel" action. There is a variety of tools which are designed for performance testing. The best of...