pub struct PerfReport {Show 15 fields
pub schema_version: u32,
pub evidence_version: String,
pub hardware: NamedHardwareProfile,
pub aurum_version: Option<String>,
pub commit: Option<String>,
pub rustc: Option<String>,
pub target_triple: Option<String>,
pub build_profile: Option<String>,
pub features: Option<String>,
pub whisper_cpp_version: Option<String>,
pub onnx_runtime_version: Option<String>,
pub model_digests: BTreeMap<String, String>,
pub cache_state: Option<String>,
pub scenarios: Vec<PerfScenarioResult>,
pub notes: Option<String>,
}Expand description
Full performance report for one named machine run.
Fields§
§schema_version: u32§evidence_version: String§hardware: NamedHardwareProfile§aurum_version: Option<String>§commit: Option<String>§rustc: Option<String>§target_triple: Option<String>§build_profile: Option<String>§features: Option<String>§whisper_cpp_version: Option<String>§onnx_runtime_version: Option<String>§model_digests: BTreeMap<String, String>model_id → sha256
cache_state: Option<String>§scenarios: Vec<PerfScenarioResult>§notes: Option<String>Implementations§
Source§impl PerfReport
impl PerfReport
pub fn new(hardware: NamedHardwareProfile) -> Self
pub fn load(path: &Path) -> Result<Self>
pub fn to_json_pretty(&self) -> Result<String>
pub fn to_markdown(&self) -> String
Trait Implementations§
Source§impl Clone for PerfReport
impl Clone for PerfReport
Source§fn clone(&self) -> PerfReport
fn clone(&self) -> PerfReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PerfReport
impl Debug for PerfReport
Source§impl<'de> Deserialize<'de> for PerfReport
impl<'de> Deserialize<'de> for PerfReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for PerfReport
impl PartialEq for PerfReport
Source§impl Serialize for PerfReport
impl Serialize for PerfReport
impl StructuralPartialEq for PerfReport
Auto Trait Implementations§
impl Freeze for PerfReport
impl RefUnwindSafe for PerfReport
impl Send for PerfReport
impl Sync for PerfReport
impl Unpin for PerfReport
impl UnsafeUnpin for PerfReport
impl UnwindSafe for PerfReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more