Code Monkey home page Code Monkey logo

btrees's Introduction

Performance comparison of concurrent Binary Search Trees in C++

This project aims to compare several concurrent implementation of Binary Search Tree in C++:

  • SkipList
  • Non-Blocking Binary Search Trees
  • Optimistic AVL Tree
  • Lock-Free Multiway Search Tree
  • Counter-Based Tree

Note: The code has only been tested on Intel processors. It is possible that there are some differences with other processors. It has only been tested under Linux and with GCC. This application will not build under Windows and is unlikely to build under another compiler.

Build

CMake is used to build the project:

cmake . make -j9

Warning: GCC 4.6 at least is necessary to build this project.

Launch tests

The tests can be launched easily:

./bin/btrees -test

Note: The full tests can take about 30 minutes to complete on not-very modern computer and can takes more than 2GB of memory.

Launch memory benchmark

The memory benchmark is separated in two parts. The first (low) tests the memory consumption with range in [0, size] and the second (high) tests the memory consumption on higher range [0, INT_MAX]:

./bin/memory -high ./bin/memory -low

Note: The memory benchmark needs at least 6GB of memory to run.

Launch the benchmark

The full benchmark can be run like this:

./bin/btrees -test

Note: Even on modern computer, the benchmark may take more than 10 hours to complete and needs several GB of memory. On old hardware, it can easily takes about 24 hours to complete.

btrees's People

Contributors

wichtounet avatar

Watchers

 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.