Created
November 17, 2011 06:14
-
-
Save igrigorik/1372497 to your computer and use it in GitHub Desktop.
jruby + goliath
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
# after warming up the VM (20k reqs+) | |
# ... | |
ab -c 50 -n 5000 http://127.0.0.1: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 127.0.0.1 (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: 127.0.0.1 | |
Server Port: 9000 | |
Document Path: / | |
Document Length: 11 bytes | |
Concurrency Level: 50 | |
Time taken for tests: 3.957 seconds | |
Complete requests: 5000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 520104 bytes | |
HTML transferred: 55011 bytes | |
Requests per second: 1263.53 [#/sec] (mean) | |
Time per request: 39.572 [ms] (mean) | |
Time per request: 0.791 [ms] (mean, across all concurrent requests) | |
Transfer rate: 128.35 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.5 0 20 | |
Processing: 17 39 7.1 36 76 | |
Waiting: 10 35 7.0 33 75 | |
Total: 19 39 7.1 37 76 | |
Percentage of the requests served within a certain time (ms) | |
50% 37 | |
66% 38 | |
75% 40 | |
80% 42 | |
90% 49 | |
95% 56 | |
98% 62 | |
99% 66 | |
100% 76 (longest request) |
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
require 'goliath' | |
class Hello < Goliath::API | |
def response(env) | |
[200, {}, "Hello World"] | |
end | |
end | |
# jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [darwin-x86_64-java] | |
# > ruby --server test.rb -e production |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment