Skip to content

Instantly share code, notes, and snippets.

@sferik
Created December 10, 2009 03:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sferik/253089 to your computer and use it in GitHub Desktop.
Save sferik/253089 to your computer and use it in GitHub Desktop.
Twitter API Benchmarks
$ ab -n 1000 -c 10 http://twitter.com/help/test.json
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 twitter.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: hi
Server Hostname: twitter.com
Server Port: 80
Document Path: /help/test.json
Document Length: 4 bytes
Concurrency Level: 10
Time taken for tests: 19.272 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 1029333 bytes
HTML transferred: 4004 bytes
Requests per second: 51.89 [#/sec] (mean)
Time per request: 192.715 [ms] (mean)
Time per request: 19.272 [ms] (mean, across all concurrent requests)
Transfer rate: 52.16 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 46 68 127.5 50 1042
Processing: 57 122 436.2 65 9062
Waiting: 56 117 434.5 64 9062
Total: 105 190 452.4 116 9110
Percentage of the requests served within a certain time (ms)
50% 116
66% 118
75% 121
80% 123
90% 138
95% 407
98% 1093
99% 3114
100% 9110 (longest request)
$ ab -n 1000 -c 10 http://twitter.com/help/test.xml
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 twitter.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: hi
Server Hostname: twitter.com
Server Port: 80
Document Path: /help/test.xml
Document Length: 13 bytes
Concurrency Level: 10
Time taken for tests: 23.379 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 1037088 bytes
HTML transferred: 13000 bytes
Requests per second: 42.77 [#/sec] (mean)
Time per request: 233.792 [ms] (mean)
Time per request: 23.379 [ms] (mean, across all concurrent requests)
Transfer rate: 43.32 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 44 83 186.8 49 2057
Processing: 56 149 471.1 63 3107
Waiting: 55 141 468.6 63 3071
Total: 103 232 507.8 113 4058
Percentage of the requests served within a certain time (ms)
50% 113
66% 116
75% 118
80% 119
90% 131
95% 1040
98% 3108
99% 3113
100% 4058 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment