Skip to content

Instantly share code, notes, and snippets.

@pauldix
Created October 8, 2009 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pauldix/205103 to your computer and use it in GitHub Desktop.
Save pauldix/205103 to your computer and use it in GitHub Desktop.
# single json object cache miss (passenger)
ab -n 10000 -c 50 http://ec2-some-ip.compute-1.amazonaws.com/api/v1/comments/1/no_cache
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 ec2-some-ip.compute-1.amazonaws.com (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: nginx/0.7.61
Server Hostname: ec2-some-ip.compute-1.amazonaws.com
Server Port: 80
Document Path: /api/v1/comments/1/no_cache
Document Length: 86 bytes
Concurrency Level: 50
Time taken for tests: 32.250 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 3110000 bytes
HTML transferred: 860000 bytes
Requests per second: 310.08 [#/sec] (mean)
Time per request: 161.249 [ms] (mean)
Time per request: 3.225 [ms] (mean, across all concurrent requests)
Transfer rate: 94.17 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 18 205.0 1 2999
Processing: 1 142 322.8 133 15959
Waiting: 1 142 322.8 133 15958
Total: 1 160 384.6 137 15976
Percentage of the requests served within a certain time (ms)
50% 137
66% 160
75% 177
80% 184
90% 214
95% 247
98% 327
99% 413
100% 15976 (longest request)
# single json object cache hit (nginx + passenger)
ab -n 10000 -c 50 http://ec2-some-ip.compute-1.amazonaws.com/api/v1/comments/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 ec2-some-ip.compute-1.amazonaws.com (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: nginx/0.7.61
Server Hostname: ec2-some-ip.compute-1.amazonaws.com
Server Port: 80
Document Path: /api/v1/comments/1
Document Length: 86 bytes
Concurrency Level: 50
Time taken for tests: 4.005 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 2280912 bytes
HTML transferred: 860344 bytes
Requests per second: 2496.64 [#/sec] (mean)
Time per request: 20.027 [ms] (mean)
Time per request: 0.401 [ms] (mean, across all concurrent requests)
Transfer rate: 556.12 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 3 5.9 1 42
Processing: 1 17 11.7 17 61
Waiting: 1 17 11.6 17 61
Total: 2 20 11.4 22 61
Percentage of the requests served within a certain time (ms)
50% 22
66% 27
75% 28
80% 29
90% 32
95% 38
98% 45
99% 49
100% 61 (longest request)
# collection of 25 json objects cache miss (passenger)
ab -n 10000 -c 50 http://ec2-some-ip.compute-1.amazonaws.com/api/v1/comments/users/1/no_cache
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 ec2-some-ip.compute-1.amazonaws.com (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: nginx/0.7.61
Server Hostname: ec2-some-ip.compute-1.amazonaws.com
Server Port: 80
Document Path: /api/v1/comments/users/1/no_cache
Document Length: 2176 bytes
Concurrency Level: 50
Time taken for tests: 44.251 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 24030000 bytes
HTML transferred: 21760000 bytes
Requests per second: 225.98 [#/sec] (mean)
Time per request: 221.256 [ms] (mean)
Time per request: 4.425 [ms] (mean, across all concurrent requests)
Transfer rate: 530.31 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 2 6.3 0 55
Processing: 10 218 1076.3 154 44232
Waiting: 10 218 1076.3 153 44232
Total: 11 221 1076.3 155 44233
Percentage of the requests served within a certain time (ms)
50% 155
66% 167
75% 180
80% 187
90% 211
95% 241
98% 299
99% 875
100% 44233 (longest request)
# collection of 25 json objects cache hit (nginx + memcached)
ab -n 10000 -c 50 http://ec2-some-ip.compute-1.amazonaws.com/api/v1/comments/users/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 ec2-some-ip.compute-1.amazonaws.com (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: nginx/0.7.61
Server Hostname: ec2-some-ip.compute-1.amazonaws.com
Server Port: 80
Document Path: /api/v1/comments/users/1
Document Length: 2182 bytes
Concurrency Level: 50
Time taken for tests: 4.192 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 23330000 bytes
HTML transferred: 21820000 bytes
Requests per second: 2385.22 [#/sec] (mean)
Time per request: 20.962 [ms] (mean)
Time per request: 0.419 [ms] (mean, across all concurrent requests)
Transfer rate: 5434.29 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 3 6.4 1 51
Processing: 1 18 12.7 17 80
Waiting: 1 17 12.6 17 80
Total: 3 21 12.5 21 81
Percentage of the requests served within a certain time (ms)
50% 21
66% 28
75% 30
80% 31
90% 35
95% 42
98% 50
99% 54
100% 81 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment