Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 137 additions & 0 deletions k6-tests/k6-output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@

/\ Grafana /‾‾/
/\ / \ |\ __ / /
/ \/ \ | |/ / / ‾‾\
/ \ | ( | (‾) |
/ __________ \ |_|\_\ \_____/


execution: local
script: k6-tests/load-test.js
output: -

scenarios: (100.00%) 1 scenario, 10 max VUs, 1m0s max duration (incl. graceful stop):
* default: 10 looping VUs for 30s (gracefulStop: 30s)


running (0m01.0s), 10/10 VUs, 0 complete and 0 interrupted iterations
default [ 3% ] 10 VUs 01.0s/30s

running (0m02.0s), 10/10 VUs, 10 complete and 0 interrupted iterations
default [ 7% ] 10 VUs 02.0s/30s

running (0m03.0s), 10/10 VUs, 20 complete and 0 interrupted iterations
default [ 10% ] 10 VUs 03.0s/30s

running (0m04.0s), 10/10 VUs, 30 complete and 0 interrupted iterations
default [ 13% ] 10 VUs 04.0s/30s

running (0m05.0s), 10/10 VUs, 40 complete and 0 interrupted iterations
default [ 17% ] 10 VUs 05.0s/30s

running (0m06.0s), 10/10 VUs, 50 complete and 0 interrupted iterations
default [ 20% ] 10 VUs 06.0s/30s

running (0m07.0s), 10/10 VUs, 60 complete and 0 interrupted iterations
default [ 23% ] 10 VUs 07.0s/30s

running (0m08.0s), 10/10 VUs, 70 complete and 0 interrupted iterations
default [ 27% ] 10 VUs 08.0s/30s

running (0m09.0s), 10/10 VUs, 80 complete and 0 interrupted iterations
default [ 30% ] 10 VUs 09.0s/30s

running (0m10.0s), 10/10 VUs, 90 complete and 0 interrupted iterations
default [ 33% ] 10 VUs 10.0s/30s

running (0m11.0s), 10/10 VUs, 100 complete and 0 interrupted iterations
default [ 37% ] 10 VUs 11.0s/30s

running (0m12.0s), 10/10 VUs, 110 complete and 0 interrupted iterations
default [ 40% ] 10 VUs 12.0s/30s

running (0m13.0s), 10/10 VUs, 120 complete and 0 interrupted iterations
default [ 43% ] 10 VUs 13.0s/30s

running (0m14.0s), 10/10 VUs, 130 complete and 0 interrupted iterations
default [ 47% ] 10 VUs 14.0s/30s

running (0m15.0s), 10/10 VUs, 140 complete and 0 interrupted iterations
default [ 50% ] 10 VUs 15.0s/30s

running (0m16.0s), 10/10 VUs, 150 complete and 0 interrupted iterations
default [ 53% ] 10 VUs 16.0s/30s

running (0m17.0s), 10/10 VUs, 160 complete and 0 interrupted iterations
default [ 57% ] 10 VUs 17.0s/30s

running (0m18.0s), 10/10 VUs, 170 complete and 0 interrupted iterations
default [ 60% ] 10 VUs 18.0s/30s

running (0m19.0s), 10/10 VUs, 180 complete and 0 interrupted iterations
default [ 63% ] 10 VUs 19.0s/30s

running (0m20.0s), 10/10 VUs, 190 complete and 0 interrupted iterations
default [ 67% ] 10 VUs 20.0s/30s

running (0m21.0s), 10/10 VUs, 200 complete and 0 interrupted iterations
default [ 70% ] 10 VUs 21.0s/30s

running (0m22.0s), 10/10 VUs, 210 complete and 0 interrupted iterations
default [ 73% ] 10 VUs 22.0s/30s

running (0m23.0s), 10/10 VUs, 220 complete and 0 interrupted iterations
default [ 77% ] 10 VUs 23.0s/30s

running (0m24.0s), 10/10 VUs, 230 complete and 0 interrupted iterations
default [ 80% ] 10 VUs 24.0s/30s

running (0m25.0s), 10/10 VUs, 240 complete and 0 interrupted iterations
default [ 83% ] 10 VUs 25.0s/30s

running (0m26.0s), 10/10 VUs, 250 complete and 0 interrupted iterations
default [ 87% ] 10 VUs 26.0s/30s

running (0m27.0s), 10/10 VUs, 260 complete and 0 interrupted iterations
default [ 90% ] 10 VUs 27.0s/30s

running (0m28.0s), 10/10 VUs, 270 complete and 0 interrupted iterations
default [ 93% ] 10 VUs 28.0s/30s

running (0m29.0s), 10/10 VUs, 280 complete and 0 interrupted iterations
default [ 97% ] 10 VUs 29.0s/30s

running (0m30.0s), 10/10 VUs, 290 complete and 0 interrupted iterations
default [ 100% ] 10 VUs 30.0s/30s


█ TOTAL RESULTS

checks_total.......: 600 19.542563/s
checks_succeeded...: 100.00% 600 out of 600
checks_failed......: 0.00% 0 out of 600

✓ status is 200
✓ response time < 500ms

HTTP
http_req_duration..............: avg=18.72ms min=3.35ms med=11.92ms max=178.79ms p(90)=35.9ms p(95)=43.07ms
{ expected_response:true }...: avg=18.72ms min=3.35ms med=11.92ms max=178.79ms p(90)=35.9ms p(95)=43.07ms
http_req_failed................: 0.00% 0 out of 300
http_reqs......................: 300 9.771282/s

EXECUTION
iteration_duration.............: avg=1.01s min=1s med=1.01s max=1.18s p(90)=1.03s p(95)=1.04s
iterations.....................: 300 9.771282/s
vus............................: 10 min=10 max=10
vus_max........................: 10 min=10 max=10

NETWORK
data_received..................: 15 MB 486 kB/s
data_sent......................: 21 kB 684 B/s




running (0m30.7s), 00/10 VUs, 300 complete and 0 interrupted iterations
default ✓ [ 100% ] 10 VUs 30s
16 changes: 16 additions & 0 deletions k6-tests/load-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import http from 'k6/http';
import { sleep, check } from 'k6';

export const options = {
vus: 10,
duration: '30s',
};

export default function () {
const res = http.get('http://localhost:4567');
check(res, {
'status is 200': (r) => r.status === 200,
'response time < 500ms': (r) => r.timings.duration < 500,
});
sleep(1);
}
Loading