跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • LibreSpeed测速是多线程吗?
未分類
9 4 月 2020

LibreSpeed测速是多线程吗?

jekyll 大佬有话说 :

LibreSpeed测速是多线程吗?

测速都是30Mb以上,但浏览器里下载服务器上的文件只有几百KB啊。。。

gmm 大佬有话说 :

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.

gmm 大佬有话说 :

gmm 大佬有话说 : 2020-4-7 17:03
speed test is for testing the bandwidth of your server which usually would use the full capacity of…

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

jekyll 大佬有话说 :

gmm 大佬有话说 : 2020-4-7 17:06
测速都会找网络最近的服务器因为要尽量跑满带宽, 而浏览器下载不一定跟你的服务器网络最近. …

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

gmm 大佬有话说 :

jekyll 大佬有话说 : 2020-4-7 17:26
感谢回复,不过我们说的是一个东西吗?
我说的是LibreSpeed

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

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

// 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<$chunks;$i++){
    echo $data;
    flush();
}

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

reizhi 大佬有话说 :

是的,打开F12看network就知道了

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具