Hello everyone,
My intention is to test the time required for a server for processing a Web page. In short I want java code to implement a solution similar to the following:
start = timestamp
load website
end = timestamp
I need these values to track the average time to access the web resource. The process will run a variable number of times, so you can have a collection of data to be produced.
Using:
Code:
URLConnection conn = myUrl.openConnection ();
BufferedReader input = new BufferedReader (new InputStreamReader (conn.getInputStream ()));
input.close ();
I get times around 60ms, when the web page from browser takes about 2.5 second, to open up. Could you recommend how to better manage the open / download page by simulating a web browser. Taking into account that I can not afford to open the default browser.
If the solution via code is not workable some knows tools to integrate a java?
I hope to be clear, Thanks for the help
Bookmarks