GithubHelp home page GithubHelp logo

tmlev / skipper Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 903 KB

Various skip list implementations

License: MIT License

Shell 3.15% Dockerfile 0.38% CMake 5.09% C++ 91.38%
cpp modern-cpp cmake modern-cmake clang-format cmake-format clang-tidy ci catch2 google-benchmark

skipper's Introduction

Skipper

skipper Build Status

What is it?

Skipper is a C++17 header-only library with various implementations of skip list data structure.

How to use?

Benchmarks

For measuring performance Google Benchmark library was used. Source code of benchmarks can be found here.

3 experiments with different setups (described below) have been conducted. Every benchmark ran on several number of threads (from 1 to 16). Performance was measured on Intel Core i7-8565U x86-64 with 8 hyper-threading cores with 1.8 CHz base frequency and 4.6 max turbo frequency. RAM is 32 GB DDR4.

Contains

This benchmark tests Contains() method. As a setup 10^6 random numbers from R = (-10^4; 10^4) are inserted.

Contains benchmark graph

Insert

Here Insert() method performance is measured. For setup 10^3 random numbers from R = (-10^3; 10^3) are inserted.

Insert benchmark graph

One Insert & Many Contains

Here both methods are tested. 10^4 random numbers from R = (-10^4; 10^4) are inserted for a setup. During benchmarks itself one thread inserts random numbers from R the endless loop, while other threads are checking for contains random numbers from R.

One Insert & Many Contains benchmark graph

How to contribute?

Feel free to open an issue if something is wrong. For pull requests please follow these instructions.

skipper's People

Contributors

belyakov-am avatar tmlev avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

skipper's Issues

Utils: proper layout for helper functions

Tests and benchmarks use GenerateNumbers from utils/random.hpp which is a helper function.
Two problems emerge:

  1. utils is not a great name.
  2. utils directory does not belong to the project root.

Add benchmark plots

Add plots for demonstrative comparisons of different SkipList implementations.

Add CMake templates

We'll need templates for dependencies discovery, tests, benchmarks and libraries.

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.