{"id":530249,"date":"2021-08-29T22:46:12","date_gmt":"2021-08-29T14:46:12","guid":{"rendered":"http:\/\/4563.org\/?p=530249"},"modified":"2021-08-29T22:46:12","modified_gmt":"2021-08-29T14:46:12","slug":"bench-im-%e6%b5%8b%e9%80%9f%e8%84%9a%e6%9c%ac%e5%a4%a7%e6%9b%b4%e6%96%b0%ef%bc%8c%e5%a2%9e%e5%8a%a0%e5%8d%95%e7%ba%bf%e7%a8%8b%e6%b5%8b%e9%80%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=530249","title":{"rendered":"Bench.im \u6d4b\u901f\u811a\u672c\u5927\u66f4\u65b0\uff0c\u589e\u52a0\u5355\u7ebf\u7a0b\u6d4b\u901f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u65e0\u795e\u901a<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>Bench.im \u6d4b\u901f\u811a\u672c\u5927\u66f4\u65b0\uff0c\u589e\u52a0\u5355\u7ebf\u7a0b\u6d4b\u901f<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u65e0\u795e\u901a \u4e8e 2021-8-29 20:33 \u7f16\u8f91 <\/p>\n<p> \u4e4b\u524d\u5199\u7684\u6d4b\u901f\u811a\u672c\u57fa\u4e8e Speedtest.net \u5b98\u65b9\u7684 cli \u5de5\u5177\uff0c\u7528\u4e86\u4e00\u6bb5\u65f6\u95f4\u5c5e\u5b9e\u4e0d\u7a33\u5b9a\u3002\u56e0\u6b64\u6b64\u6b21\u66f4\u65b0\u6700\u4e3b\u8981\u7684\u5de5\u4f5c\u5c31\u662f\u5207\u6362\u5230\u4e86sivel \/ speedtest-cli \uff0c\u8fd9\u4e2a\u662f\u7b2c\u4e09\u65b9\u5199\u7684\u7eaf python \u5f00\u6e90\u5bf9 Speedtest.net \u670d\u52a1\u5668\u6d4b\u901f\u7684\u811a\u672c\u3002<\/p>\n<p>  \u4f7f\u7528\u65b9\u6cd5<\/p>\n<p>  1. \u4e0b\u8f7d\uff1a<\/p>\n<p>  wget https:\/\/bench.im\/bench.py -O bench<\/p>\n<p>  2. \u6267\u884c\uff1a<\/p>\n<p>  python3 bench<\/p>\n<p>  \u5185\u7f6e\u4e86 go, cn, us, ru, eu, se, me, contabo, ovhcloud \u8fd9\u51e0\u4e2a\u6d4b\u901f\u670d\u52a1\u5668\u5217\u8868\uff0c\u6bd4\u5982\u4f60\u53ef\u4ee5\u7528\uff1a<\/p>\n<p>  python3 bench contabo<\/p>\n<p>  \u6d4b\u8bd5\u8fde\u63a5\u5230 contabo \u7684\u6240\u6709\u533a\u57df\u901f\u5ea6\uff0c\u6ce8\u610f\u6bcf\u4e2a\u6d4b\u901f\u70b9\u9700\u8981\u4e0d\u5230\u534a\u5206\u949f\u7684\u65f6\u95f4\uff0c\u4e00\u822c\u5217\u8868\u4e0d\u8d85\u8fc7 20 \u4e2a\u6d4b\u901f\u70b9\u3002<\/p>\n<p>  \u53e6\u5916\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u670d\u52a1\u5668\u5217\u8868\uff1a<\/p>\n<p>  python3 bench -u bench.im\/r\/clouvider<\/p>\n<p>  \u53ea\u8981\u8fd4\u56de\u7684 JSON \u683c\u5f0f\u7684\u670d\u52a1\u5668\u5217\u8868\u5c31\u884c\u4e86\uff0c\u8be6\u7ec6\u683c\u5f0f\u770b bench.im\/r\/clouvider<\/p>\n<p>  \u65b0\u66f4\u65b0\u7684\uff1a<\/p>\n<p>  \u4ee5\u4e0a\u662f\u524d\u4e00\u4e2a\u7248\u672c\u7684\u4f7f\u7528\u8bf4\u660e\uff0c\u65b0\u811a\u672c\u5b8c\u5168\u7ee7\u627f\u4e86\u7684\u540c\u65f6\u589e\u52a0\u4e86\u4ee5\u4e0b\u529f\u80fd\u3002<\/p>\n<p>  1. \u5355\u7ebf\u7a0b\u6d4b\u901f\uff1a<\/p>\n<p>  python3 bench cn -t 1<\/p>\n<p>  2. \u6307\u5b9a\u670d\u52a1\u5668 id \u6d4b\u901f\uff1a<\/p>\n<p>  python3 bench -i 35154<\/p>\n<p>  3. \u6307\u5b9a\u670d\u52a1\u5668 id + \u5355\u7ebf\u7a0b\u6d4b\u901f\uff1a<\/p>\n<p>  python3 bench -i 35154 -t 1<\/p>\n<p>  \u670d\u52a1\u5668 id<\/p>\n<p>  \u95ee\u9898\u6765\u4e86\uff0c\u670d\u52a1\u5668 id \u600e\u4e48\u627e\uff1fbench.im\/data.html \u3002<\/p>\n<p>  \u5f53\u7136\u4e0d\u600e\u4e48\u5168\uff0c\u53ea\u6709 1W \u591a\u7684\u670d\u52a1\u5668\uff0c\u4e0d\u8fc7\u4e5f\u57fa\u672c\u591f\u7528\u3002\u8fdb\u53bb\u540e\u5728\u6700\u5de6\u4fa7\u7684\u9009\u9879\u4e2d\u52fe\u9009\uff0c\u5c31\u80fd\u591f\u81ea\u52a8\u590d\u5236\u670d\u52a1\u5668 id \u5230\u526a\u8d34\u677f\u3002<\/p>\n<p>  \u6bd4\u5982\u52fe\u9009\u4e86\u4e09\u4e2a\uff0c\u526a\u8d34\u677f\u4e2d\u5185\u5bb9\u5c31\u4f1a\u662f\uff1a<\/p>\n<p>  123 321 132<\/p>\n<p>  \u6d4b\u901f\u811a\u672c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u63a5\u6536\u591a\u4e2a\u670d\u52a1\u5668 id\uff1a<\/p>\n<p>  python3 bench -i 123 321 132<\/p>\n<p>  \u4f7f\u7528\u6548\u679c<\/p>\n<p>  https:\/\/bench.im\/test.png<\/p>\n<p>  \u5907\u6ce8<\/p>\n<p>  1. \u7531\u4e8e\u6d4b\u901f\u811a\u672c\u81ea\u8eab\u539f\u56e0\u52a0\u4e0a Speedtest \u670d\u52a1\u7aef\u7684\u4e00\u4e9b\u9650\u5236\uff0c\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u6d4b\u91cf\u5f97\u5230\u7684\u901f\u5ea6\u4f1a\u6bd4\u5b98\u65b9\u7684\u4f4e\u4e00\u4e9b\u3002<\/p>\n<p>  2. \u5ef6\u8fdf\uff08Ping\uff09\u6d4b\u8bd5\u7ea6\u7b49\u4e8e TCP Ping\uff0c\u56e0\u6b64\u4f1a\u6bd4\u5b98\u65b9\u7684\u9ad8\u4e00\u4e9b\u3002<\/p>\n<p>  3. \u5355\u7ebf\u7a0b\u6d4b\u901f\u9002\u5408\u6a21\u62df\u7f51\u9875\u6d4f\u89c8\u901f\u5ea6\uff0c\u5bf9\u6a21\u62df\u5927\u6587\u4ef6\u4e0b\u8f7d\u53ef\u80fd\u8bef\u5dee\u8f83\u9ad8\u3002<\/p>\n<p>  4. \u6d4b\u901f\u7ebf\u7a0b\u6700\u9ad8\u4e0d\u8981\u8d85\u8fc7 32\u3002  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>ZengHu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u5e16\uff0c\u7ed1\u5b9a\u3002\u652f\u6301\u6280\u672f\u5927\u4f6c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>IT\u72d7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u652f\u6301\u6280\u672f\u8d34\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e09\u4e0d<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u4f6c\u725b\u903c\u4e86\uff0c\u6478\u6478\u5927<\/p>\n<p>  \/**<br \/>   * \u4e0d\u5fd8\u521d\u5fc3\uff0c\u52aa\u529b\u524d\u884c&nbsp; &nbsp; &#8212;&#8212;MJJ\u53cb\u60c5\u4ef7\u51fa1024\u9080\u8bf7\u7801\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u83dc\u5355<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u4f6c\u5c31\u662f\u725b\u903c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>iiii.im<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u8fd8\u662f\u6bd4\u8f83\u559c\u6b22\u79cb\u6c34\u9038\u51b0\u5927\u4f6c\u7684bench.sh\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>ggeeii<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5355\u8bcd\u77e9\u9635\u7528\u5565\u751f\u6210\u7684\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>zponds<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tPython\u5199\u7684\u8fd9\u4e2a\u5728\u5927\u5e26\u5bbd\u60c5\u51b5\u4e0b\u4e0d\u592a\u884c\u7684\uff0c\u901f\u5ea6\u4f1a\u5f88\u6162<br \/>  \u4f60\u627e\u4e2a10G\u53e3\u7684\u8bd5\u8bd5\u5c31\u77e5\u9053\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u65e0\u795e\u901a<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tggeeii \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-8-29 21:13<br \/>  \u5355\u8bcd\u77e9\u9635\u7528\u5565\u751f\u6210\u7684\uff1f<\/p>\n<p> \u5355\u8bcd\u77e9\u9635\uff1f\u4f60\u6307\u5565\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u65e0\u795e\u901a<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tzponds \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-8-29 21:18<br \/>  Python\u5199\u7684\u8fd9\u4e2a\u5728\u5927\u5e26\u5bbd\u60c5\u51b5\u4e0b\u4e0d\u592a\u884c\u7684\uff0c\u901f\u5ea6\u4f1a\u5f88\u6162<br \/>  \u4f60\u627e\u4e2a10G\u53e3\u7684\u8bd5\u8bd5\u5c31\u77e5\u9053\u4e86 &#8230;<\/p>\n<p> 10G\u53e3\u8fd8\u771f\u6ca1\u8bd5\u8fc7\uff0c\u4e0d\u8fc7\u76ee\u524d\u8bd5\u8fc7\u80fd\u8dd1\u5343\u5146\uff0c\u5df2\u7ecf\u57fa\u672c\u591f\u7528\u3002<\/p>\n<p>  \u771f\u4e0d\u591f\u4e5f\u53ef\u4ee5\u7528\u5b98\u65b9\u7684 cli \u5de5\u5177\u914d\u5408\u670d\u52a1\u5668 id \u5217\u8868\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e0\u795e\u901a \u5927\u4f6c\u6709\u8bdd\u8bf4 : Bench&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\/530249"}],"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=530249"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/530249\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=530249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=530249"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=530249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}