yii2框架在php swoole和nginx + php-fpm下的性能测试
来源:互联网 发布:网络用语奥义很爽 编辑:程序博客网 时间:2024/06/05 18:21
php7.1,首先是swoole的性能测试,10000个请求,11.555 seconds。
Server Software: swoole-http-serverServer Hostname: 192.168.24.128Server Port: 9501Document Path: /v01/demoDocument Length: 93 bytesConcurrency Level: 1Time taken for tests: 11.555 secondsComplete requests: 10000Failed requests: 9375 (Connect: 0, Receive: 0, Length: 9375, Exceptions: 0)Write errors: 0Total transferred: 5261326 bytesHTML transferred: 2372392 bytesRequests 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] receivedConnection Times (ms) min mean[+/-sd] median maxConnect: 0 0 1.6 0 65Processing: 1 1 0.6 1 34Waiting: 0 1 0.5 1 20Total: 1 1 1.7 1 66Percentage 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: nginxServer Hostname: localhostServer Port: 80Document Path: /Document Length: 21 bytesConcurrency Level: 1Time taken for tests: 166.468 secondsComplete requests: 10000Failed requests: 0Write errors: 0Total transferred: 1810000 bytesHTML transferred: 210000 bytesRequests 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] receivedConnection Times (ms) min mean[+/-sd] median maxConnect: 0 0 0.0 0 1Processing: 13 17 5.1 15 240Waiting: 13 16 5.0 15 240Total: 13 17 5.1 15 240Percentage 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)
阅读全文
0 0
- yii2框架在php swoole和nginx + php-fpm下的性能测试
- nginx+php-fpm在Linux下的安装和配置
- PHP+PHP-fpm+PHP-cgi+nginx+yii2
- 在nginx和php-fpm下一访问nginx就瞬间502的问题 php-fpm signal 7 (SIGBUS)
- Nginx+PHP-fpm 性能优化
- 抛弃php-fpm,nginx +swoole 配置http服务器
- nginx 和 php-fpm的通信
- Swoole,PHP语言的高性能网络通信框架
- nginx和php-fpm配置
- nginx+PHP+PHP-FPM(FastCGI)在Ubuntu上的安装和配置
- nginx+PHP+PHP-FPM(FastCGI)在Ubuntu上的安装和配置
- nginx+PHP+PHP-FPM(FastCGI)在Ubuntu上的安装和配置
- nginx+PHP+PHP-FPM(FastCGI)在Ubuntu上的安装和配置
- nginx+PHP+PHP-FPM(FastCGI)在Ubuntu上的安装和配置
- Ubuntu下安装Nginx、Php-fpm、Php
- Nginx和php,FastCGI和php-fpm
- nginx+php-fpm优化post 性能
- nginx安装php和php-fpm
- Hadoop完全分布式集群安装及配置(基于虚拟机)
- Centos7 安装高版本PHP
- substance——java窗口的皮肤初使用
- 使用redisTemplete简单封装的一个通用操作类
- JS异步之Thunk函数
- yii2框架在php swoole和nginx + php-fpm下的性能测试
- petalinux 启动image.ub属性验证
- 【剑指Offer】:跳台阶
- Shell脚本知识点
- 点击按钮一次,多次请求的问题
- Go语言并发与并行学习笔记(二)
- EXT4 之 Android 文件系统剖析
- LeetCode 529 Minesweeper (BFS)
- Java注解(转载)