timing - How I can receive page summary by using Java? -
i want receive next info web page:
- ttfb
- page load time
- resources (css, js, img ...) load time
required condition: info must received in 1 request. have solution of problem on java?
ttfb: open socket server. gives network latency + socket opening time. via socket should send http request. moment when http header - ttfb... but... said - contains network latency, can redirect response, or protocol upgrade or wte. should analyse this.
page load time if 200 response on previous stage - load data...
resources (css, js, img ...) load time @ stage measure not web servers performance , network latency, yours. should parse received html, find links resources, , repeat first step (open socket) or download them via httpclient or smt else...
also you should remember http/2, gzip...
Comments
Post a Comment