subms-timer-wheel 0.5.2

submillisecond.com cookbook recipe - concurrency: subms-timer-wheel. Single-level hashed timer wheel with O(1) schedule and cancel.
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_timer_wheel::recipe::TimerWheelRecipe;

fn main() -> ExitCode {
    let params = SubMsBenchParams::from_stdin();
    let mut h = benchmark(&TimerWheelRecipe, &params);
    h.add_meta("subms.recipe.slug", "subms-timer-wheel");
    h.add_meta("subms.recipe.category", "scheduling");
    h.write_json(&mut io::stdout().lock()).expect("write json");
    ExitCode::SUCCESS
}