prooph / event-store-adapter-benchmarks
Benchmarks for various prooph event store adapters
Requires
- php: ^5.5 || ^7.0
- friendsofphp/php-cs-fixer: ^1.11.5
- prooph/event-store: ^6.3
- prooph/event-store-doctrine-adapter: ^3.2.1
- prooph/event-store-mongodb-adapter: ^2.3.0
Provides
- ext-mongo: 1.6.13
This package is auto-updated.
Last update: 2024-11-17 01:26:16 UTC
README
PHP 5.5+ EventStore Implementation.
Overview
This benchmark compares PHP 5.5, PHP 5.6 and PHP 7.0 with mongodb-adapter and doctrine-adapter (using postgresql 9.4 and mysql 5.6).
Installation
You can install prooph/event-store-adapter-benchmarks via cloning this repository and calling composer install
or if
you use Docker, run docker run --rm -it --volume $(pwd):/app prooph/composer:7.0 install
.
If you are running PHP 7, run this command afterwards: composer require alcaeus/mongo-php-adapter ^1.0
.
Benchmark results using PHP 7
Times in seconds
Running benchmarks with Docker
If you have Docker installed, you can run each benchmark individually, by one of the following commands. PHP 7 is used, but you are free to change the Docker Compose configuration for your needs.
For MongoDB
For PHP 7 please install also alcaeus/mongo-php-adapter by running
docker run --rm -it --volume $(pwd):/app prooph/composer:7.0 require alcaeus/mongo-php-adapter
.
$ export COMPOSE_FILE=docker-compose.yml:docker-compose-mongodb.yml && docker-compose up -d && docker-compose logs -f php && docker-compose down
For MariaDB (MySQL)
$ export COMPOSE_FILE=docker-compose.yml:docker-compose-mariadb.yml && docker-compose up -d && docker-compose logs -f php && docker-compose down
For MySQL
$ export COMPOSE_FILE=docker-compose.yml:docker-compose-mysql.yml && docker-compose up -d && docker-compose logs -f php && docker-compose down
For Percona (MySQL)
$ export COMPOSE_FILE=docker-compose.yml:docker-compose-percona.yml && docker-compose up -d && docker-compose logs -f php && docker-compose down
For PostgreSQL
$ export COMPOSE_FILE=docker-compose.yml:docker-compose-postgresql.yml && docker-compose up -d && docker-compose logs -f php && docker-compose down
Support
- Ask questions on prooph-users mailing list.
- File issues at https://github.com/prooph/event-store-adapter-benchmarks/issues.
- Say hello in the prooph gitter chat.
Contribute
Please feel free to fork and extend existing or add new plugins and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and may adapt the documentation.
License
Released under the New BSD License.