![Forrest logo](/images/logo.png)
k6:tldr:8e2bd
k6: Run load test locally and discard response bodies (significantly faster).
$ k6 run --discard-response-bodies ${script-js}
try on your machine
The given command is using the k6 load testing tool to run a JavaScript script and discard the response bodies during the execution.
Here's the breakdown of the command:
k6
: This is the executable or command to run the k6 tool.run
: This is the action to execute a load test using k6.--discard-response-bodies
: This flag tells k6 to discard the response bodies received during the test run. This means that the actual content of the responses will not be stored in memory or reported in the test results, which can save memory resources.${script-js}
: This is a placeholder for the path or filename of the JavaScript script you want to run. Replace${script-js}
with the actual path or filename of the script.
Overall, the command will run a load test using the specified JavaScript script and discard the response bodies received from the test requests.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.