Created
April 11, 2020 22:38
-
-
Save jon-zawada/ced5c9d3f96b9b1ec8f8a5c06c12cc89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /\ |‾‾| /‾‾/ /‾/ | |
| /\ / \ | |_/ / / / | |
| / \/ \ | | / ‾‾\ | |
| / \ | |‾\ \ | (_) | | |
| / __________ \ |__| \__\ \___/ .io | |
| execution: local | |
| output: - | |
| script: script.js | |
| duration: -, iterations: - | |
| vus: 1, max: 1000 | |
| done [==========================================================] 1m1s / 1m1s | |
| ✓ status is 200 | |
| ✗ time was OK | |
| ↳ 40% — ✓ 9647 / ✗ 14161 | |
| checks.....................: 70.27% ✓ 33443 ✗ 14149 | |
| data_received..............: 31 MB 513 kB/s | |
| data_sent..................: 2.3 MB 38 kB/s | |
| http_req_blocked...........: avg=27.59µs min=2µs med=5µs max=4.69ms p(90)=11µs p(95)=28µs | |
| http_req_connecting........: avg=14.6µs min=0s med=0s max=4.53ms p(90)=0s p(95)=0s | |
| http_req_duration..........: avg=389.49ms min=1.15ms med=338.11ms max=1.54s p(90)=973.91ms p(95)=1.07s | |
| http_req_receiving.........: avg=86.74µs min=32µs med=77µs max=3.98ms p(90)=111µs p(95)=130µs | |
| http_req_sending...........: avg=29.14µs min=8µs med=23µs max=4.98ms p(90)=41µs p(95)=67µs | |
| http_req_tls_handshaking...: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s | |
| http_req_waiting...........: avg=389.37ms min=1.07ms med=338ms max=1.54s p(90)=973.81ms p(95)=1.07s | |
| http_reqs..................: 23796 390.098177/s | |
| iteration_duration.........: avg=1.37s min=1s med=1.33s max=2.54s p(90)=1.91s p(95)=2.08s | |
| iterations.................: 23257 381.262115/s | |
| vus........................: 999 min=97 max=999 | |
| vus_max....................: 1000 min=1000 max=1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import http from 'k6/http'; | |
| import { check, sleep } from 'k6'; | |
| export let options = { | |
| stages: [ | |
| { duration: '1s', target: 100 }, | |
| { duration: '60s', target: 1000 } | |
| ] | |
| }; | |
| export default function() { | |
| let res = http.get(`http://localhost:3000/songs/${Math.floor(Math.random() * 10000000) + 1}/related`); | |
| check(res, { | |
| 'status is 200': r => r.status == 200, | |
| 'time was OK': r => r.timings.duration < 200, | |
| }); | |
| sleep(1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment