Displaying 1 result from an estimated 1 matches for "set_current_fold".
Did you mean:
set_current_folder
2007 Jul 31
2
merb speed
...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}/resources/set_current_folder",
{:folder => $folder}).content.length
end
end
client_avg = (client_time.inject(0) {|sum, element| sum + element}) /
client_time.length
end
I''m rather new to both web development and benchmarking, so please
feel free to talk to me as if I were an idiot :)
martin