V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
alect
V2EX  ›  问与答

http 与 https 在速度上怎么差别这么大?

  •  
  •   alect · 2018-10-21 10:39:28 +08:00 · 3866 次点击
    这是一个创建于 1985 天前的主题,其中的信息可能已经有所发展或是发生改变。
    http://www.hexieshe.cn/speedtest/
    https://www.hexieshe.cn/speedtest/

    http 我这里测试是 60Mbps,https 只有 20Mbps 不到,https 的损耗有这么大?
    13 条回复    2018-11-15 14:00:54 +08:00
    KeatingSmith
        1
    KeatingSmith  
       2018-10-21 11:04:12 +08:00 via iPhone   ❤️ 1
    HTTPS 中的 S 是需要耗时的,HTTPS + HHTP2.0 试试呢。
    azh7138m
        2
    azh7138m  
       2018-10-21 11:44:32 +08:00 via Android
    ssl 要运算的呀,非常吃 U,还会有硬件,ssl 加速卡,这种东西存在
    xzpjerry731
        3
    xzpjerry731  
       2018-10-21 11:49:23 +08:00
    我这儿差不多耶
    PulpFunction
        4
    PulpFunction  
       2018-10-21 11:57:54 +08:00
    上传下载大概都是 5M
    yanaraika
        5
    yanaraika  
       2018-10-21 12:12:48 +08:00
    才 60Mbps 远远达不到 CPU 瓶颈,我这边都跑到 200Mbps 了
    katsusan
        6
    katsusan  
       2018-10-21 12:48:20 +08:00
    我这里更真实,下行 http 测的 300M,https 只有 5M
    kernel
        7
    kernel  
       2018-10-21 13:03:11 +08:00
    我这边 https 下行也只有 5M,http 能跑满 40M。
    即使 ssl 要有计算也不可能只有 5M 吧
    kernel
        8
    kernel  
       2018-10-21 13:08:35 +08:00
    这 TM 是这个测速程序的问题吧?
    我把网页里的 https://www.hexieshe.cn/speedtest/garbage.php?r=0.09854398956990928&ckSize=100
    直接在国外服务器上测了下,http 和 https 速度是一样的,都能跑满
    liuminghao233
        9
    liuminghao233  
       2018-10-21 13:57:44 +08:00 via iPhone   ❤️ 3
    @azh7138m
    老哥 ssl 握手之后都是对称加密了
    whatsmyip
        11
    whatsmyip  
       2018-10-22 09:33:34 +08:00   ❤️ 1
    不考虑特色网的干扰?
    alect
        12
    alect  
    OP
       2018-10-22 10:05:50 +08:00
    @whatsmyip 想来想去也只能是干扰,或者是 qos 限制了
    Williamp
        13
    Williamp  
       2018-11-15 14:00:54 +08:00
    To increase the speed of https connection you will have to adopt HTTP/2 on your site https://www.v2ex.com/t/334548#r_4000479
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   942 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 20:50 · PVG 04:50 · LAX 13:50 · JFK 16:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.