php think swoole,Linux 下 ThinkPHP 与 Swoole 搭配 ThinkPHP 性能对比测试

ThinkPHP 5.0.21

422b8f5ae6c7e9847b99deb583c5d8bc.png

Server Software: nginx

Server Hostname: 127.0.0.1

Server Port: 8080

Document Path: /

Document Length: 39 bytes

Concurrency Level: 10

Time taken for tests: 9.064 seconds

Complete requests: 1000

Failed requests: 0

Total transferred: 218000 bytes

HTML transferred: 39000 bytes

Requests per second: 110.33 [#/sec] (mean)

Time per request: 90.637 [ms] (mean)

Time per request: 9.064 [ms] (mean, across all concurrent requests)

Transfer rate: 23.49 [Kbytes/sec] received

Connection Times (ms)

min mean[+/-sd] median max

Connect: 0 0 0.0 0 1

Processing: 15 90 37.8 87 217

Waiting: 15 90 37.8 87 217

Total: 15 90 37.8 88 217

Swoole 搭配 ThinkPHP 5.0.21

003806fa66e735b153eb8d8a9fa9a81c.png

Server Software: swoole-http-server

Server Hostname: 127.0.0.1

Server Port: 9501

Document Path: /

Document Length: 39 bytes

Concurrency Level: 10

Time taken for tests: 4.355 seconds

Complete requests: 10000

Failed requests: 0

Total transferred: 1870000 bytes

HTML transferred: 390000 bytes

Requests per second: 2296.38 [#/sec] (mean)

Time per request: 4.355 [ms] (mean)

Time per request: 0.435 [ms] (mean, across all concurrent requests)

Transfer rate: 419.36 [Kbytes/sec] received

Connection Times (ms)

min mean[+/-sd] median max

Connect: 0 0 0.1 0 6

Processing: 1 4 3.7 4 166

Waiting: 0 4 3.6 3 166

Total: 1 4 3.7 4 166

配置信息

e8c9e00201d4084b68aed9055d8a8bf1.png

432b14c36081748fc5f2e2173b09c547.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值