etalab / annuaire-entreprises-sirene-api

MIT License
15 stars 11 forks source link

Add load testing tooling #1

Open abulte opened 3 years ago

abulte commented 3 years ago

Proposal for load testing. It uses https://k6.io.

I added a simple script to benchmark the search endpoint: as many requests as possible for a minute with 10 concurrent users.

I like the fact that we can persist the results (cf loadtest/results/search) and compare them over time. We probably should run those on a CI though, or a designated server to avoid factors linked to local setup.

Use make loadtest to give it a try, after installing k6.

abulte commented 3 years ago

See here for RPS https://github.com/etalab/api-annuaire-entreprises/pull/1/files#diff-1066280af89b385403a8fae190bdcc5033c1aceaf01c0984c141fa78c85cb82fR72