| Re: PHP performance issue -
05-14-2007, 02:50 AM
You said a complicated page, now does that also mean large? how many bytes
is the resulting page including graphical elements if applicable?
Your time differencial measures the time it took PHP the HTML preprossor to
generate the html. It does not measure the time it takes to send the
information to the client nor the the time to render the html on by the
client. If you are using output compression / buffering such as apache's
gzip then the page will only begin to be sent to the client once the script
has finished and clears the buffer and not as it is generated.
I would start by sending the resulting php generated html as a static page
vs using PHP to generate the code and compare the times, do you see a
difference? If not, then PHP is not the bottleneck.
Cheers,
James
"DaveInPNG" <CTS-EMAIL REMOVED> wrote in message
news:EMAIL REMOVED oups.com...
> CentOS 4.2, Apache 2.0, PHP 4.3.9, PHP loaded as a module
>
> I've got a fairly complicated page using MySQL that from the user's
> If I use microtime() at the top and the bottom of the code, it says the
> code takes 0.3 seconds. |