Jump to content

HTTP/3 QUIC 與 HTTP/2 速度比較


Jack

Recommended Posts

-----------------------------------
HTTP/3 QUIC 與 HTTP/2 速度比較
-----------------------------------

目前,論壇運行HTTP/3 QUIC

可以在這兩個測試網站,做測試

HTTP/3 Check
https://http3check.net

HTTP/3 QUIC 在线测试
https://http3.wcode.net

01.png

 

 

02.png

 

 

----------------
HTTP/3 QUIC
----------------

在瀏覽器,瀏覽論壇首頁,瀏覽器按F12,看看速度是 xx ms

測了幾次,大約 539ms
底下是寫 載入:773ms

03.h3.png

 

 

 

 


--------------------------
將論壇改為運行HTTP/2
--------------------------

修改 域名.com.conf
vi /etc/nginx/sites-available/域名.com.conf

尋找
server {
    listen 443 ssl;
    listen [::]:443 ssl;
    listen 443 quic reuseport;
    listen [::]:443 quic reuseport;

然後,註解掉 底下那兩行 443 quic

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    # listen 443 quic reuseport;
    # listen [::]:443 quic reuseport;

 

ESC儲存並離開
:wq

 


重新加载Nginx
nginx -t

nginx -s reload

 

 


再來測試論壇是否沒有運行HTTP/3

可以在這兩個測試網站,做測試

HTTP/3 Check
https://http3check.net

HTTP/3 QUIC 在线测试
https://http3.wcode.net

04.h2.png

 

 

05.h2.png

 

 

在瀏覽器,瀏覽論壇首頁,瀏覽器按F12,看看速度是 xx ms
測了幾次,大約 528ms
底下是寫 載入:778ms

06.h2.png

 

 

結論:速度差距不大

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...