You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/06 Test Types/00 Load test types.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ The main types are as follows. Each type has its own article outlining its essen
34
34
35
35
<Blockquotemod="note"title="">
36
36
37
-
In k6 scripts, configure load in the[`options`](/using-k6/k6-options/reference/) object with [Scenarios](/using-k6/scenarios) (or the [`stages` shortcut](/using-k6/k6-options/reference/#stages)). This separates workload configuration from iteration logic.
37
+
In k6 scripts, configure the load configuration using[`options`](/get-started/running-k6/#using-options)or [`scenarios`](/using-k6/scenarios). This separates workload configuration from iteration logic.
38
38
39
39
</Blockquote>
40
40
@@ -44,12 +44,12 @@ The following table provides some broad comparisons.
| Smoke | Low |Quick (seconds or minutes) |Every time new code or a change is done. It checks scripts, baseline system metrics, and deviations from changes|
48
-
| Load | Average production | Mid (15-60 minutes) | Often to check system maintains performance with average use |
49
-
| Stress | High (above average) | Mid (15-60 minutes) | When system may receive above-average loads to check how it manages |
50
-
| Soak | Average | Long (hours) | After changes to check system under prolonged continuous use |
51
-
| Spike | Very high |Quick (seconds to minutes) |Rarely, when system risks sudden rush|
52
-
| Breakpoint | Increases until break | As long as necessary | A few times to find the upper limits of the system |
47
+
|[Smoke](/test-types/smoke-testing)| Low |Short (seconds or minutes) |When the relevant system or application code changes. It checks functional logic, baseline metrics, and deviations |
48
+
|[Load](/test-types/load-testing)| Average production | Mid (5-60 minutes) | Often to check system maintains performance with average use |
49
+
|[Stress](/test-types/stress-testing)| High (above average) | Mid (5-60 minutes) | When system may receive above-average loads to check how it manages |
50
+
|[Soak](/test-types/soak-testing)| Average | Long (hours) | After changes to check system under prolonged continuous use |
51
+
|[Spike](/test-types/spike-testing)| Very high |Short (a few minutes) |When the system prepares for seasonal events or receives frequent traffic peaks|
52
+
|[Breakpoint](/test-types/breakpoint-testing)| Increases until break | As long as necessary | A few times to find the upper limits of the system |
53
53
54
54
55
55
## General recommendations
Collapse file: src/data/markdown/translated-guides/en/06 Test Types/01 Smoke Testing.md
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/06 Test Types/01 Smoke Testing.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,19 @@ excerpt: "A Smoke test is a minimal load test to run when you create or modify a
5
5
---
6
6
7
7
Smoke tests have a minimal load.
8
-
Run them to verify that the script works well, the system functions under minimal load, and to gather baseline performance values.
8
+
Run them to verify that the system works wellunder minimal load and to gather baseline performance values.
9
9
10
-
This test type consists of running tests with only one or a few VUs. Keep the number to 5 VUs or less.
11
-
Exceeding 5 could turn the test into a mini-load test.
12
-
Similarly, the test shouldn't have many iterations. 3 to 10 iterations should be enough (or an iteration duration with a short period).
10
+
This test type consists of running tests with a few VUs — more than 5 VUs could be considered a mini-load test.
11
+
12
+
Similarly, the test should execute for a short period, either a low number of [iterations](/using-k6/k6-options/reference/#iterations)or a [duration](/using-k6/k6-options/reference/#duration) from seconds to a few minutes maximum.
13
13
14
14

15
15
16
16
In some testing conversation, smoke tests are also called shakeout tests.
17
17
18
18
## When to run a Smoke test
19
19
20
-
Teams should run smoke tests whenever a test script is created or updated. Smoke testing should also be done every time the application code is updated.
20
+
Teams should run smoke tests whenever a test script is created or updated. Smoke testing should also be done whenever the relevant application code is updated.
21
21
22
22
It's a good practice to run a smoke test as a first step, with the following goals:
23
23
@@ -37,7 +37,7 @@ When you prepare a smoke test, consider the following:
37
37
38
38
-**Keep throughput small and duration short**
39
39
40
-
Configure your test script to be executed by a small number of VUs (from 2 to 5) with few iterations (3 to 10) or brief durations (30 to 60 seconds).
40
+
Configure your test script to be executed by a small number of VUs (from 2 to 20) with few iterations or brief durations (30 seconds to 3 minutes).
41
41
42
42
## Smoke testing in k6
43
43
@@ -67,7 +67,7 @@ export default () => {
67
67
68
68
69
69
The following script is an example smoke test. You can copy it, change the endpoints, and start testing. For more comprehensive test logic, refer to [Examples](/examples).
70
-
The VU chart of a smoke test should look similar to this. Again, a smoke test should use only 2 or 3 VUs and run for only a brief period.
70
+
The VU chart of a smoke test should look similar to this.
71
71
72
72

73
73
Collapse file: src/data/markdown/translated-guides/en/06 Test Types/02 Load Testing.md
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/06 Test Types/02 Load Testing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ When you prepare an average-load test, consider the following:
32
32
To find this, look through APMs or analytic tools that provide information from the production environment. If you can't access such tools, the business must provide these estimations.
33
33
***Gradually increase load to the target average.**
34
34
35
-
That is, use a _ramp-up period_. This period usually lasts 1, 2, 5, or 10 minutes. A ramp-up period has many essential uses:
35
+
That is, use a _ramp-up period_. This period usually lasts between 5% and 15% of the total test duration. A ramp-up period has many essential uses:
36
36
* It gives your system time to warm up or auto-scale to handle the traffic.
37
37
* It lets you compare response times between the low-load and average-load stages.
38
38
* If you run tests using our cloud service, a ramp up lets the automated performance alerts understand the expected behavior of your system.
Collapse file: src/data/markdown/translated-guides/en/06 Test Types/03 Stress testing.md
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/06 Test Types/03 Stress testing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ In some testing conversation, stress tests might also be called rush-hour, surge
17
17
## When to perform a Stress test
18
18
19
19
Stress tests verify the stability and reliability of the system under conditions of heavy use.
20
-
Systems may receive higher than usual workloads on unusual moments such as process deadlines, paydays, rush hours, ends of the workweek, and many other isolated behaviors that might combine to create high-load events.
20
+
Systems may receive higher than usual workloads on unusual moments such as process deadlines, paydays, rush hours, ends of the workweek, and many other behaviors that might cause frequent higher-than-average traffic.
21
21
22
22
## Considerations
23
23
Collapse file: src/data/markdown/translated-guides/en/06 Test Types/06-spike-testing.md
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/06 Test Types/06-spike-testing.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,26 +3,26 @@ title: 'Spike testing'
3
3
excerpt: 'Spike tests simulate moments of short, extreme load'
4
4
---
5
5
6
-
A spike test verifies whether the system survives and performs under sudden and massive rushes of utilization. It is one of the least common tests.
6
+
A spike test verifies whether the system survives and performs under sudden and massive rushes of utilization.
7
7
8
8
Spike tests are useful when the system may experience events of sudden and massive traffic.
9
-
Examples of such events include ticket sales (ComicCon, Taylor Swift), product launches (PS5, fashion apparel), sale announcements (Super Bowl ads), process deadlines (tax declaration), and seasonal sales (Black Friday, Christmas, St.Valentine).
9
+
Examples of such events include ticket sales (Taylor Swift), product launches (PS5), broadcast ads (Super Bowl), process deadlines (tax declaration), and seasonal sales (Black Friday). Also, spikes in traffic could be caused by more frequent events such as rush hours, a particular task, or a use case.
10
10
11
11
Spike testing increases to extremely high loads in a very short or non-existent ramp-up time.
12
12
Usually, it has no plateau period or is very brief, as real users generally do not stick around doing extra steps in these situations. In the same way, the ramp-down is very fast or non-existent, letting the process iterate only once.
13
13
14
-
This test usually includes very different processes than the previous test types, as these processes often aren't part of an average day in production. A recommendation is to automate the processes with heavy demand during the event. It may also require adding, removing, or modifying processes on the script that were not in the average-load tests.
14
+
This test might include different processes than the previous test types, as spikes often aren't part of an average day in production. It may also require adding, removing, or modifying processes on the script that were not in the average-load tests.
15
15
16
16
Occasionally, teams should revamp the system to allow or prioritize resources for the high-demand processes during the event.
17
17
18
18

19
19
20
20
## When to perform a spike test
21
21
22
-
Spike testing is the least frequent test type. This test must be executed when the system expects to receive a sudden rush of activity, which is not a common behavior on most platforms.
22
+
This test must be executed when the system expects to receive a sudden rush of activity.
23
23
24
24
25
-
When the system expects this type of behavior, the spike test helps identify how the system will behave and if it will survive the sudden rush of load. The load is considerably above the average and frequently focuses on a different set of processes than the other test types.
25
+
When the system expects this type of behavior, the spike test helps identify how the system will behave and if it will survive the sudden rush of load. The load is considerably above the average and might focus on a different set of processes than the other test types.
26
26
27
27
28
28
## Considerations
@@ -31,13 +31,13 @@ When preparing for a spike test, consider the following:
31
31
32
32
***Focus on key processes in this test type.**
33
33
34
-
Generally, the processes triggered are different from the other test types.
34
+
Assess whether the spike in traffic triggers the same or different processes from the other test types. Create test logic accordingly.
35
35
***The test often won't finish.**
36
36
37
-
Errors are common under these scenarios
37
+
Errors are common under these scenarios.
38
38
***Run, tune, repeat.**
39
39
40
-
When your system is at risk of spike events, the team must run a spikes test and tune the system several times
40
+
When your system is at risk of spike events, the team must run a spikes test and tune the system several times.
41
41
***Monitor.**
42
42
43
43
Backend monitoring is a must for successful outcomes of this test.
@@ -87,5 +87,5 @@ A spike test gets its name from the shape of its load when represented graphical
87
87
88
88
Some performance metrics to assess in spike tests include pod speeds, recovery times after the load rush, time to return to normal, or the behavior on crucial system processes during the overload.
89
89
90
-
Finding how the system responds (if it survives) to the sudden rush helps to optimize it to guarantee that it can perform during a real event. Often the load is so high that the whole system may have to be optimized to deal with the key processes. In these cases, repeat the test until the system confidence is high.
90
+
Finding how the system responds (if it survives) to the sudden rush helps to optimize it to guarantee that it can perform during a real event. In some events, the load is so high that the whole system may have to be optimized to deal with the key processes. In these cases, repeat the test until the system confidence is high.
91
91
Collapse file: src/data/markdown/translated-guides/en/06 Test Types/07-breakpoint-testing.md
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/06 Test Types/07-breakpoint-testing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Teams execute a breakpoint test whenever they must know their system's diverse l
27
27
* If current resource consumption is considered high
28
28
* After significant changes to the code-base or infrastructure.
29
29
30
-
How often to run this test type depends on the risk of reaching the system limits and the number of changes and code additions.
30
+
How often to run this test type depends on the risk of reaching the system limits and the number of changes to provision infrastructure components.
31
31
32
32
Once the breakpoint runs and the system limits have been identified, you can repeat the test after the tuning exercise to validate how it impacted limits. Repeat the test-tune cycle until the team is satisfied.
0 commit comments