Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibexa/gpc-2024-project-profiling-exercises
https://github.com/ibexa/gpc-2024-project-profiling-exercises
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ibexa/gpc-2024-project-profiling-exercises
- Owner: ibexa
- License: other
- Created: 2024-01-19T12:18:34.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-21T05:37:37.000Z (4 months ago)
- Last Synced: 2024-07-21T06:36:03.893Z (4 months ago)
- Language: JavaScript
- Size: 8.99 MB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-bul
Awesome Lists containing this project
README
This project aims to provide you with a sandbox for exercising your profiling skills in Ibexa DXP-based projects.
There are multiple performance issues with the project's code - use your profiling skills to find them all (and then: fix them ;) )
Contributors: Mateusz Bieniek and Marek NocońFeel free to drop us a message with feedback: [email protected] and [email protected]
## Requirements
- Standard Ibexa DXP v4.5 requirements: https://doc.ibexa.co/en/4.5/getting_started/requirements/
- PHP v8.1+, MariaDB or MySQL
- Valid Ibexa DXP Enterprise license## Installation
1. Clone the repository
2. Create a database and restore the database dump from `doc/sql/igpc_profiling.sql` with base data like directories, roles, etc
3. Set up `.env.local` with DB connection details
4. `composer install`
5. `composer run post-install-cmd
6. Generate poster users with: `php bin/console app:generate-posters 100`
7. Generate categories with: `php bin/console app:generate-categories 10`
8. Generate posts with: `php bin/console app:generate-posts 200`
9. `php -S 127.0.0.1:8000 -t public`
10. Enjoy!## Testing
### Blackfire tests
The tests are located in the `.blackfire.yaml` file.
### Blackfire scenarios
The scenarios are located in `./tests/performance/` directory and are loaded from the `.blackfire.yaml` file.
### Running the tests:
```sh
docker run --rm -it
-e BLACKFIRE_CLIENT_ID="X" \
-e BLACKFIRE_CLIENT_TOKEN="Y" \
-v "`pwd`:/app" -v "`pwd`/var/log:/tmp/blackfire-player-trace" \
blackfire/player run .blackfire.yaml -vv --endpoint=https://example.com --tracer -vv \
--blackfire-env=Z
```## COPYRIGHT
Copyright (C) 1999-2024 Ibexa AS (formerly eZ Systems AS). All rights reserved.