Fixed Schedule Benchmarking
Fixed schedule benchmarking provides precise timing control by executing requests at specific timestamps. This mode is ideal for simulating exact traffic patterns, testing temporal performance characteristics, and reproducing time-sensitive scenarios.
Overview
Fixed schedule mode enables:
- Precise Timing: Execute requests at exact millisecond intervals
- Traffic Simulation: Replicate real-world traffic patterns
- Performance Analysis: Identify how response times vary with request timing
- Load Testing: Test system behavior under controlled temporal stress patterns
Fixed Schedule File Format
Fixed schedule files use JSONL format with timestamp-based entries:
Field Descriptions:
timestamp: Milliseconds from schedule start when request should be sentinput_length: Number of tokens in the input promptinput_text: Exact text to send in the request (provided instead of input_length)output_length: Maximum number of tokens in the response (optional)hash_ids: Hash block identifiers to simulate text reuse with 512-token blocks (optional)
Basic Fixed Schedule Execution
Setting Up the Server
Running Basic Fixed Schedule
Sample Output (Successful Run):
Key Parameters:
--fixed-schedule-auto-offset: Automatically adjusts timestamps to start from 0
Advanced Schedule Patterns
Time Window Execution
Execute only a portion of the schedule using start and end offsets:
Sample Output (Successful Run):
Windowing Parameters:
--fixed-schedule-start-offset 2000: Start execution at 2000ms timestamp--fixed-schedule-end-offset 4000: End execution at 4000ms timestamp
Use Cases
When to Use Fixed Schedule Benchmarking:
- Traffic Replay: Reproduce exact timing patterns from production logs
- Temporal Analysis: Study how performance varies with request timing
- Peak Load Testing: Test system behavior during known high-traffic periods
- SLA Validation: Verify performance under specific timing constraints
- Capacity Planning: Model future load based on projected growth patterns
- Regression Testing: Ensure temporal performance characteristics remain stable
Related Tutorials
- Custom Prompt Benchmarking - For sending custom prompts without timing control
- Time-based Benchmarking - For duration-based testing
- Request Cancellation - For timeout testing