Current time: 06-24-2017, 03:09 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to improve Time To First Byte?
05-24-2017, 06:34 AM
Post: #11
RE: How to improve Time To First Byte?
Regarding your reply "the one place that you have control in the application is to "flush early" and send as much of the document as possible before doing any back-end processing (the document head and beginning of the document if at all possible)" ...

I am not clear how that is accomplished. How do you "flush early"?

Thanks


(02-28-2011 10:59 PM)pmeenan Wrote:  The first byte time is usually slow because of back-end processing that is done to generate the pages themselves (usually the actual guts of the application/site).

207ms is quite a respectable first byte time though. 80ms of that is the round trip time (I usually just look at the socket connect time as a reasonably good barometer of the RTT to the server). The other 130ms is the time it takes your server to process the request and includes forking processes, starting up whatever interpreter the site uses (php, etc assuming it's not a static HTML file), etc.

If you're not already doing it, the one place that you have control in the application is to "flush early" and send as much of the document as possible before doing any back-end processing (the document head and beginning of the document if at all possible). Getting much faster from where you are is probably going to be an exercise in tuning the web server and application environment itself (and possibly even switching web server platforms if you can't get LiteSpeed to where you want it to).

-Pat
Find all posts by this user
Quote this message in a reply
05-24-2017, 04:38 PM
Post: #12
Photo RE: How to improve Time To First Byte?
How to improve Time To First Byte?


Attached File(s) Image(s)
   
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)