Displaying 1 result from an estimated 1 matches for "set_cookie_store".
2007 Jul 31
2
merb speed
...trying to do some sort of rough client-side benchmarking
using the following code - is there anything obviously wrong with it?
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_folde...