A BEAR.Sunday hellworld project for benchmarking.
pecl install swoole
(Add extension=swoole.so to your php.ini.)
git clone https://github.com/bearsunday/BEAR.HelloworldBenchmark
cd BEAR.HelloworldBenchmark
composer install --no-dev
composer compile
See more for the installation of swoole at Swoole:Getting Started.
Place public/{index.php favicon.ico .htaccess}
into web document root.
php bin/swoole.php
Benchmarking Tool: wrk
apache
wrk -t4 -c100 -d10s http://127.0.0.1/
swoole
wrk -t4 -c100 -d10s http://127.0.0.1:8080/
See the results at https://github.com/bearsunday/BEAR.HelloworldBenchmark/wiki