好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > MixPHP、Yii和CodeIgniter的并發壓力測試小結

MixPHP、Yii和CodeIgniter的并發壓力測試小結

熱門標簽:離石地圖標注 400電話辦理福州市 專業電話機器人批發商 南寧高頻外呼回撥系統哪家好 長沙crm外呼系統業務 江蘇外呼電銷機器人報價 電話機器人危險嗎 400電話申請方法收費 深圳外呼系統收費

前言

MixPHP 是一個基于 Swoole 的高性能框架,CodeIgniter 是一個元老級的輕量級框架,Yii 是一個非常流行的框架,以下是三個框架的對比。

由于Yii/CodeIgniter 是基于 Apache/PHP-FPM 的傳統框架,如果使用 MixPHP 的正常 Swoole 部署方式來對比,顯得有些不公平,由于 MixPHP 同時支持在 Apache/PHP-FPM 中運行,所以此次測試的 MixPHP 是部署在 Apache 之中。

環境

虛擬機: 4 核,1G

使用 ab 工具壓測,命令:ab -n 5000 -c 100 URL

Yii

Yii 關閉了 debug,并設置為 pro 環境。

默認控制器代碼如下,輸出一個 Hello World。

?php public function actionIndex() { return 'Hello World'; }

CodeIgniter

默認控制器代碼如下,輸出一個 Hello World。

?php public function index() { echo 'Hello World'; }

MixPHP

默認控制器代碼如下,輸出一個 Hello World。

public function actionIndex() { return 'Hello World'; }

開始測試

1、測試Yii, QPS: 56.40

C:/Server/apache24vc11/bin>ab -n 5000 -c 100 http://www.b.com/ This is ApacheBench, Version 2.3 $Revision: 1757674 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking www.b.com (be patient) Completed 500 requests Completed 1000 requests Completed 1500 requests Completed 2000 requests Completed 2500 requests Completed 3000 requests Completed 3500 requests Completed 4000 requests Completed 4500 requests Completed 5000 requests Finished 5000 requests Server Software: Apache/2.2.32 Server Hostname: www.b.com Server Port:  80 Document Path:  / Document Length: 9 bytes Concurrency Level: 100 Time taken for tests: 88.659 seconds Complete requests: 5000 Failed requests: 0 Total transferred: 1080000 bytes HTML transferred: 45000 bytes Requests per second: 56.40 [#/sec] (mean) Time per request: 1773.170 [ms] (mean) Time per request: 17.732 [ms] (mean, across all concurrent requests) Transfer rate:  11.90 [Kbytes/sec] received Connection Times (ms)  min mean[+/-sd] median max Connect: 0 0 1.0 1 29 Processing: 14 1765 4200.5 688 48084 Waiting: 14 1610 3741.9 682 46690 Total:  14 1766 4200.5 688 48084 WARNING: The median and mean for the initial connection time are not within a normal deviation  These results are probably not that reliable. Percentage of the requests served within a certain time (ms) 50% 688 66% 1087 75% 1400 80% 1657 90% 3029 95% 7665 98% 14760 99% 24300 100% 48084 (longest request)

2、測試 CodeIgniter , QPS: 144.42

C:/Server/apache24vc11/bin>ab -n 5000 -c 100 http://www.c.com/ This is ApacheBench, Version 2.3 $Revision: 1757674 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking www.c.com (be patient) Completed 500 requests Completed 1000 requests Completed 1500 requests Completed 2000 requests Completed 2500 requests Completed 3000 requests Completed 3500 requests Completed 4000 requests Completed 4500 requests Completed 5000 requests Finished 5000 requests Server Software: Apache/2.2.32 Server Hostname: www.c.com Server Port:  80 Document Path:  / Document Length: 8 bytes Concurrency Level: 100 Time taken for tests: 34.621 seconds Complete requests: 5000 Failed requests: 0 Total transferred: 1075000 bytes HTML transferred: 40000 bytes Requests per second: 144.42 [#/sec] (mean) Time per request: 692.419 [ms] (mean) Time per request: 6.924 [ms] (mean, across all concurrent requests) Transfer rate:  30.32 [Kbytes/sec] received Connection Times (ms)  min mean[+/-sd] median max Connect: 0 0 0.7 1 22 Processing: 8 689 1014.3 480 13324 Waiting: 8 686 1012.2 478 13324 Total:  9 689 1014.3 480 13325 WARNING: The median and mean for the initial connection time are not within a normal deviation  These results are probably not that reliable. Percentage of the requests served within a certain time (ms) 50% 480 66% 673 75% 810 80% 902 90% 1238 95% 1808 98% 3336 99% 6037 100% 13325 (longest request)

3、測試 MixPHP, QPS: 440.48

C:/Server/apache24vc11/bin>ab -n 5000 -c 100 http://www.a.com/ This is ApacheBench, Version 2.3 $Revision: 1757674 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking www.a.com (be patient) Completed 500 requests Completed 1000 requests Completed 1500 requests Completed 2000 requests Completed 2500 requests Completed 3000 requests Completed 3500 requests Completed 4000 requests Completed 4500 requests Completed 5000 requests Finished 5000 requests Server Software: Apache/2.2.32 Server Hostname: www.a.com Server Port:  80 Document Path:  / Document Length: 12 bytes Concurrency Level: 100 Time taken for tests: 11.351 seconds Complete requests: 5000 Failed requests: 0 Total transferred: 1025000 bytes HTML transferred: 60000 bytes Requests per second: 440.48 [#/sec] (mean) Time per request: 227.026 [ms] (mean) Time per request: 2.270 [ms] (mean, across all concurrent requests) Transfer rate:  88.18 [Kbytes/sec] received Connection Times (ms)  min mean[+/-sd] median max Connect: 0 1 0.9 1 25 Processing: 4 222 822.4 15 10376 Waiting: 4 221 822.4 14 10376 Total:  4 222 822.4 16 10376 Percentage of the requests served within a certain time (ms) 50% 16 66% 69 75% 214 80% 364 90% 561 95% 762 98% 978 99% 1829 100% 10376 (longest request)

結論

虛擬機文件IO性能太差,Yii 做300并發直接不響應,只好降低到100并發數,同樣架構的測試結果 MixPHP 領先。

你也來測試一下吧,https://github.com/mixstart/mixPHP

ITEM DESC
Yii 56.40 QPS
CodeIgniter 144.42 QPS
MixPHP 440.48 QPS

總結

以上就是這篇文章的全部內容了,希望本文的內容對大家的學習或者工作具有一定的參考學習價值,如果有疑問大家可以留言交流,謝謝大家對腳本之家的支持。

您可能感興趣的文章:
  • php并發對MYSQL造成壓力的解決方法

標簽:興安盟 太原 白酒營銷 株洲 南昌 濱州 曲靖 南京

巨人網絡通訊聲明:本文標題《MixPHP、Yii和CodeIgniter的并發壓力測試小結》,本文關鍵詞  MixPHP,Yii,和,CodeIgniter,的,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《MixPHP、Yii和CodeIgniter的并發壓力測試小結》相關的同類信息!
  • 本頁收集關于MixPHP、Yii和CodeIgniter的并發壓力測試小結的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 国产福利微拍精品一区二区| 又粗又大又爽A片免费看天美集团| 疯狂蹂躏的3p高清视频| 翁熄半推半就| 欧美精品久久久久久干草影院| 国产精品爽爽久久久久久A片软件| 泰国a级片| 偷偷要色偷偷| 青青草原国产AV一区欧美| 爆乳尤物▌奈汐酱Nice▌| 被触手强制扒开侵犯动漫女性| 好湿好浪好紧好大好爽岳| 热久久免费| 无码无遮拦午夜福利院特色| 菲律宾电影巜豪妇荡乳| 日韩成人黄色片| 亚洲性片| 领导玩弄娇妻呻吟声不断视频 | 免费午夜影片| 亚洲毛片在线播放| 新婚夜圆房高h| 亚洲福利视频一区二区| 欧美做爰又粗又大免费看黄漫网站| 老外玩少妇A片免费观看| 特级做a爰片毛片免费看一区| 情侣摸抱揉捏吃奶的影院| 农村少妇xXxX乱偷video| 国产熟女一区二区三区五月婷 | 久久久久久精品国产| 射多多| 男的操女的| 午夜视频在线观看按摩女| 爆乳一丝丝不挂裸体大胸美女写真 | 精品欧美高清一区二区免费| 美女脱得一二净无内衣内裤| 欧美AV中文无码精品二区 | 成年免费大片黄在线观看免费| 射射射综合网| 扒腿吃奶18禁???视频| 500短篇超污TXT| 亚洲第一福利视频导航|