README

Overview

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

Driver

Batch size: 1

Batch size: 5

Batch size: 10

Batch Size 100

doctrine-adapter (mysql)

0.0667

0.1391

0.2365

1.6130

doctrine-adapter (postgres)

0.0185

0.0246

0.0250

0.0567

mongodb-adapter

0.0025

0.0021

0.0025

0.0116

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.

Support

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.