subms-block-cache 0.4.0

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
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 h = benchmark(&BlockCacheRecipe, &params);
    h.write_json(&mut io::stdout().lock()).expect("write json");
    ExitCode::SUCCESS
}