Skip to content

Instantly share code, notes, and snippets.

@rafaelss
Created February 29, 2012 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelss/1937243 to your computer and use it in GitHub Desktop.
Save rafaelss/1937243 to your computer and use it in GitHub Desktop.
$ ab -n 5 -c 5 http://127.0.0.1:3000/
This is ApacheBench, Version 2.3 <$Revision: 1178079 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient).....done
Server Software: thin
Server Hostname: 127.0.0.1
Server Port: 3000
Document Path: /
Document Length: 6 bytes
Concurrency Level: 5
Time taken for tests: 25.009 seconds
Complete requests: 5
Failed requests: 0
Write errors: 0
Total transferred: 575 bytes
HTML transferred: 30 bytes
Requests per second: 0.20 [#/sec] (mean)
Time per request: 25008.950 [ms] (mean)
Time per request: 5001.790 [ms] (mean, across all concurrent requests)
Transfer rate: 0.02 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 0
Processing: 25009 25009 0.0 25009 25009
Waiting: 25008 25009 0.0 25009 25009
Total: 25009 25009 0.1 25009 25009
Percentage of the requests served within a certain time (ms)
50% 25009
66% 25009
75% 25009
80% 25009
90% 25009
95% 25009
98% 25009
99% 25009
100% 25009 (longest request)
run proc do |env|
puts Time.now
sleep 5
[200, { "Content-type" => "text/plain" }, ["Hello!"]]
end
$ thin -R config.ru start
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
2012-02-29 00:02:03 -0300
2012-02-29 00:02:08 -0300
2012-02-29 00:02:13 -0300
2012-02-29 00:02:18 -0300
2012-02-29 00:02:23 -0300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment