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: dotcom-rendering/scripts/perf/k6/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,14 @@ From the k6 directory run (for example with v0.58.0)
20
20
./k6-v0.58.0-macos-arm64/k6 run k6.mjs
21
21
```
22
22
23
-
The current script `k6.mjs` loads a locally saved JSON payload which will then POST to the DCR `/Article` endpoint. The local payload file removes the fetching of the JSON payload from the test scenario.
23
+
The current script `k6.mjs` loads a locally saved JSON payload which will then POST to the DCR `/Article` endpoint. Using a local payload file and the PROD POST endpoint mimics production and also removes the step of a network fetch of the JSON payload from Frontend from the test scenario.
24
24
25
25
You can of course configure this to be any payload and endpoint you wish.
26
26
27
27
## Testing Advice
28
28
29
+
Test against a PROD build and endpoints.
30
+
29
31
Run the script 2-3 times to warm the app and instance if working from a cold start.
30
32
31
33
k6 can consume lots of memory, so ideally you shouldn't run it on the same compute as the app you are load testing.
0 commit comments