subms-mpsc-queue 0.5.2

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
12
13
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 mut h = benchmark(&MpscQueueRecipe, &params);
    h.add_meta("subms.recipe.slug", "subms-mpsc-queue");
    h.add_meta("subms.recipe.category", "concurrency");
    h.write_json(&mut io::stdout().lock()).expect("write json");
    ExitCode::SUCCESS
}