Go Back   Forum Care Forums > Development Reference Area > Php Development

Reply
 
LinkBack Thread Tools Display Modes
Re: PHP performance issue
Old
  (#1)
Someuser
Guest
 
Posts: n/a
Default 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.



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top