https://github.com/lynix28/loadtest-k6-example
API Load testing example using K6 by Grafana Labs
https://github.com/lynix28/loadtest-k6-example
k6 performance-testing
Last synced: 6 months ago
JSON representation
API Load testing example using K6 by Grafana Labs
- Host: GitHub
- URL: https://github.com/lynix28/loadtest-k6-example
- Owner: lynix28
- Created: 2022-04-02T13:59:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-30T15:46:21.000Z (about 2 years ago)
- Last Synced: 2025-02-08T14:13:20.102Z (8 months ago)
- Topics: k6, performance-testing
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# loadtest-k6-example
[](https://circleci.com/gh/lynix28/loadtest-k6-example/tree/master)Performance testing script example using Grafana K6
---
Script example:
- Check in `script-example` directory
- For the GRPC test example, you need to build and run a Dummy GRPC Server.\
I provide the sample dummy server to run, check in `support-files`, use Docker / NodeJS.How to run in local:
- Running the single script: \
`k6 run .script-example/http-loadtest-constant-rate.js`
- Running the modular script: \
`k6 run ./test.js -c ./config.json`
- Add these arguments if you wish to save the test logs and results as a JSON.\
`--log-output file=reports/k6.log --log-format json --summary-export reports/report.json`Test report:
K6 + Shoutrrr:
Do u want to run the test with notification but u do not have K6 Cloud membership ?
U can use **'Shoutrrr'**, but need some setup to make it work, for example u can check my `Dockerfile` and `run.sh` (sorry the shell-script it quite mess).After u done with the setup, u can run it by this command
`./run.sh pipeline test.js discord $DISCORD_TOKEN $DISCORD_WEBHOOKID` (remember to give the **'run.sh'** an execute permission)
Once u do it correctly, It will show like this