grafana / pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
https://grafana.com/oss/pyroscope/
GNU Affero General Public License v3.0
9.65k stars 576 forks source link

Add initial load tests #3331

Closed bryanhuhta closed 4 weeks ago

bryanhuhta commented 1 month ago

This is the initial pass at adding load tests with k6. Right now we only are testing read APIs. To run a load test against a local Pyroscope, run:

./tools/k6/run.sh reads.js

To run a load test against a remote Pyroscope, configure your .env file correctly (see tools/k6/README.md for more details) and run:

./tools/k6/run.sh -c reads.js

To view all available load tests, run

./tools/k6/run.sh -h