{"id":34870,"date":"2020-02-21T10:53:09","date_gmt":"2020-02-21T02:53:09","guid":{"rendered":"http:\/\/4563.org\/?p=34870"},"modified":"2020-02-21T10:53:09","modified_gmt":"2020-02-21T02:53:09","slug":"%e7%8e%b0%e5%9c%a8%e5%8d%95%e6%9c%ba10%e4%b8%87%e5%b9%b6%e5%8f%91%e6%b2%a1%e6%9c%89%e4%bb%bb%e4%bd%95%e9%97%ae%e9%a2%98%e4%ba%86%e3%80%82%e3%80%82%e3%80%82%e5%9c%a8%e6%88%91%e7%9f%a5%e9%81%93swoole","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=34870","title":{"rendered":"\u73b0\u5728\u5355\u673a10\u4e07\u5e76\u53d1\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\u4e86\u3002\u3002\u3002\u5728\u6211\u77e5\u9053swoole\u4e4b&#8230;"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>kaleok<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u73b0\u5728\u5355\u673a10\u4e07\u5e76\u53d1\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\u4e86\u3002\u3002\u3002\u5728\u6211\u77e5\u9053swoole\u4e4b&#8230;<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 kaleok \u4e8e 2020-2-21 10:52 \u7f16\u8f91 <\/p>\n<p> \u4e0d\u8fc7\uff0c\u73b0\u572810\u4e07\u5e76\u53d1\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\u4e86\u3002\u3002\u3002\u5728\u6211\u77e5\u9053swoole\u4e4b\u524d\uff0c\u5b8c\u5168\u4e0d\u6562\u76f8\u4fe1\u7684<br \/>  \u8c37\u6b4c\u4e91\u4e5f\u6ca1\u6709\u60f3\u5230\uff0c\u6211\u9650\u5236\u4f60\u4eeccpu\u9891\u7387\uff0c\u5c31\u662f\u8981\u4f60\u4eec\u82b1\u94b1\u3002\u3002\u4f60\u4eec\u5c45\u7136\u7528swoole\u5c31\u5355\u673a\u591f\u752810\u4e07\u5e76\u53d1\u4e86\u3002\u3002\u6211\u600e\u4e48\u8d5a\u94b1\u554a\u3002\u3002\u3002\u4e25\u5389\u62b5\u5236swoole\u8fd9\u79cd\u4e0d\u8d1f\u8d23\u4efb\u7684\u8bed\u8a00<\/p>\n<p>  \u4e0d\u8fc7\u8981\u771f\u7684\u7528\u5728\u9ad8\u5e76\u53d1\u751f\u4ea7\u73af\u5883\u3002\u3002\u5fc5\u987b\u50cf\u6211\u6628\u5929\u90a3\u6837\u8c03\u8bd5\u670d\u52a1\u5668\u4e00\u6574\u5929\u3002\u3002\u6bd4\u5982\u5185\u6838\u6700\u5927\u8bf7\u6c42\u6570\uff0cip4\u534f\u8bae\u8bf7\u6c42\u65f6\u95f4\u7b49\u7b49\u3002\u7136\u540e\u624d\u5f00\u59cb\u8c03\u6559cpu\u6d88\u8017,\u5185\u5b58\u6d88\u8017\u7b49\u7b49\u3002\u3002<\/p>\n<p>  \u5176\u5b9e\u7b49\u4e8e\u5c31\u662f\u4f60\u4e70\u4e86\u4e00\u8f86\u8dd1\u8f66\u3002\u3002\u4f46\u662f\u4f60\u4e0d\u4f1a\u8c03\u6821\u7684\u8bdd\u4e5f\u662f\u4e2a\u5783\u573e\u800c\u5df2\u3002\u3002\u6bd4\u5982\u6628\u5929\u6211\u8c03\u8bd5\u9519\u8bef\u7684\u65f6\u5019\u4e00\u5927\u7247\u7ea2\u8272\u62a5\u9519\u3002\u3002\u3002\u3002\u4e0d\u8fc7\u6211\u4e0d\u614c\u7684\uff0c\u6162\u6162\u8c03\u8bd5\u5c31\u884c\u4e86<br \/>  Concurrency Level:&nbsp; &nbsp;&nbsp; &nbsp;60000<br \/>  Time taken for tests:&nbsp; &nbsp;76.509 seconds<br \/>  Complete requests:&nbsp; &nbsp;&nbsp; &nbsp;1000000<br \/>  Failed requests:&nbsp; &nbsp;&nbsp; &nbsp;0<br \/>  Keep-Alive requests:&nbsp; &nbsp; 1000000<br \/>  Total transferred:&nbsp; &nbsp;&nbsp; &nbsp;246000000 bytes<br \/>  HTML transferred:&nbsp; &nbsp;&nbsp; &nbsp; 0 bytes<br \/>  Requests per second:&nbsp; &nbsp; 13070.43 [#\/sec] (mean)<br \/>  Time per request:&nbsp; &nbsp;&nbsp; &nbsp; 4590.513  (mean)<br \/>  Time per request:&nbsp; &nbsp;&nbsp; &nbsp; 0.077  (mean, across all concurrent requests)<br \/>  Transfer rate:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 3139.97  received<\/p>\n<p>  Connection Times (ms)<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;minmean[+\/-sd] median&nbsp; &nbsp;max<br \/>  Connect:&nbsp; &nbsp;&nbsp; &nbsp;0142 575.6&nbsp; &nbsp;&nbsp; &nbsp;0&nbsp; &nbsp; 3173<br \/>  Processing:1494 4223 598.9&nbsp; &nbsp;4364&nbsp; &nbsp; 4713<br \/>  Waiting:&nbsp; &nbsp;&nbsp; &nbsp;1 4223 598.9&nbsp; &nbsp;4364&nbsp; &nbsp; 4713<br \/>  Total:&nbsp; &nbsp;&nbsp; &nbsp; 1543 4365 152.8&nbsp; &nbsp;4372&nbsp; &nbsp; 4803<\/p>\n<p>  Percentage of the requests served within a certain time (ms)<br \/>  50%&nbsp; &nbsp;4372<br \/>  66%&nbsp; &nbsp;4422<br \/>  75%&nbsp; &nbsp;4453<br \/>  80%&nbsp; &nbsp;4479<br \/>  90%&nbsp; &nbsp;4523<br \/>  95%&nbsp; &nbsp;4557<br \/>  98%&nbsp; &nbsp;4604<br \/>  99%&nbsp; &nbsp;4649<br \/>   100%&nbsp; &nbsp;4803 (longest request)<\/p>\n<p>  \u771f\u7684\u6ca1\u6709\u4efb\u4f55\u8bed\u8a00\u80fd\u8fbe\u5230\u8fd9\u4e2a\u6c34\u5e73\u4e86<br \/>  nginx\u4e0d\u7b97\uff0cnginx\u53ea\u662f\u670d\u52a1\u5668\u5f15\u64ce\u3002\u53ea\u80fd\u5904\u7406\u9759\u6001\u6587\u4ef6<br \/>  \u52a8\u6001\u8bed\u8a00\uff0c\u771f\u7684swoole\u5b8c\u5168\u98a0\u8986\u4e86\u6240\u6709\u8bed\u8a00\u7684\u5f3a\u52bf<\/p>\n<p>  \u4e0a\u9762\u7684\u6d4b\u8bd5\u7ed3\u679c\u662f\u62a2\u8d2d\u4e1a\u52a1\u903b\u8f91\u914d\u4e0aredis\u5904\u7406\u51fa\u6765\u7684\u7ed3\u679c\uff0c\u4e0d\u662f\u7b80\u5355\u7684echo\u8f93\u51fa\u800c\u5df2\u3002php-fpm\u662f\u6ca1\u529e\u6cd5\u4f7f\u7528redis\u8fde\u63a5\u6c60\u7684\u3002\u5982\u679c\u5355\u4f8b\u8c03\u53d6redis\uff0c\u5355\u673a\u5e76\u53d1\u6700\u5927\u4e5f\u5c313\u4e07\u5de6\u53f3\u3002\u3002\u3002swoole\u914d\u5408\u8fde\u63a5\u6c60\u80fd\u5904\u7406\u8fd9\u4e48\u5feb\uff0c\u771f\u7684\u96be\u4ee5\u60f3\u8c61\u4e86<\/p>\n<p>  ab\u6d4b\u8bd5\u5de5\u5177\u52a0-k\u53c2\u6570\u662f\u4e3a\u4e86tcp\u590d\u7528\u3002\u3002\u8bf7\u6c42\u662f\u53d1\u9001\u51fa\u53bb\u4e86\u7684\u3002\u4f60\u53ef\u4ee5\u60f3\u8c61\uff0c\u5355\u673a\u53d1\u900110\u4e07\u5e76\u53d1\u4e0d\u590d\u7528tcp\u7aef\u53e3\u3002\u80fd\u8fbe\u5230\u8fd9\u4e48\u591a\u8bf7\u6c42\u6570\u5417<\/p>\n<p>  \u90a3\u5c31\u662f\u4f60\u6ca1\u6709\u4e86\u89e3swoole\u624d\u8fd9\u6837\u8bf4\u4e86\u3002\u6211\u4e5f\u662fgo\u7a0b\u5e8f\u5458\u3002\u534f\u7a0b\u5728swoole\u4e5f\u652f\u6301\u4e86\u3002\u6211\u7684\u4e1a\u52a1\u903b\u8f91\u5982\u679c\u4e0d\u7528\u534f\u7a0b\u4e5f\u4e0d\u53ef\u80fd\u5904\u7406\u901f\u5ea6\u8fd9\u4e48\u5feb  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>wangjianjilei<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u98ce\u94c3 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-21 10:32<br \/>  swoole\u662f\u4ec0\u4e48\u8bed\u8a00???<\/p>\n<p> \u5e95\u5c42c\/c\u8279\u3002\u7ed1\u4e86\u4e2aphp\uff0c\u8c03\u7684\u65f6\u5019\u7528\u7684php\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5c3c\u6b27\u4e00\u65b9\u901a\u884c<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u5c3c\u6b27\u4e00\u65b9\u901a\u884c \u4e8e 2020-2-21 10:32 \u7f16\u8f91 <\/p>\n<p> Java\u53ef\u5426\u4e00\u6218\uff0cTG\u5c31\u662fJava\u5199\u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5feb\u96ea\u65f6\u6674<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5176\u5b9e\u6211\u4e5f\u4e0d\u592a\u61c2\uff0c\u4f46\u662f\u542c\u5927\u725b\u8bf4swoole\u5c31\u662f\u4e2a\u73a9\u5177\uff0c\u96be\u4ee5\u5e94\u7528\u4e8e\u771f\u5b9e\u573a\u666f\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kaleok<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u662f8\u6838\u5fc3\uff0c16gb\u5185\u5b58\u3002\u5b9e\u73b0\u7684\u3002\u5185\u5b58\u6d88\u8017\u8fd8\u975e\u5e38\u4f4e\u3002java\u540c\u7b49\u914d\u7f6e\u6bd4\u4e0d\u8d62\u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6797\u54c8\u54c8<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tfastapi\u4e0d\u670d\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kaleok<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5feb\u96ea\u65f6\u6674 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-21 10:29<br \/>  \u5176\u5b9e\u6211\u4e5f\u4e0d\u592a\u61c2\uff0c\u4f46\u662f\u542c\u5927\u725b\u8bf4swoole\u5c31\u662f\u4e2a\u73a9\u5177\uff0c\u96be\u4ee5\u5e94\u7528\u4e8e\u771f\u5b9e\u573a\u666f\u3002<\/p>\n<p> \u4f60\u8981\u77e5\u9053\u4e3a\u4ec0\u4e48\u8981\u8fd9\u6837\u7684\u9ad8\u5e76\u53d1\uff0c\u4e0d\u662f\u592a\u706b\u7206\u7684\u5546\u4e1a\u5e94\u7528\u6839\u672c\u7528\u4e0d\u5230\u3002\u3002\u3002\u8c01\u4f1a\u62ff\u4e2a\u73a9\u5177\u6765\u751f\u4ea7\u73af\u5883\u5f00\u73a9\u7b11\u5462\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u98ce\u94c3<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tswoole\u662f\u4ec0\u4e48\u8bed\u8a00???\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kaleok<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u62ff\u771f\u5b9e\u73af\u5883\u6d4b\u8bd5\u62a5\u544a\u51fa\u6765\u8bf4\u8bdd\u3002swoole\u662fC\u8bed\u8a00php\u6269\u5c55\u3002\u4e0d\u7528\u54ac\u6587\u56bc\u5b57\u4e86\u5427\u3002\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>logo<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmark\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>kaleok \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u73b0\u5728&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\/34870"}],"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=34870"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/34870\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34870"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}