Giter Site home page Giter Site logo

event-store-benchmarks's Introduction

event-store-benchmarks

Benchmarks for prooph event-store

Requirements

  • 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.

Test Results

You can check our test results here.

They were running a notebook with Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz

Usage

  1. Have MySQL, MariaDB and Postgres installed and running
  2. Edit .env file and change your db settings
  3. run php src/benchmark.php
  4. enjoy

Good to know

Test 7 real world test

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.

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.

License

Released under the New BSD License.

event-store-benchmarks's People

Contributors

prolic avatar

Watchers

Ben Davies avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.