[Solar-talk] Solar_Test_Bench (was: Re: Namespacing with concrete class functionality)

Travis Swicegood development at domain51.com
Wed Nov 8 11:04:48 PST 2006


Rodrigo Moraes wrote:
> On 11/8/06, Antti Holvikari wrote:
>   
>> Ever heard of Solar_Test_Bench? ;-)
>>     
>
> Uh, yes, but it is more or less a fancy way to use microtime(), isn't
> it? I have to get used to it - tried once, I don't remember why I left
> it to try again later... ApacheBench seems to give some sophisticated
> results, and the possibility to test concurrent requests is useful.

Testing PHP code within PHP code is notoriously faulty.  One big issue 
is that unless you request and/or execute the code outside of the 
current PHP execution you end up with caching.  Executing from the 
outside looking in (the way AB does) is about the best way to figure out 
how long it's going to take.  AB also lets you see possible failures 
with it's concurrent requests since it'll hammer away at a server.

-T


More information about the solar-talk mailing list