It is a test of the speed from CDN Edge servers to the multi-locations. It is very important the signal for the real experience of the users.
Let me see how I implement the tests.
- I created two endpoints on the Azure CDN, on Microsoft CDN and Akamai CDN.
- I created a CloudFront distribution on Amazon CloudFront.
- I created a CDN property on BelugaCDN.
All these four CDN settings pointed to a custom origin of one of my sites, which hosted on DigitalOcean.
The file I used for testing is a JPG file, an image file.
The testing tool is provided by KeyCDN performance tool.
I run at least two tests to make sure most of the testing server can get the JPG file from the cache of the Edge server(CDN), not back to the origin server.
Azure CDN: Standard Microsoft Tier
The results are base on the 14 tests from different locations globally. I care about the TTFB much more than others.
What is TTFB
TTFB, which stands for time to first byte, is the amount of time it takes from when a client makes an HTTP request to it receiving its first byte of data from the web server. TTFB is an important aspect of website optimization since the faster the TTFB, the faster the requested resource can start being delivered to the browser.
The time to first byte is made up of three separate components.
- The time needed to send the HTTP request
- The time needed for the server to process the request
- The time needed for the server to send back the first byte of the response to the client
What is a good TTFB?
The time to first byte can vary greatly depending on what sort of content you are serving (static vs dynamic), your server’s configuration, etc. Therefore determining what is a good TTFB number is difficult to answer and is variable based on your situation. However, on average anything with a TTFB under 100 ms is fantastic. Anything between 200-500 ms is standard, between 500 ms – 1 s is less than ideal and anything greater than 1 s should likely be investigated further.
As mentioned, it should be noted that these times are average benchmarks, however do not apply to all websites. Depending on the type of content and complexity of the application it may be completely unavoidable that the TTFB is greater than 1 second
Azure CDN: Standard Akamai Tier
Beluga CDN
AWS CloudFront CDN
How to do the comparison?
I added all results of one test and divided it by 14 to get the average TTFB.
- Azure Microsoft Tier: 106ms
- Azure Akamai Tier: 73.35ms
- AWS CloudFront: 81.42ms
- Beluga : 435ms
So I would still suggest using AWS CloudFront and Azure CDN. Both Microsoft and Akamai are good, but Akamai is better.