Created
November 3, 2011 22:35
-
-
Save timharding/1338124 to your computer and use it in GitHub Desktop.
Thin hello world...
This file contains hidden or 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
app = proc do |env| | |
[ | |
200, | |
{ | |
'Content-Type' => 'text/html', | |
'Content-Length' => '2' | |
}, | |
'Hi!' | |
] | |
end | |
run app | |
tim@li164-209:~$ thin start -R config.ru | |
tim@li164-209:~$ ab -n 50000 -c 1000 http://0.0.0.0: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 0.0.0.0 (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: thin | |
Server Hostname: 0.0.0.0 | |
Server Port: 3000 | |
Document Path: / | |
Document Length: 3 bytes | |
Concurrency Level: 1000 | |
Time taken for tests: 26.782 seconds | |
Complete requests: 50000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 6500130 bytes | |
HTML transferred: 150003 bytes | |
Requests per second: 1866.91 [#/sec] (mean) | |
Time per request: 535.644 [ms] (mean) | |
Time per request: 0.536 [ms] (mean, across all concurrent requests) | |
Transfer rate: 237.02 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 92 621.8 1 9027 | |
Processing: 0 135 1394.5 21 23614 | |
Waiting: 0 133 1394.6 20 23614 | |
Total: 9 227 1728.7 22 26625 | |
Percentage of the requests served within a certain time (ms) | |
50% 22 | |
66% 23 | |
75% 23 | |
80% 25 | |
90% 48 | |
95% 53 | |
98% 3025 | |
99% 3435 | |
100% 26625 (longest request) | |
tim@li164-209:~$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment