---
title: "Load Testing | Speedscale Docs"
description: "Load test an entire recording, selected endpoints, or complete user sessions with independent schedules and goals."
canonical: "https://docs.speedscale.com/guides/replay/load-test/"
---

[Documentation index](https://docs.speedscale.com/guides/llms.txt) | [Markdown](https://docs.speedscale.com/guides/replay/load-test/index.md) | [Canonical page](https://docs.speedscale.com/guides/replay/load-test/)

# Load Testing

Load testing shows how your service behaves as traffic increases. You can scale an entire recording, target selected endpoints, or replay complete user journeys with separate schedules and goals.

<a id="choose-a-load-test"></a>

## Choose a load test

| What you want to test | Start here |
| --- | --- |
| Increase traffic across an entire recording | [Configure replay stages](https://docs.speedscale.com/guides/replay/load-test/#load-test-an-entire-recording) below. |
| Increase one endpoint's load while keeping another steady | Follow [Test one endpoint while stressing another](https://docs.speedscale.com/guides/replay/endpoint-load-how-to/). |
| Replay complete user journeys, including login and transaction steps | Use [session load groups](https://docs.speedscale.com/guides/replay/endpoint-session-load-plans/#rotate-complete-banking-journeys). |
| Look for problems that appear under sustained load | Run a [soak test](https://docs.speedscale.com/guides/replay/load-test/#soak-test). |
| Find a load-plan field, unit, or compatibility limit | Read the [load-plan reference](https://docs.speedscale.com/reference/configuration/endpoint-load-plans/). |

<a id="independent-endpoint-and-session-workloads"></a>

## Independent endpoint and session workloads

Use [endpoint and session load plans](https://docs.speedscale.com/guides/replay/endpoint-session-load-plans/) when each workload needs its own schedule and goals. For example, ramp statement requests while holding transaction posting steady, then check posting latency during the busiest part of the test.

Select endpoints with URL filters, adding an HTTP method filter when reads and writes share a route. A request group replays those requests independently. A session group selects recorded users with a matching request and replays their complete journeys, including login and other steps.

In the dashboard, open **Test Config > Load Pattern** to add request or session groups. Set each group's filter, schedule, and goals, then use **Preview against a recording** to check selected endpoints, request ownership, and session population before running. For local replay and **Run in cluster**, use **Replay > Load plan** in `proxymock web`.

The [banking walkthrough](https://docs.speedscale.com/guides/replay/endpoint-load-how-to/) takes you through endpoint selection, rotating sessions, latency goals, and report interpretation. The [feature guide](https://docs.speedscale.com/guides/replay/endpoint-session-load-plans/) explains scheduling choices, shared arrival rates, budgets, and Kubernetes setup.

<a id="load-test-an-entire-recording"></a>

## Load test an entire recording

Use a [test config](https://docs.speedscale.com/reference/glossary/#test-config) to define the load pattern for your test. Built-in test configs cannot be modified, so start by opening [performance\_100replicas](https://app.speedscale.com/config/performance_100replicas) and clicking **Copy test config**.

![The read-only performance\_100replicas test config with its maintained by Speedscale banner and the Copy test config button](https://docs.speedscale.com/assets/images/copy-performance-100-replicas-ed114b137dafa78b7457a90424371f48.png)

Notice the existing settings on the test config like [**low data mode**](https://docs.speedscale.com/reference/glossary/#low-data-mode).

info

In low data mode only sampled response data of failures will not be sent to Speedscale for analysis. This limits the number of [RRPairs](https://docs.speedscale.com/reference/glossary/#rrpair) that will be collected and processed with [assertions](https://docs.speedscale.com/reference/glossary/#assertion), defined on the **Assertions** tab, but enables much higher throughput than can be achieved otherwise. Status codes will be compared in low data mode which determines the overall accuracy of the replay report.

Now click on the **Load Pattern** tab to configure load for the [replay](https://docs.speedscale.com/reference/glossary/#replay). From this screen you can edit and add replay stages, and the chart above the stages table previews the pattern.

![The Load Pattern tab of the copy with one stage of 100 vUsers for 300 seconds and its chart](https://docs.speedscale.com/assets/images/test-config-load-pattern-6753282c6bfc2e07a1197f2b7da51c7d.png)

A replay may have one or more stages and each stage may have a different configuration. Let's break down the settings in a stage. Click the pencil on stage 1.

![The Stage 1 dialog set to run for a fixed time of 300 seconds with 100 vUsers at full speed](https://docs.speedscale.com/assets/images/load-pattern-stage-3beb35d71aa01d2bced738e8991e2a24.png)

The left side sets the **Duration** and determines how long the stage will last. Select **Run as long as it takes to send all requests** to replay each request in the [snapshot](https://docs.speedscale.com/reference/glossary/#snapshot) once per vUser. Alternatively, select **Run for a fixed time** to cycle traffic from the snapshot until the time is reached. The **Ramp Time** moves traffic from the previous stage's level to this stage's target over the time given, and cannot exceed the stage duration.

The right side sets the **Request Volume/Speed** and determines how fast requests will be made. Select **Request rate** to set the number of [requests per second](https://docs.speedscale.com/reference/glossary/#requests-per-second) this stage will target, in TPS, or per minute with TPM. While the replay is running the [generator](https://docs.speedscale.com/reference/glossary/#generator) monitors the current rate and increases or decreases load accordingly, holding load once the target is reached. A request rate stage needs a fixed time, and the rate must be a positive whole number. Select **vUsers** instead to set the number of concurrent traffic copies, sent at **Full speed** or with the recorded delay between requests scaled by **Multiply original latency**.

Let's look at an example with multiple stages using a request rate to control load.

| Stage | Ramp time | Duration | Request Volume |
| --- | --- | --- | --- |
| 1 | 0s | 120s | 50 TPS |
| 2 | 0s | 180s | 100 TPS |
| 3 | 30s | 300s | 200 TPS |
| 4 | 45s | 45s | 1 TPS |

This load pattern would result in a replay that looks like this:

```text
| stage 1  |   stage 2  |     stage 3        |stage 4|
|---120s---|----180s----|-30s-|-----270s-----|--45s--|
     ^           ^         ^         ^           ^
     |           |         |         |           |
 stage 1         |         |         |           |
targets 50 TPS   |         |         |           |
                 |         |         |           |
              stage 2      |         |           |
            immediately    |         |           |
          targets 100 TPS  |         |           |
                           |         |           |
                     stage 3 spends  |           |
                    30s ramping from |           |
                     100 to 200 TPS  |           |
                                     |           |
                               stage 3 spends    |
                                the remaining    |
                               270s at 200 TPS   |
                                                 |
                                   stage 4 spends all of its 45s
                                   ramping down from 200 TPS to 1
```

A report's **Performance** tab shows each stage in its throughput chart. This report ran three stages: 2 vUsers for 30 seconds, a 5 second ramp to 20 vUsers held for 30 seconds, then 2 vUsers for 60 seconds.

![A load test report Performance tab where throughput jumps from about 120 to about 450 RPS during the middle stage and drops back](https://docs.speedscale.com/assets/images/replay-load-pattern-9b5cfd4f2b3d38ed3403f65dc0056e34.png)

There are several performance oriented test configs available by default to get you started.

<a id="soak-test"></a>

## Soak Test

A common use case is to use a small amount of traffic to create a high throughput or long running replay. Some issues are only exposed after sustained load exhausts a resource, which can take time. Extend your traffic with the test config **Duration** setting. This will run your traffic in a loop for the entirety of the duration.
