subms-block-cache 0.5.2

submillisecond.com cookbook recipe - memory: subms-block-cache. Clock-sweep block cache with constant-time eviction.
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_block_cache::recipe::BlockCacheRecipe;

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