Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibrahimgunduz34/reactphp-symfony-benchmark
A sample Symfony Application with ReactPHP for benchmark testing
https://github.com/ibrahimgunduz34/reactphp-symfony-benchmark
Last synced: about 1 month ago
JSON representation
A sample Symfony Application with ReactPHP for benchmark testing
- Host: GitHub
- URL: https://github.com/ibrahimgunduz34/reactphp-symfony-benchmark
- Owner: ibrahimgunduz34
- Created: 2023-12-04T11:54:17.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2023-12-09T00:19:45.000Z (11 months ago)
- Last Synced: 2023-12-10T00:55:25.420Z (11 months ago)
- Language: PHP
- Size: 4.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ReactPHP + Symfony 6.4 Sample Application For Benchmark
## Running The Server With Different Options
* PHP-FPM + Nginx:| For PostgreSQL | For MySQL |
|-------------------|-------------------|
| $ docker compose -f docker/compose-pgsql.yml --env-file=.env-pgsql up --build | docker compose -f docker/compose-mysql.yml --env-file=.env-mysql up --build |* PHP-FPM + Opcache + Nginx:
| For PostgreSQL | For MySQL |
|-------------------|-------------------|
| $ docker compose -f docker/compose-opcache-pgsql.yml --env-file=.env-pgsql up --build | $ docker compose -f docker/compose-opcache-mysql.yml --env-file=.env-mysql up --build |* ReactPHP:
| For PostgreSQL | For MySQL |
|-------------------|-------------------|
| $ docker compose -f docker/compose-reactphp-pgsql.yml --env-file=.env-pgsql up --build | $ docker compose -f docker/compose-reactphp-mysql.yml --env-file=.env-mysql up --build |* ReactPHP + OpCache:
| For PostgreSQL | For MySQL |
|-------------------|-------------------|
| $ docker compose -f docker/compose-reactphp-opcache-pgsql.yml --env-file=.env-pgsql up --build | $ docker compose -f docker/compose-reactphp-opcache-mysql.yml --env-file=.env-mysql up --build |* Multiple ReactPHP Instance + Nginx:
| For PostgreSQL | For MySQL |
|-------------------|-------------------|
| $ docker compose -f docker/compose-multiple-reactphp-pgsql.yml --env-file=.env-pgsql up --build | $ docker compose -f docker/compose-multiple-reactphp-mysql.yml --env-file=.env-mysql up --build |## Generating The Test Data
Create the database schema
| For PostgreSQL | For MySQL |
|-------------------|-------------------|
| $ docker compose -f docker/compose-pgsql.yml --env-file=.env-pgsql exec php bin/console --no-debug --env=dev doctrine:schema:update --force --complete | $ docker compose -f docker/compose-mysql.yml --env-file=.env-mysql exec php bin/console --no-debug --env=dev doctrine:schema:update --force --complete |Run the following command that creates ~1M row on the postgreSQL instance
| For PostgreSQL | For MySQL |
|-------------------|-------------------|
| $ docker compose -f docker/compose-pgsql.yml --env-file=.env-pgsql exec php bin/console --no-debug --env=dev doctrine:fixtures:load --purge-with-truncate -q | $ docker compose -f docker/compose-mysql.yml --env-file=.env-mysql exec php bin/console --no-debug --env=dev doctrine:fixtures:load --purge-with-truncate -q |Check the benchmark results [here](/benchmark-results.pdf).