pub struct BenchmarkConfig {
pub quiet_cpu_pct: f32,
pub quiet_gpu_pct: f32,
pub quiet_secs: u64,
pub max_quiet_wait_secs: u64,
}Expand description
When the machine counts as quiet enough for a benchmark.
Fields§
§quiet_cpu_pct: f32Total CPU load at or below which the machine is quiet.
quiet_gpu_pct: f32GPU engine load at or below which the machine is quiet.
quiet_secs: u64The window the loads are averaged over once no other lease is active. The machine is quiet when both averages are at or below their limits.
max_quiet_wait_secs: u64How long a drained machine may stay above the limits before a waiting benchmark is
granted anyway, marked as not quiet. At least quiet_secs.
Trait Implementations§
Source§impl Clone for BenchmarkConfig
impl Clone for BenchmarkConfig
Source§impl Debug for BenchmarkConfig
impl Debug for BenchmarkConfig
Source§impl Default for BenchmarkConfig
impl Default for BenchmarkConfig
Source§impl<'de> Deserialize<'de> for BenchmarkConfigwhere
BenchmarkConfig: Default,
impl<'de> Deserialize<'de> for BenchmarkConfigwhere
BenchmarkConfig: Default,
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 BenchmarkConfig
impl PartialEq for BenchmarkConfig
Source§impl Serialize for BenchmarkConfig
impl Serialize for BenchmarkConfig
impl StructuralPartialEq for BenchmarkConfig
Auto Trait Implementations§
impl Forget for BenchmarkConfig
impl Freeze for BenchmarkConfig
impl RefUnwindSafe for BenchmarkConfig
impl Send for BenchmarkConfig
impl Sync for BenchmarkConfig
impl Unpin for BenchmarkConfig
impl UnsafeUnpin for BenchmarkConfig
impl UnwindSafe for BenchmarkConfig
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