Skip to content

Instantly share code, notes, and snippets.

@macobo
Created December 7, 2020 09:49
Show Gist options
  • Save macobo/ca37e50c36757d960a58ebddae78cc70 to your computer and use it in GitHub Desktop.
Save macobo/ca37e50c36757d960a58ebddae78cc70 to your computer and use it in GitHub Desktop.
k6 benchmark of /s
# Large data (580kb): (edited)
⟩ k6 run --vus 10 --duration 30s benchmark-ph.js 14:40:18
/\ |‾‾| /‾‾/ /‾‾/
/\ / \ | |/ / / /
/ \/ \ | ( / ‾‾\
/ \ | |\ \ | (‾) |
/ __________ \ |__| \__\ \_____/ .io
execution: local
script: benchmark-ph.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 (0m31.0s), 00/10 VUs, 212 complete and 0 interrupted iterations
default ✓ [======================================] 10 VUs 30s
data_received..............: 362 kB 12 kB/s
data_sent..................: 126 MB 4.1 MB/s
http_req_blocked...........: avg=10.4ms min=248ns med=922ns max=229.84ms p(90)=1.18µs p(95)=1.91µs
http_req_connecting........: avg=4.17ms min=0s med=0s max=92.09ms p(90)=0s p(95)=0s
http_req_duration..........: avg=1.41s min=746.23ms med=1.35s max=2.59s p(90)=1.89s p(95)=2.03s
http_req_receiving.........: avg=728.66µs min=53.04µs med=205.85µs max=20.08ms p(90)=1.95ms p(95)=3.77ms
http_req_sending...........: avg=773.9ms min=216.19ms med=769.58ms max=1.54s p(90)=1.02s p(95)=1.13s
http_req_tls_handshaking...: avg=6.22ms min=0s med=0s max=137.23ms p(90)=0s p(95)=0s
http_req_waiting...........: avg=638.88ms min=359.69ms med=550.13ms max=1.6s p(90)=957.3ms p(95)=1.25s
http_reqs..................: 212 6.827769/s
iteration_duration.........: avg=1.44s min=792.27ms med=1.37s max=2.68s p(90)=1.91s p(95)=2.16s
iterations.................: 212 6.827769/s
vus........................: 2 min=2 max=10
vus_max....................: 10 min=10 max=10
# Tiny (single session recording event) measurements (502b)
⟩ k6 run --vus 10 --duration 30s benchmark-ph.js 14:44:50
/\ |‾‾| /‾‾/ /‾‾/
/\ / \ | |/ / / /
/ \/ \ | ( / ‾‾\
/ \ | |\ \ | (‾) |
/ __________ \ |__| \__\ \_____/ .io
execution: local
script: benchmark-ph.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 (0m30.2s), 00/10 VUs, 1354 complete and 0 interrupted iterations
default ✓ [======================================] 10 VUs 30s
data_received..............: 264 kB 8.7 kB/s
data_sent..................: 868 kB 29 kB/s
http_req_blocked...........: avg=2ms min=236ns med=1.08µs max=271.54ms p(90)=1.64µs p(95)=1.76µs
http_req_connecting........: avg=524.75µs min=0s med=0s max=85.23ms p(90)=0s p(95)=0s
http_req_duration..........: avg=219.57ms min=166.21ms med=204.41ms max=809.6ms p(90)=238.9ms p(95)=267.51ms
http_req_receiving.........: avg=238.38µs min=35.67µs med=198.36µs max=8.74ms p(90)=267.89µs p(95)=299.49µs
http_req_sending...........: avg=195.43µs min=26.91µs med=204.6µs max=686.61µs p(90)=273.52µs p(95)=293.99µs
http_req_tls_handshaking...: avg=932.46µs min=0s med=0s max=150.67ms p(90)=0s p(95)=0s
http_req_waiting...........: avg=219.14ms min=165.7ms med=204ms max=809.42ms p(90)=238.57ms p(95)=263.35ms
http_reqs..................: 1354 44.893312/s
iteration_duration.........: avg=221.91ms min=166.53ms med=204.79ms max=824.11ms p(90)=239.19ms p(95)=268.01ms
iterations.................: 1354 44.893312/s
vus........................: 10 min=10 max=10
vus_max....................: 10 min=10 max=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment