Current time: 10-15-2018, 08:34 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
10-03-2018, 05:40 AM
Post: #13
RE: How to improve Time To First Byte?
Pat

Regarding your message below. We have a site with a 2+ second time to first byte. I have KeepAlive enabled. A "KeepAliveTimeOut 1" Do you recommend another TimeOut value?

Thanks for creating this tool

jbr

(04-07-2011 12:36 AM)pmeenan Wrote:  If you can, go enable http keep-alives on your server. It should cut the overall load time in half.

Have you tried W3 Total Cache? At least from feedback I have seen it generally works better than Super Cache (and lets you do more advanced optimizations like combine style sheets and js, etc).

-Pat
Find all posts by this user
Quote this message in a reply
10-03-2018, 07:17 AM
Post: #14
RE: How to improve Time To First Byte?
   

Can you give some insight regarding the very slow "First Byte" time below?
Typical .html sites and .php sites are typically under 500 ms for first byte on the same server. But database backend sites have this issue.

See attached screenshot ...

(10-03-2018 05:40 AM)jbr Wrote:  Pat

Regarding your message below. We have a site with a 2+ second time to first byte. I have KeepAlive enabled. A "KeepAliveTimeOut 1" Do you recommend another TimeOut value?

Thanks for creating this tool

jbr

(04-07-2011 12:36 AM)pmeenan Wrote:  If you can, go enable http keep-alives on your server. It should cut the overall load time in half.

Have you tried W3 Total Cache? At least from feedback I have seen it generally works better than Super Cache (and lets you do more advanced optimizations like combine style sheets and js, etc).

-Pat
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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