Benchmarks for prooph event-store
- PHP >= 7.1
- PDO_MySQL Extension
- PDO_PGSQL Extension
For MariaDB you need server vesion >= 10.2.6.
For MySQL you need server version >= 5.7.9.
For Postgres you need server version >= 9.4.
You can check our test results here.
They were running a notebook with Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
- Have MySQL, MariaDB and Postgres installed and running
- Edit
.env
file and change your db settings - run
php src/benchmark.php
- enjoy
This is the most realistic test case that comes close to production usage:
- 50 threads are writing events at the same time
- 6 projections are reading events at the same time
- a total of 12500 events are written
- a total of 25000 events are read
You need to have PHP 7.2 and pthreads extension installed for test7 (real world test).
There is currently a bug in pthreads (krakjoe/pthreads#760)
and a suggested fix, but for now during benchmark the \Prooph\EventStore\Pdo\Projection\PdoEventStoreProjector
is patched in order to work with pthreads.
- Ask questions on prooph-users mailing list.
- File issues at https://github.com/prooph/event-store-benchmarks/issues.
- Say hello in the prooph gitter chat.
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.
Released under the New BSD License.