Custom Shapes
How to customize the user load shape of a test.
Custom Shapes allow you to precisely control how users ramp up and down during your tests. This is useful for advanced scenarios where a fixed or linear user load is insufficient.
Tip: The default LoadForge test settings work well for most use cases. Custom Shapes should be used when you have a specific load profile requirement.
Basic Custom Shape
This shape gradually increases users in blocks of 100 over a 10-minute test duration:
Double Wave Custom Shape
Simulates two peaks of user traffic, useful for scenarios like meal times or daily traffic fluctuations.
Stages Custom Shape
Define exact user counts at specific times.
Step Load Shape
Increases users in steps and waits at each step before increasing further.
When to Use Custom Shapes
Consider using a custom shape if:
- You need gradual user ramp-ups rather than sudden traffic spikes.
- You are simulating real-world traffic patterns, such as lunch-hour surges.
- Your application has specific scalability concerns requiring controlled increases.
Otherwise, the default LoadForge load shape is recommended for general testing.
By implementing Custom Shapes, you can fine-tune your LoadForge tests to reflect realistic user behavior and performance bottlenecks more accurately.