queuecheck
A thread-safe queue testing and benchmarking library.
Supported on the stable, beta, and nightly Rust channels.
Released under the Apache License 2.0.
Examples
Testing
The below tests the unbounded MPMC queue from the standard library by producing 100,000 items using two producer threads which are then consumed by one consumer thread.
use ;
let = channel;
queuecheck_test!;
Benchmarking
Latency
The below benchmarks the latency of the unbounded MPMC queue from the standard library by producing 100,000 items using two producer threads which are then consumed by one consumer thread.
use ;
let = channel;
let latency = queuecheck_bench_latency!;
latency.report;
Throughput
The below benchmarks the throughput of the unbounded MPMC queue from the standard library by producing 100,000 items using two producer threads which are then consumed by one consumer thread.
use ;
let = channel;
let ops = queuecheck_bench_throughput!;
println!;