pub struct LoadPacing {
pub mode: LoadPacingMode,
pub value: f64,
}Expand description
Adaptive iteration pacing (think-time) for a load scenario: a target
per-virtual-user iteration cycle time. Applies only to the closed-model VU
loop. Maps to the LoadPacing schema.
Fields§
§mode: LoadPacingModeHow the target iteration cycle is derived from value.
value: f64For CONSTANT_PACING the target cycle in milliseconds; for
CONSTANT_THROUGHPUT the target iterations/second per VU. Must be > 0
when mode is not NONE.
Implementations§
Source§impl LoadPacing
impl LoadPacing
Sourcepub fn new(mode: LoadPacingMode, value: f64) -> Self
pub fn new(mode: LoadPacingMode, value: f64) -> Self
Create a pacing rule with the given mode and value.
Sourcepub fn constant_pacing(cycle_millis: f64) -> Self
pub fn constant_pacing(cycle_millis: f64) -> Self
CONSTANT_PACING: target a per-VU iteration cycle of cycle_millis.
Sourcepub fn constant_throughput(iterations_per_second: f64) -> Self
pub fn constant_throughput(iterations_per_second: f64) -> Self
CONSTANT_THROUGHPUT: target iterations_per_second per VU.
Trait Implementations§
Source§impl Clone for LoadPacing
impl Clone for LoadPacing
Source§fn clone(&self) -> LoadPacing
fn clone(&self) -> LoadPacing
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 LoadPacing
impl Debug for LoadPacing
Source§impl<'de> Deserialize<'de> for LoadPacing
impl<'de> Deserialize<'de> for LoadPacing
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 LoadPacing
impl PartialEq for LoadPacing
Source§fn eq(&self, other: &LoadPacing) -> bool
fn eq(&self, other: &LoadPacing) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LoadPacing
impl Serialize for LoadPacing
impl StructuralPartialEq for LoadPacing
Auto Trait Implementations§
impl Freeze for LoadPacing
impl RefUnwindSafe for LoadPacing
impl Send for LoadPacing
impl Sync for LoadPacing
impl Unpin for LoadPacing
impl UnsafeUnpin for LoadPacing
impl UnwindSafe for LoadPacing
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