yii2框架在php swoole和nginx + php-fpm下的性能测试
2017-07-04 18:51
399 查看
php7.1,首先是swoole的性能测试,10000个请求,11.555 seconds。
然后是nginx+php-fpm,10000个请求,166.468 seconds
Server Software: swoole-http-server Server Hostname: 192.168.24.128 Server Port: 9501 Document Path: /v01/demo Document Length: 93 bytes Concurrency Level: 1 Time taken for tests: 11.555 seconds Complete requests: 10000 Failed requests: 9375 (Connect: 0, Receive: 0, Length: 9375, Exceptions: 0) Write errors: 0 Total transferred: 5261326 bytes HTML transferred: 2372392 bytes Requests per second: 865.46 [#/sec] (mean) Time per request: 1.155 [ms] (mean) Time per request: 1.155 [ms] (mean, across all concurrent requests) Transfer rate: 444.68 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 1.6 0 65 Processing: 1 1 0.6 1 34 Waiting: 0 1 0.5 1 20 Total: 1 1 1.7 1 66 Percentage of the requests served within a certain time (ms) 50% 1 66% 1 75% 1 80% 1 90% 1 95% 1 98% 2 99% 3 100% 66 (longest request)
然后是nginx+php-fpm,10000个请求,166.468 seconds
Server Software: nginx Server Hostname: localhost Server Port: 80 Document Path: / Document Length: 21 bytes Concurrency Level: 1 Time taken for tests: 166.468 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 1810000 bytes HTML transferred: 210000 bytes Requests per second: 60.07 [#/sec] (mean) Time per request: 16.647 [ms] (mean) Time per request: 16.647 [ms] (mean, across all concurrent requests) Transfer rate: 10.62 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 1 Processing: 13 17 5.1 15 240 Waiting: 13 16 5.0 15 240 Total: 13 17 5.1 15 240 Percentage of the requests served within a certain time (ms) 50% 15 66% 16 75% 16 80% 17 90% 18 95% 22 98% 31 99% 39 100% 240 (longest request)
相关文章推荐
- 关于doitphp,thinkphp,yii,ci,doophp等框架的性能对比测试
- 关于doitphp,thinkphp,yii,ci,doophp等框架的性能对比测试
- PHP7+Swoole、Node Express、Sails、Beego、ThinkPHP 并发性能测试
- bdb及其在php下扩展的安装 & bdb性能测试
- PHP 文件缓存的性能测试
- JSP,PHP详细性能测试
- asp php jsp 性能测试
- 讲解PHP文件缓存的性能测试
- PHP高级程序设计:模式、框架与测试的评论
- PHP页面性能测试工具- HTTPWatch简介
- PHP文件缓存的性能测试
- 基于PHP客户端的TokyoTyrant(TCH, TCB, TCT), Memcache, Mysql性能测试(测试脚本)
- 一种改进的轻量级.NET应用程序性能测试框架
- 【小结】SPL 自动加载(from《PHP高级程序设计 模式、框架与测试》)
- Windows 下使用 KCachegrind/WinCachegrind 和 XDebug 测试php程序性能。
- PHP中json_encode、json_decode与serialize、unserialize的性能测试
- php缓冲器:eaccelerator与xcache性能测试对比
- 认识p-unit:一款开源的性能测试框架
- 在生产环境中使用php性能测试工具xhprof
- 基于PHP客户端的TokyoTyrant(TCH, TCB, TCT), Memcache, Mysql性能测试