Skip to content

bearsunday/BEAR.HelloworldBenchmark

Repository files navigation

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

About

A BEARSunday helloworld benchmarking project using Swoole

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published