ShuDudu's Home was started in 2011, but the web data is lost, so now begin again, I would like to make some friends, I hope you like ShuDudu's home.
Current position: ShuDudu > Net Web >

Ubuntu/CentOS+HTTP/HTTP2 speed test

Saturday on February 8th, 2020Net Web

A few days ago my VPS are transferred to the Ubuntu system, as a whole really has been significantly improved, the response of each single page are to speed up a little. Has not done testing, test it yesterday, a single page does have a difference. This whole, referring to the overall stability, before using CentOS when there is no overall stable now, before the performance of a single page to load, sometimes delayed more than 0.5 seconds to 1 second. After using Ubuntu system, the chances of this delay is reduced a lot.

In this test, we reinstall the system several times, with the same host, same page test, Ubuntu CentOS faster than a single page of a single page. In Ubuntu + Apache, http and https on the test data, the speed exactly the same, it is also more difficult to actually access see the difference. But I still feel http should be faster, after all, there are a large number of load factors hash encryption, SSL hash algorithm is too complex.

The test, page load pictures are http, so the test result does not reflect the advantages of multiplexing http2. At this stage, I still prefer to use http, https future may one day find easy to use, will turn https. Because the site more time, https maintenance, installation is really troublesome.

In terms of speed, load, and http2 http1.1 higher efficiency which, really hard to say. Because current http2 and SSL are bound together, assuming that the original browser developers did not http2 and SSL binding, but also http address without any changes, to upgrade directly to the transmission http2 http1.1; or to an SSL hash algorithm to simplify it, then there will be some performance improvement.

Current SSL is certainly not the optimal mode, because of the complexity of installation, module associated with complex, overly complicated hash algorithm. The preferred method is to develop in the future if someone http3, re-optimization of current https, simplify hash algorithm, but also completely without third-party security certification. Appears difficult to imagine what the significance of third-party security certification SSL Yes.

Test page:

Temporary mirror sites https:

(Attached:. Gtmetrix scoring only for entertainment, there is no reference value, because the scoring is dependent on the complete load time of pages, the shorter the time, the higher the score, all the images, CSS, JS files have enumerated, but this site role is comparing the performance to the developer own the same page, page, or after a certain environment changes, the load time does have a significant change.)

The above comparison of 1 page Performance Scores:

PageSpeed ??ScoreYSlow ScoreUbuntu 12 + http page 193?9?entOS 6 + http page 189?9?buntu 14 + http page 193?9?buntu 14 + https page 193?9?Performance Scores 2 page above comparison:

PageSpeed ??ScoreYSlow ScoreUbuntu 12 + http page 298?4?entOS 6 + http page 296?4?buntu 14 + http page 298?4?buntu 14 + https page 298?4?From the data, the same page, http and https no change. But the very good news is, https does not make access slow, do not know how in the case of high concurrency.

2018-12-09 10:16 UPDATE:

In the above tests, ignoring Fully Loaded Time (full load time), just to http and https page 2 of several tests, most of the time loading time is shorter than http https, although PageSpeed ??Score of the exact same score. Do comparison several times again:

Fully Loaded Time 2 page (full load time) Comparison:

http + Ubuntuhttps + Ubuntu 292ms473ms 1st 2nd 3rd 260ms393ms 292ms345ms 379ms414ms 4th 5th 6th 302ms347ms 331ms426ms

Copyright Protection: ShuDudu from the original article, reproduced Please keep the link: https://www.shududu.com/netweb/Ubuntu-CentOS-HTTP-HTTP2-speed-test.htm