Giter Club home page Giter Club logo

disruptor_cpp's Introduction

disruptor_cpp

A C++ implementation of the LMAX disruptor (https://github.com/LMAX-Exchange/disruptor). Goals are as follows...

  • Provide similar or better performance characteristics
  • Provide a similar interface to the java implementation

The current implementation supports only single producers

In its current state performance tests show rougly a x2 performance improvement over the java implementation as demonstrated by the output from the one_to_one_sequenced_throughput_test

java

Run 0, Disruptor=49,212,598 ops/sec
Run 1, Disruptor=51,921,079 ops/sec
Run 2, Disruptor=50,864,699 ops/sec
Run 3, Disruptor=59,630,292 ops/sec
Run 4, Disruptor=62,227,753 ops/sec
Run 5, Disruptor=59,988,002 ops/sec
Run 6, Disruptor=60,569,351 ops/sec

c++

Run 0, Disruptor=95,877,277 ops/sec
Run 1, Disruptor=94,786,729 ops/sec
Run 2, Disruptor=93,632,958 ops/sec
Run 3, Disruptor=92,506,938 ops/sec
Run 4, Disruptor=95,057,034 ops/sec
Run 5, Disruptor=93,632,958 ops/sec
Run 6, Disruptor=94,876,660 ops/sec

Example compile command:

g++ -O3 -std=c++11 -Wl,--no-as-needed -I../include one_to_one_sequenced_throughput_test.cpp -lpthread

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.