Skip to content

Instantly share code, notes, and snippets.

@v9n
Created June 19, 2011 19:56
Show Gist options
  • Select an option

  • Save v9n/1034661 to your computer and use it in GitHub Desktop.

Select an option

Save v9n/1034661 to your computer and use it in GitHub Desktop.
Nginx vs Apache
[kureikain@axcoto ~]$ /usr/local/apache2/bin/ab -n 10000 -c 20 http://live.axcoto.com/
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 live.axcoto.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: Apache/2.2.19
Server Hostname: live.axcoto.com
Server Port: 80
Document Path: /
Document Length: 10308 bytes
Concurrency Level: 20
Time taken for tests: 158.239 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 111946064 bytes
HTML transferred: 103100760 bytes
Requests per second: 63.20 [#/sec] (mean)
Time per request: 316.478 [ms] (mean)
Time per request: 15.824 [ms] (mean, across all concurrent requests)
Transfer rate: 690.87 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 31 117 298.8 91 3143
Processing: 85 199 110.4 200 9502
Waiting: 49 107 98.9 106 9382
Total: 128 316 333.5 292 12578
Percentage of the requests served within a certain time (ms)
50% 292
66% 313
75% 326
80% 334
90% 358
95% 377
98% 446
99% 2475
100% 12578 (longest request)
[kureikain@axcoto ~]$ /usr/local/apache2/bin/ab -n 10000 -c 20 http://live.axcoto.com/
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 live.axcoto.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/1.0.4
Server Hostname: live.axcoto.com
Server Port: 80
Document Path: /
Document Length: 10308 bytes
Concurrency Level: 20
Time taken for tests: 160.944 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 111210408 bytes
HTML transferred: 103106358 bytes
Requests per second: 62.13 [#/sec] (mean)
Time per request: 321.888 [ms] (mean)
Time per request: 16.094 [ms] (mean, across all concurrent requests)
Transfer rate: 674.79 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 32 125 355.5 89 9097
Processing: 95 196 102.2 192 7824
Waiting: 51 103 84.5 101 7733
Total: 141 321 375.5 284 9335
Percentage of the requests served within a certain time (ms)
50% 284
66% 308
75% 322
80% 332
90% 363
95% 384
98% 607
99% 3218
100% 9335 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment