pub struct Config {
pub bench: BTreeMap<String, Bench>,
/* private fields */
}Fields§
§bench: BTreeMap<String, Bench>Benchmarks by name. A BTreeMap so runs are ordered and reproducible rather than following the file’s incidental key order.
Settings tables — [env], [gate], [report], [runner] — live in
the same file but are not deserialized here: the settings registry
declares their dotted keys, and settings::TakConfigLayer reads exactly
those, so this type never has to be kept in step with it. That is also
why defaults for every benchmark live under [defaults], not [env].
Implementations§
Source§impl Config
impl Config
Sourcepub fn subjects(&self, name: &str) -> Result<Vec<Subject>>
pub fn subjects(&self, name: &str) -> Result<Vec<Subject>>
Every subject of benchmark name, with each layer applied: defaults,
the benchmark, the shared subject, then the benchmark’s own subject
table. Templates are not rendered yet; see crate::template::render.
A single-command benchmark is one subject named SELF_TOOL with
counters on, which is exactly what it measured before subjects existed.