Created
March 21, 2012 10:47
-
-
Save mk0x9/2146117 to your computer and use it in GitHub Desktop.
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
$ ruby test_server.rb -e production -p 9000 -d | |
$ ab -n 5000 -c 1000 http://localhost:9000/ | |
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 500 requests | |
Completed 1000 requests | |
Completed 1500 requests | |
Completed 2000 requests | |
Completed 2500 requests | |
Completed 3000 requests | |
Completed 3500 requests | |
Completed 4000 requests | |
Completed 4500 requests | |
Completed 5000 requests | |
Finished 5000 requests | |
Server Software: Goliath | |
Server Hostname: localhost | |
Server Port: 9000 | |
Document Path: / | |
Document Length: 13 bytes | |
Concurrency Level: 1000 | |
Time taken for tests: 28.427 seconds | |
Complete requests: 5000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 530000 bytes | |
HTML transferred: 65000 bytes | |
Requests per second: 175.89 [#/sec] (mean) | |
Time per request: 5685.461 [ms] (mean) | |
Time per request: 5.685 [ms] (mean, across all concurrent requests) | |
Transfer rate: 18.21 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 286 664.8 2 3013 | |
Processing: 5001 5077 96.1 5048 5808 | |
Waiting: 5001 5075 95.0 5046 5808 | |
Total: 5001 5363 670.7 5084 8066 | |
Percentage of the requests served within a certain time (ms) | |
50% 5084 | |
66% 5157 | |
75% 5257 | |
80% 5320 | |
90% 6073 | |
95% 6234 | |
98% 8052 | |
99% 8054 | |
100% 8066 (longest request) |
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
require 'goliath' | |
class TestServer < Goliath::API | |
def response(env) | |
EM::Synchrony.sleep 5 | |
[200, {}, 'Hello, World!'] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment