Created
January 22, 2011 07:29
-
-
Save headius/790954 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/projects/jcd ➔ ab -n 1000 -d -S 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 100 requests | |
Completed 200 requests | |
Completed 300 requests | |
Completed 400 requests | |
Completed 500 requests | |
Completed 600 requests | |
Completed 700 requests | |
Completed 800 requests | |
Completed 900 requests | |
Completed 1000 requests | |
Finished 1000 requests | |
Server Software: | |
Server Hostname: localhost | |
Server Port: 3000 | |
Document Path: / | |
Document Length: 484 bytes | |
Concurrency Level: 1 | |
Time taken for tests: 0.648 seconds | |
Complete requests: 1000 | |
Failed requests: 489 | |
(Connect: 0, Receive: 0, Length: 489, Exceptions: 0) | |
Write errors: 0 | |
Total transferred: 584485 bytes | |
HTML transferred: 483485 bytes | |
Requests per second: 1543.03 [#/sec] (mean) | |
Time per request: 0.648 [ms] (mean) | |
Time per request: 0.648 [ms] (mean, across all concurrent requests) | |
Transfer rate: 880.74 [Kbytes/sec] received | |
Connection Times (ms) | |
min avg max | |
Connect: 0 0 3 | |
Processing: 0 1 6 | |
Total: 0 1 9 | |
~/projects/jcd ➔ ab -c 20 -n 10000 -d -S 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: | |
Server Hostname: localhost | |
Server Port: 3000 | |
Document Path: / | |
Document Length: 483 bytes | |
Concurrency Level: 20 | |
Time taken for tests: 3.712 seconds | |
Complete requests: 10000 | |
Failed requests: 5424 | |
(Connect: 0, Receive: 0, Length: 5424, Exceptions: 0) | |
Write errors: 0 | |
Total transferred: 5844733 bytes | |
HTML transferred: 4834733 bytes | |
Requests per second: 2694.13 [#/sec] (mean) | |
Time per request: 7.424 [ms] (mean) | |
Time per request: 0.371 [ms] (mean, across all concurrent requests) | |
Transfer rate: 1537.74 [Kbytes/sec] received | |
Connection Times (ms) | |
min avg max | |
Connect: 0 0 10 | |
Processing: 1 7 21 | |
Total: 1 7 31 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/projects/ChaosBazaar ➔ cat config.ru | |
# This is just a basic "hello, world" stlye rack-up to get you going | |
class Hello | |
def call(env) | |
[200, { 'Content-Type' => 'text/plain' }, "Hello, world! Your environment is #{env}"] | |
end | |
end | |
run Hello.new | |
~/projects/ChaosBazaar ➔ jruby -I../jcd/lib -rjcd -rubygems -Ilib bin/control_tower -c | |
Caution! Wake turbulance from heavy aircraft landing on parallel runway. | |
(Parallel Request Action ENABLED!) | |
You are cleared for take-off! | |
Listening on 0.0.0.0:3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello, world! Your environment is REQUEST_METHODGETREQUEST_PATH/REQUEST_URI/HTTP_VERSIONHTTP/1.1HTTP_HOSTlocalhost:3000HTTP_CONNECTIONkeep-aliveHTTP_ACCEPTapplication/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5HTTP_USER_AGENTMozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10HTTP_ACCEPT_ENCODINGgzip,deflate,sdchHTTP_ACCEPT_LANGUAGEen-US,en;q=0.8HTTP_ACCEPT_CHARSETISO-8859-1,utf-8;q=0.7,*;q=0.3GATEWAY_INTERFACECGI/1.2SERVER_NAMElocalhostSERVER_PORT3000SERVER_PROTOCOLHTTP/1.1SERVER_SOFTWAREMongrel 1.1.5PATH_INFO/SCRIPT_NAMEREMOTE_ADDR0:0:0:0:0:0:0:1%0rack.version11rack.input#<StringIO:0x155d04b>rack.errors#<IO:0x158fd70>rack.multithreadtruerack.multiprocessfalserack.run_oncefalserack.url_schemehttpQUERY_STRING |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment