Skip to main content

VerifiedPerformanceObservations

Struct VerifiedPerformanceObservations 

Source
pub struct VerifiedPerformanceObservations { /* private fields */ }
Expand description

Exact integer performance observations derived from retained raw samples.

The raw p95 numerators and denominators deliberately match the promoter core’s PerformanceAssessment interface. Every decision is made with cross-multiplied u128 arithmetic; no floating-point value can pass or fail a threshold here.

use serde::de::DeserializeOwned;
use u280_evidence_oracle::VerifiedPerformanceObservations;
fn require_deserialize<T: DeserializeOwned>() {}
require_deserialize::<VerifiedPerformanceObservations>();
use u280_evidence_oracle::VerifiedPerformanceObservations;
fn require_clone<T: Clone>() {}
require_clone::<VerifiedPerformanceObservations>();

Implementations§

Source§

impl VerifiedPerformanceObservations

Source

pub fn required_batch(&self) -> u32

Required performance batch (16_384).

Source

pub fn minimum_measured_samples(&self) -> usize

Minimum measured population (30).

Source

pub fn normalized_clock_hz(&self) -> u64

Exact arithmetic normalization clock (250_000_000 Hz).

Source

pub fn minimum_signatures_per_second(&self) -> u64

Exact minimum sustained rate (500_000 signatures/s).

Source

pub fn maximum_capture_cycles_per_result(&self) -> u64

Exact maximum p95 capture/core cost (500 cycles/result).

Source

pub fn required_batch_requested(&self) -> bool

Whether the required batch was requested by the retained run.

Source

pub fn observed_measured_samples(&self) -> usize

Exact number of measured samples in the required batch.

Source

pub fn p95_rank(&self) -> Option<usize>

One-based nearest-rank p95 position within the measured population.

Source

pub fn p95_capture_interval_cycles(&self) -> Option<u64>

Raw p95 capture/core numerator in cycles.

Source

pub fn capture_results_denominator(&self) -> u32

Inter-result denominator for the capture/core numerator.

Source

pub fn p95_whole_kernel_nanoseconds(&self) -> Option<u64>

Raw p95 whole-kernel elapsed numerator in nanoseconds.

Source

pub fn whole_kernel_results_denominator(&self) -> u32

Result-count denominator for the whole-kernel numerator.

Source

pub fn clock(&self) -> &VerifiedClockObservation

Exact shared clock observation.

Source

pub fn samples(&self) -> &[VerifiedPerformanceSample]

Every independently parsed sample, including warmups and controls.

Trait Implementations§

Source§

impl Debug for VerifiedPerformanceObservations

Source§

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

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

impl PartialEq for VerifiedPerformanceObservations

Source§

fn eq(&self, other: &VerifiedPerformanceObservations) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for VerifiedPerformanceObservations

Source§

impl StructuralPartialEq for VerifiedPerformanceObservations

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> Same for T

Source§

type Output = T

Should always be Self
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.