新浦京81707con > 软件下载 > 澳门新葡萄在线并发压力测试

原标题:澳门新葡萄在线并发压力测试

浏览次数:168 时间:2020-01-31

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 U昂科威L

Yii 关闭了 debug,并安装为 pro 情状。

默许调整器代码如下,输出八个 Hello World。

<?phppublic function actionIndex(){ return 'Hello World';}

暗许调节器代码如下,输出一个 Hello World。

<?phppublic function index(){ echo 'Hello World';}

暗许调节器代码如下,输出贰个 Hello World。

public function actionIndex(){ return 'Hello World';}
  1. 测试 Yii,QPS: 56.40
C:Serverapache24vc11bin>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 requestsCompleted 1000 requestsCompleted 1500 requestsCompleted 2000 requestsCompleted 2500 requestsCompleted 3000 requestsCompleted 3500 requestsCompleted 4000 requestsCompleted 4500 requestsCompleted 5000 requestsFinished 5000 requestsServer Software: Apache/2.2.32Server Hostname: www.b.comServer Port: 80Document Path: /Document Length: 9 bytesConcurrency Level: 100Time taken for tests: 88.659 secondsComplete requests: 5000Failed requests: 0Total transferred: 1080000 bytesHTML transferred: 45000 bytesRequests per second: 56.40 [#/sec] Time per request: 1773.170 [ms] Time per request: 17.732 [ms] (mean, across all concurrent requests)Transfer rate: 11.90 [Kbytes/sec] receivedConnection Times  min mean[ /-sd] median maxConnect: 0 0 1.0 1 29Processing: 14 1765 4200.5 688 48084Waiting: 14 1610 3741.9 682 46690Total: 14 1766 4200.5 688 48084WARNING: 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  50% 688 66% 1087 75% 1400 80% 1657 90% 3029 95% 7665 98% 14760 99% 24300 100% 48084 (longest request)
  1. 测试 CodeIgniter ,QPS: 144.42
C:Serverapache24vc11bin>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 requestsCompleted 1000 requestsCompleted 1500 requestsCompleted 2000 requestsCompleted 2500 requestsCompleted 3000 requestsCompleted 3500 requestsCompleted 4000 requestsCompleted 4500 requestsCompleted 5000 requestsFinished 5000 requestsServer Software: Apache/2.2.32Server Hostname: www.c.comServer Port: 80Document Path: /Document Length: 8 bytesConcurrency Level: 100Time taken for tests: 34.621 secondsComplete requests: 5000Failed requests: 0Total transferred: 1075000 bytesHTML transferred: 40000 bytesRequests per second: 144.42 [#/sec] Time per request: 692.419 [ms] Time per request: 6.924 [ms] (mean, across all concurrent requests)Transfer rate: 30.32 [Kbytes/sec] receivedConnection Times  min mean[ /-sd] median maxConnect: 0 0 0.7 1 22Processing: 8 689 1014.3 480 13324Waiting: 8 686 1012.2 478 13324Total: 9 689 1014.3 480 13325WARNING: 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  50% 480 66% 673 75% 810 80% 902 90% 1238 95% 1808 98% 3336 99% 6037 100% 13325 (longest request)
  1. 测试 MixPHP,QPS: 440.48
C:Serverapache24vc11bin>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 requestsCompleted 1000 requestsCompleted 1500 requestsCompleted 2000 requestsCompleted 2500 requestsCompleted 3000 requestsCompleted 3500 requestsCompleted 4000 requestsCompleted 4500 requestsCompleted 5000 requestsFinished 5000 requestsServer Software: Apache/2.2.32Server Hostname: www.a.comServer Port: 80Document Path: /Document Length: 12 bytesConcurrency Level: 100Time taken for tests: 11.351 secondsComplete requests: 5000Failed requests: 0Total transferred: 1025000 bytesHTML transferred: 60000 bytesRequests per second: 440.48 [#/sec] Time per request: 227.026 [ms] Time per request: 2.270 [ms] (mean, across all concurrent requests)Transfer rate: 88.18 [Kbytes/sec] receivedConnection Times  min mean[ /-sd] median maxConnect: 0 1 0.9 1 25Processing: 4 222 822.4 15 10376Waiting: 4 221 822.4 14 10376Total: 4 222 822.4 16 10376Percentage of the requests served within a certain time  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 抢先。

您也来测验一下呢,

ITEM DESC
Yii 56.40 QPS
CodeIgniter 144.42 QPS
MixPHP 440.48 QPS

本文由新浦京81707con发布于软件下载,转载请注明出处:澳门新葡萄在线并发压力测试

关键词: 新浦京81707con 压力测试 MixPHP Yii

上一篇:Laravel思维导图之Laravel核心概念,浅谈Laravel手册

下一篇:没有了