myron / swoole-pool
swoole pool frame
dev-master
2019-07-31 02:07 UTC
Requires
- php: >=7.2
Requires (Dev)
- phpunit/phpunit: ^7.0
- swoole: ^4.4
This package is auto-updated.
Last update: 2019-12-31 00:24:15 UTC
README
swoole-pool for swoole4.4
install
composer require myron/swoole-pool
phpunit test
#: cd Mecyu/SwoolePool
SwoolePool#: phpunit
run server && ab test
use default mysql db ,to change the db:
SwoolePool#: vim server.php
change '$this->pool = pool('Mysql');' to '$this->pool = pool('Redis');'
in one teminal:
SwoolePool#: php server.php
and the other teminal:
SwoolePool#: ab -c 200 -n 100000 -k http://127.0.0.1:9501/
Notice
In order to make all your step run successed , please make sure you are in
`
php7.2 version
phpunit7.0
swoole4.4.
`
- Thank you !
- This my swoole learning pro. Thank you for your view and good ideas!