Skip to content

Instantly share code, notes, and snippets.

@calavera
Created March 23, 2011 17:05
Show Gist options
  • Save calavera/883482 to your computer and use it in GitHub Desktop.
Save calavera/883482 to your computer and use it in GitHub Desktop.
output
run Proc.new {|env| [200, {"Content-Type" => "text/html"}, "Hello Rack!"]}
$ ab -n10000 -c20 -k http://localhost:3000/
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 localhost (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-Coyote/1.1
Server Hostname: localhost
Server Port: 3000
Document Path: /
Document Length: 11 bytes
Concurrency Level: 20
Time taken for tests: 6.720 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 9908
Total transferred: 1630681 bytes
HTML transferred: 110077 bytes
Requests per second: 1488.18 [#/sec] (mean)
Time per request: 13.439 [ms] (mean)
Time per request: 0.672 [ms] (mean, across all concurrent requests)
Transfer rate: 236.99 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.7 0 17
Processing: 1 13 32.4 6 587
Waiting: 0 13 32.4 5 587
Total: 1 13 32.4 6 587
Percentage of the requests served within a certain time (ms)
50% 6
66% 8
75% 10
80% 11
90% 23
95% 53
98% 116
99% 169
100% 587 (longest request)
[10:03:23][~ {jruby-1.6.0}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment