pub struct SolverStats {
pub total_time_ms: f64,
pub matrix_ops_time_ms: f64,
pub convergence_check_time_ms: f64,
pub matvec_count: usize,
pub vector_ops_count: usize,
pub peak_memory_bytes: usize,
pub cache_misses: Option<usize>,
pub flops: Option<f64>,
pub simd_used: bool,
pub thread_count: usize,
}Expand description
Comprehensive statistics about solver execution.
Fields§
§total_time_ms: f64Total wall-clock time for solving
matrix_ops_time_ms: f64Time spent in matrix operations
convergence_check_time_ms: f64Time spent in convergence checking
matvec_count: usizeNumber of matrix-vector multiplications performed
vector_ops_count: usizeNumber of vector operations (add, scale, etc.)
peak_memory_bytes: usizePeak memory usage in bytes
cache_misses: Option<usize>Number of cache misses (if available)
flops: Option<f64>FLOPS (floating-point operations per second) achieved
simd_used: boolWhether SIMD optimizations were used
thread_count: usizeNumber of parallel threads used
Implementations§
Source§impl SolverStats
impl SolverStats
Sourcepub fn matrix_ops_percentage(&self) -> f64
pub fn matrix_ops_percentage(&self) -> f64
Calculate matrix operations percentage of total time.
Sourcepub fn convergence_percentage(&self) -> f64
pub fn convergence_percentage(&self) -> f64
Calculate convergence checking percentage of total time.
Trait Implementations§
Source§impl Clone for SolverStats
impl Clone for SolverStats
Source§fn clone(&self) -> SolverStats
fn clone(&self) -> SolverStats
Returns a duplicate of the value. Read more
1.0.0 · 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 SolverStats
impl Debug for SolverStats
Source§impl Default for SolverStats
impl Default for SolverStats
Source§impl<'de> Deserialize<'de> for SolverStats
impl<'de> Deserialize<'de> for SolverStats
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 SolverStats
impl PartialEq for SolverStats
Source§impl Serialize for SolverStats
impl Serialize for SolverStats
impl StructuralPartialEq for SolverStats
Auto Trait Implementations§
impl Freeze for SolverStats
impl RefUnwindSafe for SolverStats
impl Send for SolverStats
impl Sync for SolverStats
impl Unpin for SolverStats
impl UnwindSafe for SolverStats
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