Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sile/atomic_immut
Atomic immutable value for Rust
https://github.com/sile/atomic_immut
atomic concurrency rust
Last synced: 7 days ago
JSON representation
Atomic immutable value for Rust
- Host: GitHub
- URL: https://github.com/sile/atomic_immut
- Owner: sile
- License: mit
- Created: 2017-05-05T10:13:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-17T02:23:35.000Z (almost 3 years ago)
- Last Synced: 2024-12-08T15:08:24.371Z (26 days ago)
- Topics: atomic, concurrency, rust
- Language: Rust
- Size: 15.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
atomic_immut
============[![atomic_immut](https://img.shields.io/crates/v/atomic_immut.svg)](https://crates.io/crates/atomic_immut)
[![Documentation](https://docs.rs/atomic_immut/badge.svg)](https://docs.rs/atomic_immut)
[![Build Status](https://travis-ci.org/sile/atomic_immut.svg?branch=master)](https://travis-ci.org/sile/atomic_immut)
[![Code Coverage](https://codecov.io/gh/sile/atomic_immut/branch/master/graph/badge.svg)](https://codecov.io/gh/sile/atomic_immut/branch/master)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)Atomic immutable value for Rust.
[Documentation](https://docs.rs/atomic_immut)
Benchmark
----------```console
$ cargo +nightly benchrunning 6 tests
test multi_thread_load ... bench: 576 ns/iter (+/- 510)
test multi_thread_load_std ... bench: 1,113 ns/iter (+/- 1,130)
test multi_thread_store_and_load ... bench: 483 ns/iter (+/- 74)
test multi_thread_store_and_load_std ... bench: 27,897 ns/iter (+/- 6,171)
test single_thread_load ... bench: 22 ns/iter (+/- 1)
test single_thread_load_std ... bench: 41 ns/iter (+/- 0)
```