Skip to content

Instantly share code, notes, and snippets.

@philiphacks
Last active December 15, 2015 19:10
Show Gist options
  • Save philiphacks/5309531 to your computer and use it in GitHub Desktop.
Save philiphacks/5309531 to your computer and use it in GitHub Desktop.
Rails 4 Live Streaming Chatbox using the Puma web server with a default of 16 maximum threads
PID COMMAND %CPU TIME #TH #WQ #POR #MREG RPRVT RSHRD RSIZE VPRVT VSIZE PGRP PPID STATE UID FAULTS COW MSGSENT
8014 ruby 99.9 00:50.38 35/1 0 56+ 301+ 75M+ 216K 80M+ 169M+ 2542M+ 8014 6329 running 501 101974+ 368 195
Philip-De-Smedts-MacBook:live_streaming_node philip$ ab -r -n 10000 -c 100 -T 'application/x-www-form-urlencoded' -p ../live_streaming/post http://127.0.0.1:3000/messages
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 3000
Document Path: /messages
Document Length: 1 bytes
Concurrency Level: 100
Time taken for tests: 63.415 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 4350600 bytes
Total POSTed: 2220444
HTML transferred: 10000 bytes
Requests per second: 157.69 [#/sec] (mean)
Time per request: 634.152 [ms] (mean)
Time per request: 6.342 [ms] (mean, across all concurrent requests)
Transfer rate: 67.00 [Kbytes/sec] received
34.19 kb/s sent
101.19 kb/s total
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 2.5 0 41
Processing: 15 618 4802.8 105 63408
Waiting: 10 582 4802.4 70 63403
Total: 16 619 4802.8 106 63411
Percentage of the requests served within a certain time (ms)
50% 106
66% 146
75% 163
80% 175
90% 237
95% 400
98% 1358
99% 11959
100% 63411 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment