Skip to content

Instantly share code, notes, and snippets.

@casperisfine
Created January 8, 2024 09:20
Show Gist options
  • Save casperisfine/42eabf17dd279af34bc9198453efc3b8 to your computer and use it in GitHub Desktop.
Save casperisfine/42eabf17dd279af34bc9198453efc3b8 to your computer and use it in GitHub Desktop.
$ bin/bench 5
Puma starting in single mode...
* Puma version: 6.4.1 (ruby 3.3.0-p0) ("The Eagle of Durango")
* Min threads: 5
* Max threads: 5
* Environment: development
* PID: 87708
Testing with:
75.0% time spent waiting on CPU
25.0% time spent waiting on IO
0.25 seconds average response duration (approximate, not including GC)
300000 objects are generated w/each request
We will decide to do CPU or IO every 10.0 milliseconds
* Listening on http://0.0.0.0:9292
Use Ctrl-C to stop
Warming up for 15 seconds...
Benchmarking...
/\ |‾‾| /‾‾/ /‾‾/
/\ / \ | |/ / / /
/ \/ \ | ( / ‾‾\
/ \ | |\ \ | (‾) |
/ __________ \ |__| \__\ \_____/ .io
execution: local
script: k6/script.js
output: -
scenarios: (100.00%) 1 scenario, 10 max VUs, 2m0s max duration (incl. graceful stop):
* contacts: Up to 8.00 iterations/s for 1m30s over 1 stages (maxVUs: 10, gracefulStop: 30s)
WARN[0059] Insufficient VUs, reached 10 active VUs and cannot initialize more executor=ramping-arrival-rate scenario=contacts
data_received..................: 37 kB 403 B/s
data_sent......................: 31 kB 339 B/s
dropped_iterations.............: 62 0.677924/s
http_req_blocked...............: min=258µs avg=409.69µs med=395µs max=3ms p(95)=558.65µs p(99)=645.18µs p(99.99)=2.91ms
http_req_connecting............: min=215µs avg=360.84µs med=357µs max=709µs p(95)=484.94µs p(99)=555.48µs p(99.99)=707.76µs
http_req_duration..............: min=269.24ms avg=1.11s med=1.07s max=2.43s p(95)=2.11s p(99)=2.31s p(99.99)=2.43s
{ expected_response:true }...: min=269.24ms avg=1.11s med=1.07s max=2.43s p(95)=2.11s p(99)=2.31s p(99.99)=2.43s
http_req_failed................: 0.00% ✓ 0 ✗ 388
http_req_receiving.............: min=13µs avg=38.39µs med=39µs max=134µs p(95)=49µs p(99)=66.13µs p(99.99)=132.18µs
http_req_sending...............: min=14µs avg=26.32µs med=24µs max=163µs p(95)=42.64µs p(99)=70µs p(99.99)=160.87µs
http_req_tls_handshaking.......: min=0s avg=0s med=0s max=0s p(95)=0s p(99)=0s p(99.99)=0s
http_req_waiting...............: min=269.17ms avg=1.11s med=1.07s max=2.43s p(95)=2.11s p(99)=2.31s p(99.99)=2.43s
http_reqs......................: 388 4.242494/s
iteration_duration.............: min=269.83ms avg=1.11s med=1.08s max=2.43s p(95)=2.11s p(99)=2.32s p(99.99)=2.43s
iterations.....................: 388 4.242494/s
vus............................: 5 min=0 max=10
vus_max........................: 10 min=10 max=10
running (1m31.5s), 00/10 VUs, 388 complete and 0 interrupted iterations
contacts ✓ [======================================] 00/10 VUs 1m30s 8.00 iters/s
- Gracefully stopping, waiting for requests to finish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment