Skip to content

Instantly share code, notes, and snippets.

@andreydjason
Created May 25, 2012 04:33
Show Gist options
  • Save andreydjason/2785783 to your computer and use it in GitHub Desktop.
Save andreydjason/2785783 to your computer and use it in GitHub Desktop.
Web Development Benchmarking
### do a benchmark in a website with the Apache Benchmark Tool
## -n must be HIGHER than -c to have measurable results
$ ab -c10 -n100 http://google.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 google.com (be patient).....done
Server Software: gws
Server Hostname: google.com
Server Port: 80
Document Path: /
Document Length: 219 bytes
Concurrency Level: 10
Time taken for tests: 2.170 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Non-2xx responses: 100
Total transferred: 54000 bytes
HTML transferred: 21900 bytes
Requests per second: 46.07 [#/sec] (mean)
Time per request: 217.040 [ms] (mean)
Time per request: 21.704 [ms] (mean, across all concurrent requests)
Transfer rate: 24.30 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 31 36 2.9 36 45
Processing: 152 170 45.2 158 398
Waiting: 152 169 45.0 157 396
Total: 183 206 45.8 194 441
Percentage of the requests served within a certain time (ms)
50% 194
66% 197
75% 200
80% 201
90% 217
95% 281
98% 432
99% 441
100% 441 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment