Joan Miquel 7998c161db Update workerman mysqli (#5144) 5 years ago
..
README.md 74316dfdb8 add PHP:workerman (#3084) 7 years ago
benchmark_config.json d4271c7d86 Revert "Revert "Add Workerman with Mysqli (#5122)" (#5129)" (#5131) 5 years ago
composer.json d4271c7d86 Revert "Revert "Add Workerman with Mysqli (#5122)" (#5129)" (#5131) 5 years ago
db-mysqli.php 7998c161db Update workerman mysqli (#5144) 5 years ago
dbraw.php 6bf504d82f Change json to check int (#5089) 6 years ago
fortune.php 49bc21af2f Clean fortune test (#5115) 5 years ago
php.ini d4271c7d86 Revert "Revert "Add Workerman with Mysqli (#5122)" (#5129)" (#5131) 5 years ago
server-async.php 1620bb7ada Add error 404 to workerman (#5140) 5 years ago
server-mysqli.php 1620bb7ada Add error 404 to workerman (#5140) 5 years ago
server.php 1620bb7ada Add error 404 to workerman (#5140) 5 years ago
updateraw.php 6bf504d82f Change json to check int (#5089) 6 years ago
workerman-async.dockerfile f0b083b52b Workerman async MySQL 6 years ago
workerman-mysqli.dockerfile d4271c7d86 Revert "Revert "Add Workerman with Mysqli (#5122)" (#5129)" (#5131) 5 years ago
workerman-pgsql.dockerfile 63a937ea42 Add workerman with postgres (#5076) 6 years ago
workerman.dockerfile c4e199da8d Clean and update workerman (#5051) 6 years ago

README.md

#PHP Benchmarking Test

This is the PHP portion of a benchmarking test suite comparing a variety of web development platforms. NGINX is removed in this test, and substituted by Workerman, An asynchronous event driven PHP framework. An asynchronous event driven PHP framework for easily building fast, scalable network applications. Supports HTTP, Websocket, SSL and other custom protocols. Supports libevent, HHVM, ReactPHP.

https://github.com/walkor/Workerman

This test doesn't use the standard PHP (fw_require) because it needs PCNTL / Process Control extension. Adding PCNTL in the PHP compilation (--enable-pcntl) will fail other PHP framework test.

Database config
HOST: DBHOST (from ENV) , or 127.0.0.1 if DBHOST is not available
User : benchmarkdbuser
Password : benchmarkdbpass
DBNAME : hello_world

MySQL Connection is using PHP PDO::Persistent Connection.

The number of threads count in PHP is (number of cores)*2.

Infrastructure Software Versions

The tests were run with:

Pre-test:

JSON Encoding Test

Using the PHP standard JSON encoder

Test URLs

JSON Encoding Test

http://localhost:8080/json.php

Data-Store/Database Mapping Test

http://localhost:8080/dbraw.php

http://localhost:8080/updateraw.php

Variable Query Test

http://localhost:8080/dbraw.php?queries=5

Fortune Test

http://localhost:8080/fortune.php