pub struct Record {
pub v: u32,
pub bench: String,
pub tool: String,
pub version: Option<String>,
pub runner: String,
pub ts: String,
pub metrics: BTreeMap<String, f64>,
}Fields§
§v: u32Schema version. Serialised first-by-name (v) purely by BTreeMap ordering.
bench: StringBenchmark name, from bench.toml.
tool: StringWhich program produced this measurement. Defaults to the project itself;
set to pnpm, npm, … for competitive comparisons, which are wall-clock
only — instruction counts across different programs are not comparable.
version: Option<String>Version of tool, when meaningful (release backfills, competitors).
runner: StringRunner class. Series MUST be partitioned on this: moving between runner types shifts absolute numbers enough to look like a regression.
ts: StringRFC 3339, second resolution.
metrics: BTreeMap<String, f64>Metric name -> value. Deterministic metrics (instructions) are integers;
timings are milliseconds. A BTreeMap so key order is stable across writers.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more