Measuring reconnection time

Hi there,

If I define:

fetch_time = responseEnd - fetchStart
dns_time = domainLookupEnd - domainLookupStart
connect_time = connectEnd - connectStart
request_time = responseStart - requestStart
response_time = responseEnd - responseStart

And if i do:

reconnect_time = fetch_time - dns_time - connect_time - request_time - response_time

I get several negative values over different versions of Chrome/FF. The idea was for the reconnect_time to measure attempts of failed dns lookups,  tcp connects. For the case where everything is in cache, the idea would be to measure the cache lookup time...

 Is there any other way to compute this? Is this suppose to be negative?

Cheers,

--Ricardo

Received on Wednesday, 16 November 2011 04:14:01 UTC