guidellm.benchmark.profiles.asynchronous
Async (constant/poisson rate) benchmark profile.
AsyncProfile
Bases: Profile
Schedule requests at specified rates using constant or Poisson patterns.
Schedules requests at specified rates using either constant interval or Poisson distribution patterns for realistic load simulation.
Source code in src/guidellm/benchmark/profiles/asynchronous.py
strategy_types property
Returns:
| Type | Description |
|---|---|
list[str] | Async strategy types for each configured rate |
next_strategy(prev_strategy, prev_benchmark)
Generate async strategy for next configured rate.
If a previous rate was terminated by a constraint with stopping_scope='all', remaining rates are skipped.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prev_strategy | SchedulingStrategy | None | Previously completed strategy | required |
prev_benchmark | Benchmark | None | Benchmark results from previous execution | required |
Returns:
| Type | Description |
|---|---|
AsyncConstantStrategy | AsyncPoissonStrategy | None | AsyncConstantStrategy or AsyncPoissonStrategy for next rate, or None if all rates completed or escalation halted |
Raises:
| Type | Description |
|---|---|
ValueError | If strategy_type is neither 'constant' nor 'poisson' |
Source code in src/guidellm/benchmark/profiles/asynchronous.py
AsyncProfileArgs
Bases: ProfileArgs
Pydantic model for asynchronous profile creation arguments.