Like Unit Testing, for Performance

Pass/Fail behavior for easy automation and integration into CI pipelines


5 steps for automated performance testing:

1import http from "k6/http";
3export default function() {
4 const data = {username: 'name', password: 'pw'};
5'', data);

1. Write your load test

Use the k6 Javascript API to write simple or realistic load test.

1export let options = {
2 thresholds: {
3 "http_req_duration": ["p(95)<1000"],
4 "http_req_failed": ["rate<0.01"],
5 }

2. Configure performance thresholds

- 95th percentile response time must be below 1s.
- HTTP errors must be less than 1%.

Running the test (100VUs, 2m), please wait...
Test Run Successful
Total thresholds: 2. Passed: 2. Failed: 0.

3. Run the test and check the pass/fail status

Test many load configurations to ensure your performance goals in multiple situations.

4. Automate your performance tests

Run your tests frequently to be confident in your system's performance.

Schedule your test execution and integrate your tests into CI pipelines.

Performance test

Checkout API. 2 of 4 thresholds failed.

Performance test

Checkout API. 4 of 4 thresholds passed.

5. Receive alerts on performance regressions

Configure your notifications and get alerts if any change breaks your performance goals.