Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Jul 25, 2024
1 parent bdcb20d commit e7cfbaa
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions loadtests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,36 @@
A set of simple [goose](https://book.goose.rs/) load tests against the web and rest endpoints.

## quickstart
1. Ensure trustify is running.

2. Install oidc-cli:
```bash
cargo install oidc-cli
```
1. Ensure trustify is running.

3. Set environment variables for OIDC authentication:
2. Set environment variables for OIDC authentication:
```bash
export ISSUER_URL = "http://localhost:8090/realms/trustify"
export CLIENT_ID = "testing-user"
export CLIENT_SECRET = "****************"
```

To change wait times between http invokes set the following env vars:
```bash
> export WAIT_TIME_FROM = 1
> export WAIT_TIME_TO = 2
```
To change wait times between http invokes set the following env vars:

Alternately, for no wait times between http invokes set these env vars to 0.
```bash
export WAIT_TIME_FROM = 1
export WAIT_TIME_TO = 2
```

4. To load trustify endpoints with 3 concurrent users.
Alternately, for no wait times between http invokes set these env vars to 0.

3. To load trustify endpoints with 3 concurrent users.
```bash
cargo run --release --bin loadtest -- --host http://localhost:8080 -u 3
```
To stop load test hit [ctl-C], which should generate aggregate statistics.

To load trustify endpoints against 10 concurrent users, generating an html report.
```bash
cargo run --release -- --host http://localhost:8080 --report-file=report.html --no-reset-metrics -u 10
```
To stop load test hit [ctl-C], which should generate aggregate statistics.

To load trustify endpoints against 10 concurrent users, generating an html report.

```bash
cargo run --release -- --host http://localhost:8080 --report-file=report.html --no-reset-metrics -u 10
```

5. More goose run-time options [here](https://book.goose.rs/getting-started/runtime-options.html)
4. More goose run-time options [here](https://book.goose.rs/getting-started/runtime-options.html)

0 comments on commit e7cfbaa

Please sign in to comment.