首页 > Web开发 > 详细

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

时间:2018-09-24 10:46:10      阅读:272      评论:0      收藏:0      [点我收藏+]

技术分享图片

文字版

使用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 和 使用http 建立连接的速度对比

原文:https://www.cnblogs.com/jinanxiaolaohu/p/9694763.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!