http://hellorails.duapp.com/posts
nginx+puma(1 worker), 256RAM
简单的连接 Mysql 查询,X-Runtime:0.010077
ab 简单测试结果
ab -n 1000 -c 100 http://hellorails.duapp.com/posts
Server Software: nginx/1.5.13
Server Hostname: hellorails.duapp.com
Server Port: 80
Document Path: /posts
Document Length: 1242 bytes
Concurrency Level: 100
Time taken for tests: 15.148 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 2099000 bytes
HTML transferred: 1242000 bytes
Requests per second: 66.01 [#/sec] (mean)
Time per request: 1514.832 [ms] (mean)
Time per request: 15.148 [ms] (mean, across all concurrent requests)
Transfer rate: 135.32 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 28 30 1.5 30 34
Processing: 66 1115 618.9 1073 7491
Waiting: 66 1109 601.5 1072 7466
Total: 94 1145 618.8 1102 7519
Percentage of the requests served within a certain time (ms)
50% 1102
66% 1176
75% 1213
80% 1246
90% 1507
95% 1586
98% 2568
99% 4272
100% 7519 (longest request)
# production.log
I, [2014-04-29T09:22:17.227352 #1908] INFO -- : Started GET "/posts" for 222.240.208.131 at 2014-04-29 09:22:17 +0800
I, [2014-04-29T09:22:17.229053 #1908] INFO -- : Processing by PostsController#index as HTML
I, [2014-04-29T09:22:17.233108 #1908] INFO -- : Rendered posts/index.html.erb within layouts/application (2.9ms)
I, [2014-04-29T09:22:17.233823 #1908] INFO -- : Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 1.1ms)
I, [2014-04-29T09:22:19.549007 #1908] INFO -- : Started GET "/posts" for 222.240.208.131 at 2014-04-29 09:22:19 +0800
I, [2014-04-29T09:22:19.552775 #1908] INFO -- : Processing by PostsController#index as HTML
I, [2014-04-29T09:22:19.557303 #1908] INFO -- : Rendered posts/index.html.erb within layouts/application (3.4ms)
I, [2014-04-29T09:22:19.558028 #1908] INFO -- : Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 1.5ms)
@mobiwolf 自定义 Ruby 运行时目前就差 Supervisor 启动问题了,在 cloudqa 发帖等待回复中
-============================================-
项目源码已经放出,请看 http://ruby-china.org/topics/19008