pub(crate) struct RunMeasurement {
pub(crate) wall: Duration,
pub(crate) fuel_spent: u64,
pub(crate) host_calls: u64,
pub(crate) irreversible_writes: u64,
pub(crate) heap: HeapStats,
pub(crate) instructions: Option<u64>,
pub(crate) failure: Option<String>,
}Expand description
What one run of a benchmark’s entry measured.
Fields§
§wall: Duration§fuel_spent: u64§host_calls: u64§irreversible_writes: u64§heap: HeapStats§instructions: Option<u64>How many instructions the run executed, on a lowered backend. None
on the interpreter, which has none – the same distinction cove run --stats makes, and for the same reason.
The figure a rebuild cannot move, which is why it is reported beside
the wall time rather than only inside --matrix: ADR 0029 makes an
exact count repeatable where an absolute is not, and ADR 0034 asks for
instruction counts by name if a gate fails. A ratio with a count
beside it says whether a backend was slower per instruction or simply
ran more of them.
failure: Option<String>Some(message) when the entry returned Err or the interpreter
itself failed; None when it passed.
Auto Trait Implementations§
impl Freeze for RunMeasurement
impl RefUnwindSafe for RunMeasurement
impl Send for RunMeasurement
impl Sync for RunMeasurement
impl Unpin for RunMeasurement
impl UnsafeUnpin for RunMeasurement
impl UnwindSafe for RunMeasurement
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