Joan Miquel 4698fc54e7 [workerman] Remove globals vars in pgsql (#7313) 3 lat temu
..
README.md 74316dfdb8 add PHP:workerman (#3084) 7 lat temu
app-pg.php 4698fc54e7 [workerman] Remove globals vars in pgsql (#7313) 3 lat temu
app.php d7ec76dd6c Workerman disable php7.4 (#6223) 4 lat temu
benchmark_config.json d352d9b98f [workerman] Update to php 8.1 (#6895) 3 lat temu
composer.json d3ecfb4879 Change updates tests in workerman and php-ngx (#5217) 6 lat temu
config.toml 0096f84ee9 Config for the new toolset (#6259) 4 lat temu
dbraw.php 4698fc54e7 [workerman] Remove globals vars in pgsql (#7313) 3 lat temu
php-jit.ini 544a4d4d0f [workerman] Testing php8 (#6143) 4 lat temu
php.ini d4271c7d86 Revert "Revert "Add Workerman with Mysqli (#5122)" (#5129)" (#5131) 6 lat temu
server-async.php 4fb3a2a6b0 Workerman fix fortunes url (#5838) 5 lat temu
server.php 4f7bbf9c95 Revert to 4 x workers (#5772) 5 lat temu
workerman-async.dockerfile 129098119f [workerman] Update to Ubuntu 21.10 (#7099) 3 lat temu
workerman-pgsql.dockerfile 4698fc54e7 [workerman] Remove globals vars in pgsql (#7313) 3 lat temu
workerman-php8-jit.dockerfile 4698fc54e7 [workerman] Remove globals vars in pgsql (#7313) 3 lat temu
workerman.dockerfile ca0be9b8b7 [workerman] Add jit to workerman mysql (#7100) 3 lat temu

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