Skip to main content

BenchReport

Struct BenchReport 

Source
pub struct BenchReport {
    pub scenario: ScenarioMetadata,
    pub backend: BackendInfo,
    pub host: HostInfo,
    pub iterations: IterationStats,
    pub response_bytes: Option<usize>,
    pub expected_match: Option<bool>,
    pub passes_applied: Vec<String>,
    pub compiler_visible_allocs: Option<usize>,
}

Fields§

§scenario: ScenarioMetadata§backend: BackendInfo

Identifies the build that ran the bench: aver version, build profile, target backend, plus optional version strings for per-target runtimes (e.g. wasmtime for wasm-local).

§host: HostInfo

OS / architecture / process identity. Same JSON shape across targets; downstream tools join on host.os + host.arch + backend.name to compare like-for-like across runs.

§iterations: IterationStats§response_bytes: Option<usize>

UTF-8 byte count of the last iteration’s “result”. Semantics vary by target:

  • vm: byte length of main’s return value rendered through aver_display (same path Console.print uses). None when main returns Unit — those scenarios print for side effect, and bench mode silences the console.
  • wasm-local: total bytes the guest tried to write through fd_write (sum of iovec lengths) during the last iteration. 0 when the guest never called fd_write (most scenarios that don’t print).
  • rust: actual stdout byte count from the spawned binary’s subprocess output. 0 when the binary printed nothing.

VM and wasm-local/rust use different shapes (“rendered return value” vs “actual stdout”). aver bench --compare only ever matches same-target baselines, so the divergence doesn’t break gating — the field is exact-match within a target.

§expected_match: Option<bool>

true when the run satisfied every [expected] constraint in the manifest. null when the manifest has no expectations.

§passes_applied: Vec<String>

Pipeline stages that actually fired. Sourced from the pipeline’s on_after_pass hook so it reflects what ran, not what was requested.

§compiler_visible_allocs: Option<usize>

IR-level allocation counter. null in 0.15.1 — pending the aver compile --explain-allocations work in 0.15.2.

Trait Implementations§

Source§

impl Clone for BenchReport

Source§

fn clone(&self) -> BenchReport

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BenchReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for BenchReport

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for BenchReport

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,