subms-mpsc-queue 0.4.0

submillisecond.com cookbook recipe - concurrency: subms-mpsc-queue. Vyukov-style multi-producer single-consumer linked queue with dangling-tail handling.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::io;
use std::process::ExitCode;
use subms::{SubMsBenchParams, benchmark};
use subms_mpsc_queue::recipe::MpscQueueRecipe;

fn main() -> ExitCode {
    let params = SubMsBenchParams::from_stdin();
    let h = benchmark(&MpscQueueRecipe, &params);
    h.write_json(&mut io::stdout().lock()).expect("write json");
    ExitCode::SUCCESS
}