This project demonstrates different Types of Performance Testing with Grafana/K6.
- Smoke Testing: Quick tests to check the basic functionality of the application.
- Load Testing: Evaluates how the system behaves under expected load conditions.
- Stress Testing: Determines the system's robustness by testing beyond normal operational capacity.
- Spike Testing: Assesses system performance under sudden, sharp increases in load.
- Soak (Endurance) Testing: Tests the system's stability and performance over an extended period.
- Breakpoint Testing: Identifies the point at which the system fails or its performance degrades significantly.
In addition you can use k6 Cloud to run the tests and get some nice reports.
-
Create a Grafana Cloud account:
- Use an existing account or register with your email and a password - Grafana Cloud
-
Navigate to k6 Cloud:
- After registration, find your way to the k6 Cloud section since Grafana offers multiple products - k6 Cloud
-
Log in to k6 Cloud:
- Use the k6 CLI to connect to your cloud account. You'll need an API token.
-
Obtain Your API Token:
- Go to k6 Cloud
- Navigate to Testing & Synthetics -> Performance -> Settings
- Copy your personal API token
-
Login via Terminal:
k6 login cloud --token {your-token}
- Go to Testing & Synthetics -> Performance -> Projects
- Run your script in the terminal
k6 cloud {your-script-name}.js
Contributions are welcome! Please submit a pull request or open an issue to discuss your changes.
This project is licensed under the MIT License. See the LICENSE file for details.