全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 1290|回复: 5
打印 上一主题 下一主题

[Windows VPS] LibreSpeed测速是多线程吗?

[复制链接]
跳转到指定楼层
1#
发表于 2020-4-7 16:57:41 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
测速都是30Mb以上,但浏览器里下载服务器上的文件只有几百KB啊。。。
6#
发表于 2020-4-7 17:56:29 | 只看该作者
是的,打开F12看network就知道了
5#
发表于 2020-4-7 17:51:09 | 只看该作者
jekyll 发表于 2020-4-7 17:26
感谢回复,不过我们说的是一个东西吗?
我说的是LibreSpeed

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

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

  1. // Generate data
  2. $data=openssl_random_pseudo_bytes(1048576);
  3. // Deliver chunks of 1048576 bytes
  4. $chunks=isset($_GET['ckSize']) ? intval($_GET['ckSize']) : 4;
  5. if(empty($chunks)){$chunks = 4;}
  6. if($chunks>1024){$chunks = 1024;}
  7. for($i=0;$i<$chunks;$i++){
  8.     echo $data;
  9.     flush();
  10. }
复制代码


你可以调整一下这个 chunk 值 来试试
4#
 楼主| 发表于 2020-4-7 17:26:29 | 只看该作者
gmm 发表于 2020-4-7 17:06
测速都会找网络最近的服务器因为要尽量跑满带宽, 而浏览器下载不一定跟你的服务器网络最近. ...

感谢回复,不过我们说的是一个东西吗?
我说的是LibreSpeed
3#
发表于 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  ...

测速都会找网络最近的服务器因为要尽量跑满带宽, 而浏览器下载不一定跟你的服务器网络最近.
2#
发表于 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.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-15 15:19 , Processed in 0.060079 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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