Giter Club home page Giter Club logo

arc-swap-benches's Introduction

Benchmarks of various alternatives for RwLock<Arc<T>> in read-heavy scenarios, including arc-swap & parking lot.

Running

cargo +nightly bench

Results

@ Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (turbo off)

(substract the baseline to measure just the overhead)

test arcswap                    ... bench:          55 ns/iter (+/- 4)
test arcswap_full               ... bench:         482 ns/iter (+/- 94)
test baseline                   ... bench:          33 ns/iter (+/- 1)
test mutex_4                    ... bench:         736 ns/iter (+/- 421)
test mutex_unconteded           ... bench:          59 ns/iter (+/- 5)
test rwlock_fast_4              ... bench:         565 ns/iter (+/- 35)
test rwlock_fast_uncontended    ... bench:          48 ns/iter (+/- 2)
test rwlock_parking_4           ... bench:         352 ns/iter (+/- 448)
test rwlock_parking_uncontended ... bench:          55 ns/iter (+/- 0)
test rwlock_std_4               ... bench:       1,200 ns/iter (+/- 61)
test rwlock_std_uncontended     ... bench:          81 ns/iter (+/- 48)

Contributing

This repo is a personal project published as-is with no intention for maintance. Feel free to fork though!

arc-swap-benches's People

Contributors

krdln avatar

Stargazers

 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.