Displaying 1 result from an estimated 1 matches for "all_client_avg".
2007 Jul 31
2
merb speed
...I''m getting numbers of over 10 seconds per page load when I have 50
users repeatedly requesting a dynamic page in a loop:
client = HTTPAccess2::Client.new
client.set_cookie_store("cookie.dat")
client.post(url, {:user_login => login, :user_password => pwd})
client_time = []
all_client_avg = []
all_server_avg = []
$total_client_avg = []
$total_server_avg = []
num_iterations.times do |i|
folders = YAML.load(client.get_content("#{url}/folder/all_user_folders"))
folders.each do |folder|
client_time << Benchmark.realtime do
response_size = client.post("#{url}/...