Struct usl::Measurement [−][src]
Expand description
A simultaneous measurement of at least two of the parameters of Little’s Law: concurrency, throughput, and latency. The third parameter is inferred from the other two.
Measurement instances can be created from pairs of dimensional types: u32
for the number of
concurrent events, f64
for the average rate of events, and Duration
for the average duration
of events:
use usl::Measurement;
use std::time::Duration;
let m: Measurement = (30, 1000.0).into();
let m: Measurement = (1000.0, 30).into();
let m: Measurement = (30, Duration::from_millis(200)).into();
let m: Measurement = (Duration::from_millis(200), 30).into();
let m: Measurement = (1000.0, Duration::from_millis(200)).into();
let m: Measurement = (Duration::from_millis(200), 1000.0).into();
Fields
n: f64
The average number of concurrent events.
x: f64
The long-term arrival rate of events, in events/sec.
r: f64
The average duration of events, in seconds.
Implementations
Create a measurement of a system’s latency at a given level of concurrency. The throughput of the system is derived via Little’s Law.
Create a measurement of a system’s throughput at a given level of concurrency. The latency of the system is derived via Little’s Law.
Create a measurement of a system’s latency at a given level of throughput. The concurrency of the system is derived via Little’s Law.
Trait Implementations
Creates a value from an iterator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl UnwindSafe for Measurement
Blanket Implementations
Mutably borrows from an owned value. Read more