alect
V2EX  ›  问与答

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

  •  
  •   alect · Oct 21, 2018 · 5004 views
    This topic created in 2941 days ago, the information mentioned may be changed or developed.
    http://www.hexieshe.cn/speedtest/
    https://www.hexieshe.cn/speedtest/

    http 我这里测试是 60Mbps,https 只有 20Mbps 不到,https 的损耗有这么大?
    13 replies  •  2018-11-15 14:00:54 +08:00
    KeatingSmith
    KeatingSmith
    Oct 21, 2018 via iPhone❤️1
    1
    HTTPS 中的 S 是需要耗时的,HTTPS + HHTP2.0 试试呢。
    azh7138m
    azh7138m
    Oct 21, 2018 via Android
    2
    ssl 要运算的呀,非常吃 U,还会有硬件,ssl 加速卡,这种东西存在
    xzpjerry731
    xzpjerry731
    Oct 21, 2018
    3
    我这儿差不多耶
    PulpFunction
    PulpFunction
    Oct 21, 2018
    4
    上传下载大概都是 5M
    yanaraika
    yanaraika
    Oct 21, 2018
    5
    才 60Mbps 远远达不到 CPU 瓶颈,我这边都跑到 200Mbps 了
    katsusan
    katsusan
    Oct 21, 2018
    6
    我这里更真实,下行 http 测的 300M,https 只有 5M
    kernel
    kernel
    Oct 21, 2018
    7
    我这边 https 下行也只有 5M,http 能跑满 40M。
    即使 ssl 要有计算也不可能只有 5M 吧
    kernel
    kernel
    Oct 21, 2018
    8
    这 TM 是这个测速程序的问题吧?
    我把网页里的 https://www.hexieshe.cn/speedtest/garbage.php?r=0.09854398956990928&ckSize=100
    直接在国外服务器上测了下,http 和 https 速度是一样的,都能跑满
    liuminghao233
    liuminghao233
    Oct 21, 2018 via iPhone❤️3
    9
    @azh7138m
    老哥 ssl 握手之后都是对称加密了
    whatsmyip
    whatsmyip
    Oct 22, 2018❤️1
    11
    不考虑特色网的干扰?
    alect
    alect
    OP
    Oct 22, 2018
    12
    @whatsmyip 想来想去也只能是干扰,或者是 qos 限制了
    Williamp
    Williamp
    Nov 15, 2018
    13
    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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4171 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 06:40 · PVG 14:40 · LAX 22:40 · JFK 01:40
    ♥ Do have faith in what you're doing.