A k6-based performance testing framework designed to validate system reliability and scalability under different traffic conditions such as load, stress, spike, mixed user journeys, and endurance testing. The project includes SLA validation and CI/CD integration using GitHub Actions.
- Load Testing using k6
- Stress Testing to find system breaking point
- Spike Testing for sudden traffic bursts
- Mixed User Journey simulation
- Endurance (Soak) Testing
- SLA validation using thresholds
Performance tests execute automatically using GitHub Actions whenever code is pushed.
Pipeline:
- Installs k6
- Executes all test scenarios
- Validates SLA thresholds
- Ensures no performance regression is introduced
| Test Type | P95 Response Time | Failure Rate | Evidence |
|---|---|---|---|
| Load Test | 14.19ms | 0.00% | View |
| Stress Test | 29.41ms | 0.00% | View |
| Spike Test | 14.62ms | 0.00% | View |
| Mixed Journey | 15.92ms | 0.00% | View |
| Endurance Test | 14.28ms | 0.00% | View |
Note: All results are based on a mock API (jsonplaceholder.typicode.com). The objective of this project is to demonstrate a k6 performance testing framework, CI/CD integration, and SLA validation rather than testing production infrastructure.
- k6
- JavaScript
- GitHub Actions
scripts/
loadLogin.js
stressSearch.js
spikeTraffic.js
mixedJourney.js
enduranceTest.js