Skip to content

Instantly share code, notes, and snippets.

@notfalsedev
Created April 15, 2015 08:09
Show Gist options
  • Save notfalsedev/f08fcb315e4d61959664 to your computer and use it in GitHub Desktop.
Save notfalsedev/f08fcb315e4d61959664 to your computer and use it in GitHub Desktop.
Apache benchmark
# Required utils
sudo apt-get install apache2-utils
# Run the benchmark
ab -t 10 -c 10 http://webapp.dev/
# Output
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking vcn53.dev (be patient)
Completed 5000 requests
Completed 10000 requests
Completed 15000 requests
Completed 20000 requests
Completed 25000 requests
Completed 30000 requests
Completed 35000 requests
Completed 40000 requests
Completed 45000 requests
Completed 50000 requests
Finished 50000 requests
Server Software: Apache/2.4.10
Server Hostname: vcn53.dev
Server Port: 80
Document Path: /
Document Length: 551 bytes
Concurrency Level: 10
Time taken for tests: 1.637 seconds
Complete requests: 50000
Failed requests: 0
Total transferred: 37050000 bytes
HTML transferred: 27550000 bytes
Requests per second: 30543.51 [#/sec] (mean)
Time per request: 0.327 [ms] (mean)
Time per request: 0.033 [ms] (mean, across all concurrent requests)
Transfer rate: 22102.29 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 0 0 0.1 0 3
Waiting: 0 0 0.1 0 3
Total: 0 0 0.1 0 3
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 0
98% 1
99% 1
100% 3 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment