我的渲染时间在并发负载测试中大大增加。对于一个用户,渲染时间很短,但随着我添加用户,渲染时间继续增加。
一个用户的渲染时间: 渲染 shared/_enablers_comm_logo_new_permissionengine.html.erb (135 7.9ms) 渲染 shared/_enablers_view_timeline.html.erb (3581.2ms) 渲染 shared/_enablers_list_timeline.html.erb (3584.2ms) 渲染 shared/_enablers_list.html。 erb (3586.6ms) 渲染共享/_enablers_home_page.html.erb (5585.5ms)
20 个用户的渲染时间: 渲染 shared/_enablers_comm_logo_new_permissionengine.html.erb (1891.2ms) 渲染 shared/_enablers_view_timeline.html.erb (14219.5ms) 渲染 shared/_enablers_list_timeline.html.erb (14236.3ms) 渲染 shared/_enablers_list.html.erb (14253.2ms) 渲染共享/_enablers_home_page.html.erb (21757.8ms)
erb文件也没有缓存吗?因为我的 io 利用率很高。