Expand description
Testing and benchmarking tools for concurrent Rust code
This crate groups together a bunch of utilities which I’ve found useful when testing and benchmarking Rust concurrency primitives in the triple_buffer and spmc_buffer crates.
If it proves popular, other testing and benchmarking tools may be added, based on user demand.
§Examples
For examples of this crate at work, look at its “tests” and “benchs” submodules, which showcase expected usage.
Modules§
- noinline
- Inlining barriers for function calls
- race_
cell - Shareable mutable containers easing detection of race conditions in thread synchronization testing code.
Functions§
- concurrent_
test_ 2 - Test that running two operations concurrently works
- concurrent_
test_ 3 - Test that running three operations concurrently works
- run_
under_ contention - Perform some operation while another is running in a loop in another thread