by Devin Yang
(This article was automatically translated.)

Published - 5 years ago ( Updated - 5 years ago )

About TTFB:

TTFB(Time To First Byte): The browser is waiting for the first byte of the response. TTFB stands for time to first byte.
This time includes 1 round trip delay and the time for the server to prepare a response.

Key points:

Okay, maybe everyone will wonder that the TTFB time of your host is very long, which means that the host may perform some calculations before the screen can be displayed.
For example, a large number of database queries, or the network is too slow, and other factors, but how to judge?
We can compare whether the HTML static page is very different from the simple PHP dynamic page, and perhaps find out the problem of slow TTFB response.
For example, if the TTFB is 16ms on a static page but when it comes to a dynamic page in PHP, it runs 3xxms without any calculation.
Such a problem may be in the setting of PHP.

You can see if any plug-in is affected, such as Xdebug plug-in with PHP enabled,
At this time, the TTFB will not be 13.36ms below, but may become 2xxms.

So if it is the Porduction version, and Xdeubg is used in php.ini, remember to disable the Xdebug function.

Tags:

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


dlaravel

How to set the external network IP to the Project on D-Laravel?

This video introduces how we assign Public Ip (public IP) to a specific Project in the D-Laravel environment. Whether it is the setting of the external production environment or the demo of your own project on the intranet, you can refer to the setting method of this video. In the video, although I used the external network IP of PPPoE dial-up to illustrate, we can also use the local network IP on our own computer if we change it. In this way, colleagues can connect to our D-Laravel Project.

linux,docker

How to execute X client and X Window in Container (docker gui)

Today I will talk to you about X, not iPhone X, nor X-Men, but X Window System, He is the main graphical interface display component of the current Linux system. Since it is very easy to expand and modularize, it has been used since it was established in 1986. The X Window system adopts the Client/Server architecture, which splits the application program and the display into two. The application program of X Windows is usually called X Client, and the display is the well-known X Server. The X client communicates with the X server through the X protocol (X protocol), which is an asynchronous network communication protocol.

docker

Command to remove all docker containers and docker images

Sometimes I tried a bunch of containers or images in my own environment, how to remove all images and containers in the system? These instructions are provided for your reference..