我正在尝试了解网络性能日志消息的计时部分中的属性之间的关系。
设置:我正在运行带有网络性能日志记录的 ChromeDriver。我正在提取日志消息(Selenium - Java)。 以下是示例日志消息和我迄今为止的理解。
message => params => response => timing
{
"requestTime": 126550.470936, : Time in sec when the browser knows the call has to be issued?
"proxyStart": 1.77299999631941, : Is this a relative time in ms from requestTime? What this latency accounts for?
"proxyEnd": 3.25700000394136, : Time taken to resolve the proxy in ms?
"dnsStart": -1, :
"dnsEnd": -1, : Time taken to resolve the dns?
"connectStart": -1, :
"connectEnd": -1, : Time taken to establish the connection with remote server?
"sslStart": -1, :
"sslEnd": -1, : Is this part of "connect" section? (time taken to negotiate SSL handshake?)
"workerStart": -1 :
"workerReady": -1, :
"sendStart": 582.229000006919, :
"sendEnd": 582.65900000697, : Time taken to send the request to server?
"pushEnd": 0, :
"pushStart": 0, : Unclear as what this accounts for.
"receiveHeadersEnd": 1218.61900000658 : Time taken to completely receive the header?
}
我试图从上面的时间分割中理解以下部分。
- 浏览器发出请求所花费的时间(典型的排队延迟 在网络选项卡中可见)。
- 浏览器建立连接和发送请求所花费的时间
- 服务器处理请求所花费的时间
- 收到回复所需的时间。
对此的任何指示都会很棒。
最佳答案
这是我的理解
延迟为receiveHeadersEnd。
代理时间为proxyEnd - proxyStart。
发送时间为sendEnd - sendStart。
等待时间为receiveHeadersEnd - sendEnd。
请引用: https://groups.google.com/forum/#!topic/google-chrome-developer-tools/cuIpVMC1C4U
关于performance - ChromeDriver - 网络性能日志记录 : Understanding timing section of Network. 响应已接收,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39679673/