Skip to main content

RunMeasurement

Struct RunMeasurement 

Source
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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.