Skip to content

Commit

Permalink
feat(methods): Added information about method and payload options
Browse files Browse the repository at this point in the history
  • Loading branch information
nahime0 committed Nov 11, 2023
1 parent 78dd41e commit 0969867
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ In addition, the number of concurrent requests will be `1`. However, you may als
./vendor/bin/pest stress example.com --concurrency=5
```

You can choose to use GET or POST requests using the `--method` option:

```bash
./vendor/bin/pest stress example.com --method=POST
```

You can choose to use a custom payload using the `--payload` option:

```bash
./vendor/bin/pest stress example.com --method=POST --payload='{"name": "Nuno"}'
```

The concurrency value represents the number of concurrent requests that will be made to the given URL. For example, if you set the concurrency to `5`, Pest will **constantly make 5 concurrent requests** to the given URL until the stress test duration is reached.

You may want to be mindful of the number of concurrent requests you configure. If you configure too many concurrent requests, you may overwhelm your application, server or hit rate limits / firewalls.
Expand Down

0 comments on commit 0969867

Please sign in to comment.