pub struct PerformanceMetrics {
pub executiontime: f64,
pub cache_efficiency: f64,
pub simd_utilization: f64,
pub parallel_efficiency: f64,
pub memory_bandwidth: f64,
pub strategy_used: OptimizationStrategy,
}
Expand description
Performance metrics for reinforcement learning
Fields§
§executiontime: f64
§cache_efficiency: f64
§simd_utilization: f64
§parallel_efficiency: f64
§memory_bandwidth: f64
§strategy_used: OptimizationStrategy
Implementations§
Source§impl PerformanceMetrics
impl PerformanceMetrics
Sourcepub fn new(
execution_time: f64,
cache_efficiency: f64,
simd_utilization: f64,
parallel_efficiency: f64,
memory_bandwidth: f64,
strategy_used: OptimizationStrategy,
) -> Self
pub fn new( execution_time: f64, cache_efficiency: f64, simd_utilization: f64, parallel_efficiency: f64, memory_bandwidth: f64, strategy_used: OptimizationStrategy, ) -> Self
Create new performance metrics
Sourcepub fn compute_reward(&self, baseline_time: f64) -> f64
pub fn compute_reward(&self, baseline_time: f64) -> f64
Compute reward for reinforcement learning
Sourcepub fn performance_score(&self) -> f64
pub fn performance_score(&self) -> f64
Get overall performance score
Trait Implementations§
Source§impl Clone for PerformanceMetrics
impl Clone for PerformanceMetrics
Source§fn clone(&self) -> PerformanceMetrics
fn clone(&self) -> PerformanceMetrics
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 moreAuto Trait Implementations§
impl Freeze for PerformanceMetrics
impl RefUnwindSafe for PerformanceMetrics
impl Send for PerformanceMetrics
impl Sync for PerformanceMetrics
impl Unpin for PerformanceMetrics
impl UnwindSafe for PerformanceMetrics
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,
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