Last active
April 12, 2020 01:15
-
-
Save dhkaneda/c46cff84def786a03e51681baa45ab2b to your computer and use it in GitHub Desktop.
k6stresstest-initial - 124 rps
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
/* eslint-disable import/no-unresolved */ | |
import http from 'k6/http'; | |
import { sleep } from 'k6'; | |
export const options = { | |
vus: 200, | |
duration: '60s', | |
}; | |
export default function () { | |
http.get('http://localhost:3000/api/locations'); | |
sleep(1); | |
http.get('http://localhost:3000/api/bookings'); | |
sleep(1); | |
} | |
$ k6 run k6stresstest.js | |
/\ |‾‾| /‾‾/ /‾/ | |
/\ / \ | |_/ / / / | |
/ \/ \ | | / ‾‾\ | |
/ \ | |‾\ \ | (_) | | |
/ __________ \ |__| \__\ \___/ .io | |
execution: local | |
output: - | |
script: k6stresstest.js | |
duration: 1m0s, iterations: - | |
vus: 200, max: 200 | |
WARN[0003] Request Failed error="Get http://localhost:3000/api/locations: read tcp [::1]:64218->[::1]:3000: read: connection reset by peer" | |
WARN[0003] Request Failed error="Get http://localhost:3000/api/locations: read tcp [::1]:64219->[::1]:3000: read: connection reset by peer" | |
done [==========================================================] 1m0s / 1m0s | |
data_received..............: 1.3 GB 21 MB/s | |
data_sent..................: 674 kB 11 kB/s | |
http_req_blocked...........: avg=105.3µs min=1µs med=3µs max=7.51ms p(90)=7µs p(95)=16µs | |
http_req_connecting........: avg=96.87µs min=0s med=0s max=6.88ms p(90)=0s p(95)=0s | |
http_req_duration..........: avg=593.63ms min=349µs med=250.78ms max=3.73s p(90)=1.83s p(95)=2.24s | |
http_req_receiving.........: avg=1.26ms min=0s med=39µs max=930.75ms p(90)=71µs p(95)=88µs | |
http_req_sending...........: avg=24.38µs min=5µs med=14µs max=1.58ms p(90)=26µs p(95)=37µs | |
http_req_tls_handshaking...: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s | |
http_req_waiting...........: avg=592.34ms min=300µs med=250.69ms max=3.51s p(90)=1.83s p(95)=2.24s | |
http_reqs..................: 7450 124.166446/s | |
iteration_duration.........: avg=3.17s min=2s med=2.99s max=6.16s p(90)=4.53s p(95)=4.79s | |
iterations.................: 3641 60.683226/s | |
vus........................: 200 min=200 max=200 | |
vus_max....................: 200 min=200 max=200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment