Skip to content

Instantly share code, notes, and snippets.

@visnup
Created November 15, 2010 21:48
Show Gist options
  • Save visnup/701009 to your computer and use it in GitHub Desktop.
Save visnup/701009 to your computer and use it in GitHub Desktop.
the obligatory benchmarks too
$ ab -c 10 -n 500 http://127.0.0.1:8000/push/1
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 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Finished 500 requests
Server Software: Node
Server Hostname: 127.0.0.1
Server Port: 8000
Document Path: /push/1
Document Length: 7 bytes
Concurrency Level: 10
Time taken for tests: 1.421 seconds
Complete requests: 500
Failed requests: 499
(Connect: 0, Receive: 0, Length: 499, Exceptions: 0)
Write errors: 0
Total transferred: 838434 bytes
HTML transferred: 751934 bytes
Requests per second: 351.77 [#/sec] (mean)
Time per request: 28.427 [ms] (mean)
Time per request: 2.843 [ms] (mean, across all concurrent requests)
Transfer rate: 576.05 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 4
Processing: 1 28 23.1 20 118
Waiting: 1 26 22.3 19 118
Total: 1 28 23.1 20 118
Percentage of the requests served within a certain time (ms)
50% 20
66% 33
75% 43
80% 50
90% 61
95% 73
98% 87
99% 95
100% 118 (longest request)
$ ab -c 10 -n 500 http://127.0.0.1:9292/push/1
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 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Finished 500 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 9292
Document Path: /push/1
Document Length: 10 bytes
Concurrency Level: 10
Time taken for tests: 7.901 seconds
Complete requests: 500
Failed requests: 490
(Connect: 0, Receive: 0, Length: 490, Exceptions: 0)
Write errors: 0
Total transferred: 177459 bytes
HTML transferred: 129567 bytes
Requests per second: 63.28 [#/sec] (mean)
Time per request: 158.029 [ms] (mean)
Time per request: 15.803 [ms] (mean, across all concurrent requests)
Transfer rate: 21.93 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.8 0 10
Processing: 16 157 83.6 154 313
Waiting: 1 2 3.4 1 28
Total: 17 157 83.6 154 313
Percentage of the requests served within a certain time (ms)
50% 154
66% 200
75% 232
80% 239
90% 274
95% 289
98% 310
99% 311
100% 313 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment