Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 902 Bytes

README.md

File metadata and controls

38 lines (22 loc) · 902 Bytes

BEAR.HelloworldBenchmark

A BEAR.Sunday hellworld project for benchmarking.

Installation

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.

Setup

Apache

Place public/{index.php favicon.ico .htaccess} into web document root.

Swoole

php bin/swoole.php

Benchmarking

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