/// Mode tag for Bitcask bench ids in the full target.
pub fn mode_tag(direct_io: bool) -> &'static str {
    if direct_io { "direct_io" } else { "page_cache" }
}

/// `"<collection>/<mode>"` bench id, e.g. `const_tree/direct_io`.
pub fn id_with_mode(collection: &str, direct_io: bool) -> String {
    format!("{collection}/{}", mode_tag(direct_io))
}
