pub struct WorkloadConfig {
pub dataset_path: Option<String>,
pub arrival_pattern: String,
pub arrival_rate: f64,
pub input_len_dist: LengthDistribution,
pub output_len_dist: LengthDistribution,
pub num_requests: Option<usize>,
pub num_concurrent_users: Option<usize>,
pub duration_secs: Option<f64>,
pub seed: u64,
}Fields§
§dataset_path: Option<String>Path to dataset file (JSONL in OpenAI batch API format) If provided, dataset mode is used instead of synthetic workload
arrival_pattern: StringArrival pattern: “poisson”, “uniform”, “burst”, “fixed_rate”, “closed_loop”, “batched”
arrival_rate: f64Mean arrival rate (requests per second) Not used for “closed_loop” or “batched” patterns
input_len_dist: LengthDistributionInput sequence length distribution (ignored in dataset mode)
output_len_dist: LengthDistributionOutput sequence length distribution (ignored in dataset mode)
num_requests: Option<usize>Total number of requests to simulate (None = run until duration)
num_concurrent_users: Option<usize>Number of concurrent users for closed-loop pattern Each user immediately sends a new request when their previous one completes
duration_secs: Option<f64>Simulation duration in seconds (None = run until num_requests)
seed: u64Random seed for reproducibility
Trait Implementations§
Source§impl Clone for WorkloadConfig
impl Clone for WorkloadConfig
Source§fn clone(&self) -> WorkloadConfig
fn clone(&self) -> WorkloadConfig
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 WorkloadConfig
impl Debug for WorkloadConfig
Source§impl<'de> Deserialize<'de> for WorkloadConfig
impl<'de> Deserialize<'de> for WorkloadConfig
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
Auto Trait Implementations§
impl Freeze for WorkloadConfig
impl RefUnwindSafe for WorkloadConfig
impl Send for WorkloadConfig
impl Sync for WorkloadConfig
impl Unpin for WorkloadConfig
impl UnsafeUnpin for WorkloadConfig
impl UnwindSafe for WorkloadConfig
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