rf wrote:
> "Leif K-Brooks" <> wrote in message
> news:...
>
>>e n | c k m a wrote:
>>
>>>Just curious as to whether or not anyone here knows which is faster
>
> between
>
>>>SSI and PHP?
>>
>>Just tested a simple file with one include in PHP and SSI over 10,000
>>requests with ApacheBench. The mean average for time per request was
>>1.207 milloseconds for PHP, and 0.861 for SSI. Of course, if your
>>application needs to do things SSI can't, you'll want to use something
>>more complex like PHP.
>
>
> So, SSI is .35 milliseconds faster. Compare this to the tens or even
> hundreds of milliseconds it takes to get the results back to the client. I
> think the difference is irrelevant 
>
10,000 times .35 is 3500 seconds of server CPU time. That can be
important in some circumstances. My opinion is also that SSI will be
faster than PHP at a raw level. However, the above test is
inconclusive because does not explain whether or not server-side
includes processing was turned off when testing PHP, and if PHP was
turned off when testing SSI. That could make a difference. Also,
there are engines, particularly Zend, which cache PHP output files.
So the particular configuration of your server will highly affect your
results. In any case, switching your include statements between SSI
and PHP is a simple find/replace if you do it right. So just pick
one, and once you build your site, you can evaluate which is faster.
I think processing time for include files is not going to be your
biggest concern.