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: BackendInfoIdentifies 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: HostInfoOS / 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 ofmain’s return value rendered throughaver_display(same pathConsole.printuses).NonewhenmainreturnsUnit— those scenarios print for side effect, and bench mode silences the console.wasm-local: total bytes the guest tried to write throughfd_write(sum of iovec lengths) during the last iteration.0when the guest never calledfd_write(most scenarios that don’t print).rust: actual stdout byte count from the spawned binary’s subprocess output.0when 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
impl Clone for BenchReport
Source§fn clone(&self) -> BenchReport
fn clone(&self) -> BenchReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more