设为首页收藏本站

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย Français

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 43|回复: 5

LibreSpeed测速是多线程吗?

[复制链接]

60

主题

509

回帖

1274

积分

金牌会员

积分
1274
发表于 2020-4-7 16:57:41 | 显示全部楼层 |阅读模式
测速都是30Mb以上,但浏览器里下载服务器上的文件只有几百KB啊。。。
回复

使用道具 举报

3

主题

22

回帖

63

积分

注册会员

积分
63
发表于 2020-4-7 17:03:56 | 显示全部楼层
speed test is for testing the bandwidth of your server which usually would use the full capacity of speed testing server(that's what a speed testing server is for), while the connect between your browser and your server would use a portion of the bandwidth depending on the connection iteself.
回复

使用道具 举报

3

主题

22

回帖

63

积分

注册会员

积分
63
发表于 2020-4-7 17:06:53 | 显示全部楼层

gmm 发表于 2020-4-7 17:03

speed test is for testing the bandwidth of your server which usually would use the full capacity of  ...

测速都会找网络最近的服务器因为要尽量跑满带宽, 而浏览器下载不一定跟你的服务器网络最近.
回复

使用道具 举报

60

主题

509

回帖

1274

积分

金牌会员

积分
1274
 楼主| 发表于 2020-4-7 17:03:00 | 显示全部楼层

gmm 发表于 2020-4-7 17:06

测速都会找网络最近的服务器因为要尽量跑满带宽, 而浏览器下载不一定跟你的服务器网络最近. ...

感谢回复,不过我们说的是一个东西吗?
我说的是LibreSpeed
回复

使用道具 举报

3

主题

22

回帖

63

积分

注册会员

积分
63
发表于 2020-4-7 17:26:29 | 显示全部楼层

jekyll 发表于 2020-4-7 17:26

感谢回复,不过我们说的是一个东西吗?
我说的是LibreSpeed

这个真不好说了, 同一个站点, 用不同的 php 文件管理器, 下载速度差距100倍

看了下代码 https://github.com/librespeed/speedtest/blob/master/backend/garbage.php

[ol]
  • // Generate data
  • $data=openssl_random_pseudo_bytes(1048576);
  • // Deliver chunks of 1048576 bytes
  • $chunks=isset($_GET['ckSize']) ? intval($_GET['ckSize']) : 4;
  • if(empty($chunks)){$chunks = 4;}
  • if($chunks>1024){$chunks = 1024;}
  • for($i=0;$i复制代码

    你可以调整一下这个 chunk 值 来试试
  • 回复

    使用道具 举报

    9

    主题

    1646

    回帖

    3511

    积分

    论坛元老

    积分
    3511
    发表于 2020-4-7 17:06:00 | 显示全部楼层
    是的,打开F12看network就知道了
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2026-2-14 01:15 , Processed in 0.017302 second(s), 4 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2025 Discuz! Team.

    快速回复 返回顶部 返回列表