内网内使用https 和 使用http 建立连接的速度对比

文字版

使用https

httpstat https://10.24.101.14/cwbase/web/Login.aspx --insecure
Connected to 10.24.101.14:443 from 10.24.101.161:59174

HTTP/1.1 200 OK
Server: nginx/1.15.3
Date: Mon, 24 Sep 2018 01:03:46 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 2580
Connection: keep-alive
Cache-Control: private
X-AspNet-Version: 4.0.30319
Set-Cookie: GSPWebLanguageKey=zh-CN; expires=Mon, 01-Oct-2018 01:04:46 GMT; path=/cwbase
X-Powered-By: ASP.NET
Access-Control-Allow-Credentials: true

Body stored in: /tmp/tmpU9ECzf

  DNS Lookup   TCP Connection   TLS Handshake   Server Processing   Content Transfer
[     0ms    |       1ms      |     63ms      |       18ms        |        0ms       ]
             |                |               |                   |                  |
    namelookup:0ms            |               |                   |                  |
                        connect:1ms           |                   |                  |
                                    pretransfer:64ms              |                  |
                                                      starttransfer:82ms             |
                                                                                 total:82ms   

不使用https

 httpstat http://10.24.13.6/cwbase/web/Login.aspx 
Connected to 10.24.13.6:80 from 10.24.101.161:38612

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 2348
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
Set-Cookie: GSPWebLanguageKey=zh-CN; expires=Mon, 01-Oct-2018 00:46:17 GMT; path=/cwbase
X-Powered-By: ASP.NET
Date: Mon, 24 Sep 2018 00:46:17 GMT

Body stored in: /tmp/tmpjlRNcK

  DNS Lookup   TCP Connection   Server Processing   Content Transfer
[     0ms    |       1ms      |        2ms        |        0ms       ]
             |                |                   |                  |
    namelookup:0ms            |                   |                  |
                        connect:1ms               |                  |
                                      starttransfer:3ms              |
                                                                 total:3ms    

 反向代理 代理 http 之后的 速度为:

httpstat http://10.24.101.14:81/cwbase/web/Login.aspx 
^[[AConnected to 10.24.101.14:81 from 10.24.101.161:39368

HTTP/1.1 200 OK
Server: nginx/1.15.3
Date: Mon, 24 Sep 2018 01:17:50 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 2348
Connection: keep-alive
Cache-Control: private
X-AspNet-Version: 4.0.30319
Set-Cookie: GSPWebLanguageKey=zh-CN; expires=Mon, 01-Oct-2018 01:00:19 GMT; path=/cwbase
X-Powered-By: ASP.NET
Access-Control-Allow-Credentials: true

Body stored in: /tmp/tmp6Jtp3b

  DNS Lookup   TCP Connection   Server Processing   Content Transfer
[     0ms    |       1ms      |        4ms        |        0ms       ]
             |                |                   |                  |
    namelookup:0ms            |                   |                  |
                        connect:1ms               |                  |
                                      starttransfer:5ms              |
                                                                 total:5ms    
原文地址:https://www.cnblogs.com/jinanxiaolaohu/p/9694763.html