{"id":54490,"date":"2020-04-09T07:43:28","date_gmt":"2020-04-08T23:43:28","guid":{"rendered":"http:\/\/4563.org\/?p=54490"},"modified":"2020-04-09T07:43:28","modified_gmt":"2020-04-08T23:43:28","slug":"librespeed%e6%b5%8b%e9%80%9f%e6%98%af%e5%a4%9a%e7%ba%bf%e7%a8%8b%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=54490","title":{"rendered":"LibreSpeed\u6d4b\u901f\u662f\u591a\u7ebf\u7a0b\u5417\uff1f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>jekyll<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>LibreSpeed\u6d4b\u901f\u662f\u591a\u7ebf\u7a0b\u5417\uff1f<\/h3>\n<p>  \t\t\u6d4b\u901f\u90fd\u662f30Mb\u4ee5\u4e0a\uff0c\u4f46\u6d4f\u89c8\u5668\u91cc\u4e0b\u8f7d\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\u53ea\u6709\u51e0\u767eKB\u554a\u3002\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>gmm<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tspeed test is for testing the bandwidth of your server which usually would use the full capacity of speed testing server(that&#8217;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.\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>gmm<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tgmm \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-7 17:03<br \/>  speed test is for testing the bandwidth of your server which usually would use the full capacity of&#8230;<\/p>\n<p> \u6d4b\u901f\u90fd\u4f1a\u627e\u7f51\u7edc\u6700\u8fd1\u7684\u670d\u52a1\u5668\u56e0\u4e3a\u8981\u5c3d\u91cf\u8dd1\u6ee1\u5e26\u5bbd, \u800c\u6d4f\u89c8\u5668\u4e0b\u8f7d\u4e0d\u4e00\u5b9a\u8ddf\u4f60\u7684\u670d\u52a1\u5668\u7f51\u7edc\u6700\u8fd1.\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>jekyll<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tgmm \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-7 17:06<br \/>  \u6d4b\u901f\u90fd\u4f1a\u627e\u7f51\u7edc\u6700\u8fd1\u7684\u670d\u52a1\u5668\u56e0\u4e3a\u8981\u5c3d\u91cf\u8dd1\u6ee1\u5e26\u5bbd, \u800c\u6d4f\u89c8\u5668\u4e0b\u8f7d\u4e0d\u4e00\u5b9a\u8ddf\u4f60\u7684\u670d\u52a1\u5668\u7f51\u7edc\u6700\u8fd1. &#8230;<\/p>\n<p> \u611f\u8c22\u56de\u590d\uff0c\u4e0d\u8fc7\u6211\u4eec\u8bf4\u7684\u662f\u4e00\u4e2a\u4e1c\u897f\u5417\uff1f<br \/>  \u6211\u8bf4\u7684\u662fLibreSpeed\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>gmm<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tjekyll \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-7 17:26<br \/>  \u611f\u8c22\u56de\u590d\uff0c\u4e0d\u8fc7\u6211\u4eec\u8bf4\u7684\u662f\u4e00\u4e2a\u4e1c\u897f\u5417\uff1f<br \/>  \u6211\u8bf4\u7684\u662fLibreSpeed<\/p>\n<p> \u8fd9\u4e2a\u771f\u4e0d\u597d\u8bf4\u4e86, \u540c\u4e00\u4e2a\u7ad9\u70b9, \u7528\u4e0d\u540c\u7684 php \u6587\u4ef6\u7ba1\u7406\u5668, \u4e0b\u8f7d\u901f\u5ea6\u5dee\u8ddd100\u500d<\/p>\n<p>  \u770b\u4e86\u4e0b\u4ee3\u7801 https:\/\/github.com\/librespeed\/speedtest\/blob\/master\/backend\/garbage.php<\/p>\n<p>  \/\/ Generate data<br \/>  $data=openssl_random_pseudo_bytes(1048576);<br \/>  \/\/ Deliver chunks of 1048576 bytes<br \/>  $chunks=isset($_GET[&#8216;ckSize&#8217;]) ? intval($_GET[&#8216;ckSize&#8217;]) : 4;<br \/>  if(empty($chunks)){$chunks = 4;}<br \/>  if($chunks&gt;1024){$chunks = 1024;}<br \/>  for($i=0;$i&lt;$chunks;$i++){<br \/>  &nbsp; &nbsp; echo $data;<br \/>  &nbsp; &nbsp; flush();<br \/>  }<\/p>\n<p>  \u4f60\u53ef\u4ee5\u8c03\u6574\u4e00\u4e0b\u8fd9\u4e2a chunk \u503c \u6765\u8bd5\u8bd5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>reizhi<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u662f\u7684\uff0c\u6253\u5f00F12\u770bnetwork\u5c31\u77e5\u9053\u4e86\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>jekyll \u5927\u4f6c\u6709\u8bdd\u8bf4 : Li&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/54490"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54490"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/54490\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54490"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}