trustification / scale-testing

Utilities for testing trustification at scale
Apache License 2.0
0 stars 4 forks source link

add simple set of goose load tests #14

Closed JimFuller-RedHat closed 3 months ago

JimFuller-RedHat commented 3 months ago

Adds a standalone setset of goose loadtests.

To setup check out README.md, to load trustify endpoints with 3 concurrent users.

> cargo run --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.

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

Note - opted to just wrap oidc-cli instead of pull over a lot of code ... also it was handy to be able to reuse oidc-cli client when encountering problems to manually test with auth token with curl.

helio-frota commented 3 months ago

nice that you added --release I forgot to do it :man_facepalming: