A great way to measure TTFB is to use Google Page Speed Tools, Pingdom, or GTMetrix. It will provide you with the server’s TTFB and several other valuable metrics.
One important thing to note when talking about TTFB is that it’s usually affected most by the time it takes to compress your website’s content before it’s sent off to the web browser. And compressing your website content can often lower the website’s overall load time. CloudFlare writes a great article that explains this in more detail. It explains that although the TTFB might be a bit higher because of compression, the overall load time is lowered by doing this, making the TTFB metric less meaningful.
Before proceeding, it’s a good idea to find out how fast the server can respond. A simple way to test this would be to create a simple test HTML. Here are the steps you need to take to create a simple test file:
In the New File dialogue box that appears, input any file name (e.g. “test-file.html”).
Click Create New File.
Right-click on the new file and click Edit, then click Edit in the dialogue box that appears.
Input some introductory text into the file (e.g. “Hello, world!”), then click Save Changes.
Once you have done that, you can use Google Page Speed Tools, Pingdom, or GTMetrix to test the website’s load time and TTFB. You’ll need to provide your website URL and the file’s name, e.g., “https://my-domain-name-here.com/test-file.html”. The TTFB should be extremely low. If it’s more than 200 milliseconds, feel free to reach out to our technical support team, as it shouldn’t be that high for a simple test file. If you run your actual website through the same test and the TTFB is hundreds of milliseconds or even several seconds higher, continue reading.
A few things can slow this down, such as network latency and DNS lookup times, as well as the distance between the user and the server. Unfortunately, we don’t have much control over these factors, except for the server’s location. VentraIP’s servers are within Australia, so they’re already nice and close.
Finally, the response arrives at the end user’s web browser.
Again, this is something we don’t have a lot of control over, as it can be affected by the end user’s connection speed and physical location. Even if their connection speed slows things down, it will still be considered when TTFB is calculated. The key to lowering TTFB is to work with what you do have control over—the website itself. An excellent place to start would be to leverage LiteSpeed Cache to reduce your TTFB and the overall load time of your website. Our testing shows that this can work wonders for most websites, speeding them up significantly.
Lowering the number of plugins and 3rd party scripts used by your website—some poorly optimized plugins and themes can cause your website to slow down quite a bit.
Lowering the amount of content that needs to be sent back to the web browser—website content will be compressed before it’s sent off to the web browser. The more content requiring compression, the higher your TTFB will be.
Optimizing database lookups—the time it takes for your website to grab content from its database can cause the website’s overall load time. You may need to speak to a professional web developer about making these kinds of optimizations.