Which async framework perform the most ?
| Framework | Website | Github |
|---|---|---|
| ReactPHP | http://reactphp.org/ | https://github.com/reactphp |
| Workerman | http://www.workerman.net | https://github.com/walkor/Workerman |
| Daemon.io | https://daemon.io/ | https://github.com/kakserpom/phpdaemon |
| Kraken | http://kraken-php.com/ | https://github.com/kraken-php/framework |
php react/test-react.phpphp test-workerman.php start -dphp test-workerman.php stopThe easiet way to test is to run in docker.
docker build -t workermanbench .
docker run --name asyncphpbench -d -p 1337:1337 -v ~/Sites/php-async-benchmark:/home/benchmark php:7Assuming you have cloned the repo in you Sites folder in your home directory.
-v ~/Sites/nsa/docker/nsa-php.ini:/usr/local/etc/php/conf.d/nsa-php.ini
docker exec -i -t asyncphpbench /bin/bashab -n 1000 -c 20 http://IP:1337
https://github.com/cmpxchg16/gobench
Libevent is not availaible on PECL pour PHP 7
You need to compile https://github.com/expressif/pecl-event-libevent
apt-get install php7.0-dev
apt-get install php-pear
pecl install event